// tax-system-webapp — 画面固有設定（app-core.js が window.SYSTEM_CONFIG を読む）
window.SYSTEM_CONFIG = {
  domains: [
  { id: "tax-subjects", label: "課税対象者", endpoint: "/api/tax-subjects",
    cols: [{ key: "taxNumber", label: "整理番号" }, { key: "fullName", label: "氏名" }, { key: "address", label: "住所" }, { key: "status", label: "状態", badge: true }, { key: "createdAt", label: "登録日時" }],
    createFields: [{ name: "fullName", label: "氏名", required: true, placeholder: "山田 太郎" }, { name: "address", label: "住所", required: true, placeholder: "東京都..." }] },
  { id: "tax-assessments", label: "税額賦課", endpoint: "/api/tax-assessments",
    cols: [{ key: "subjectId", label: "課税対象ID" }, { key: "fiscalYear", label: "年度" }, { key: "taxableAmount", label: "課税標準額" }, { key: "status", label: "状態", badge: true }, { key: "assessedAt", label: "賦課日時" }],
    createFields: [{ name: "subjectId", label: "課税対象ID", required: true, placeholder: "登録済み課税対象者のIDを入力" }, { name: "fiscalYear", label: "年度", required: true, placeholder: "2026" }, { name: "taxableAmount", label: "課税標準額（円）", required: true, type: "number", placeholder: "3000000" }] },
  { id: "tax-levies", label: "調定（収納・滞納）", endpoint: "/api/tax/levies",
    cols: [{ key: "atenaId", label: "宛名番号" }, { key: "taxItem", label: "税目" }, { key: "fiscalYear", label: "年度" }, { key: "period", label: "期別" }, { key: "amount", label: "調定額" }, { key: "paidTotal", label: "収納済額" }, { key: "status", label: "状態", badge: true }, { key: "dueDate", label: "納期限" }],
    createFields: [{ name: "atenaId", label: "宛名番号", required: true, placeholder: "A-1001" }, { name: "taxItem", label: "税目", required: true, placeholder: "住民税" }, { name: "fiscalYear", label: "年度", required: true, type: "number", placeholder: "2026" }, { name: "period", label: "期別", required: true, type: "number", placeholder: "1" }, { name: "amount", label: "調定額（円）", required: true, type: "number", placeholder: "45000" }, { name: "dueDate", label: "納期限", required: true, placeholder: "2026-06-30" }] },
],
  calc: { title: "軽自動車税の試算", endpoint: "/api/keijidosha/tax", primary: { key: "annualTax", label: "年税額", format: "yen" }, fields: [ { key: "vehicleType", label: "車種区分", type: "select", options: ["軽四輪乗用自家用","軽四輪乗用営業用","軽四輪貨物自家用","軽四輪貨物営業用","軽三輪","原付50cc以下","原付125cc以下","軽二輪125-250cc","二輪250cc超"] }, { key: "firstRegistrationYear", label: "最初の登録年", type: "number", placeholder: "2018" }, { key: "asOfYear", label: "課税年", type: "number", placeholder: "2026" } ] },
};
