{
  "display_name": "出金表（通常支払）",
  "description": "インボイス番号・入荷日・外貨金額・支払日の Excel から、出金表の通常支払を登録（出金表メニューの通常支払と同じ内容）",
  "file_type": "xlsx",
  "processor_class": "App\\Services\\Logic\\User\\CsvImport\\Processors\\PaymentDisbursementProcessor",
  "business_key_field": "invoice_number",
  "header_table": "payment_disbursements",
  "detail_table": "purchase_headers",
  "header_fields": {
    "invoice_number": {
      "label": "インボイス番号",
      "type": "string",
      "required": true,
      "description": "仕入のインボイス番号（完全一致）"
    },
    "receipt_date": {
      "label": "入荷日",
      "type": "date",
      "required": true,
      "description": "システムに登録されている入荷日"
    },
    "payment_amount": {
      "label": "外貨金額",
      "type": "decimal",
      "required": true,
      "description": "今回支払金額（仕入の通貨。マイナス可）"
    },
    "payment_date": {
      "label": "支払日",
      "type": "date",
      "required": true,
      "description": "出金の支払日"
    },
    "supplier_code": {
      "label": "仕入先コード",
      "type": "string",
      "required": false,
      "description": "同じインボイス番号が複数の仕入先にあるときに指定"
    }
  },
  "code_padding": {
    "supplier_code": 3
  },
  "csv_format_example": {
    "description": "1行＝出金表の仕入選択の1行（仕入先＋入荷日＋インボイス番号）",
    "headers": [
      "インボイス番号",
      "入荷日",
      "外貨金額",
      "支払日",
      "仕入先コード"
    ],
    "sample_data": [
      ["#", "※この行と次の行は削除してからインポートしてください。【必須】: インボイス番号, 入荷日, 外貨金額, 支払日（仕入先コードは任意）", "", "", ""],
      ["#", "入荷日はシステムに登録されている入荷日 / 日付: YYYY/MM/DD または YYYY-MM-DD / 外貨金額は仕入の通貨の金額（マイナス可） / Excel形式（.xlsx）で保存して取り込んでください", "", "", ""],
      ["626047", "2026/04/15", "400.00", "2026/09/26", "135"],
      ["726020", "2026/06/30", "-130.00", "2026/09/26", ""]
    ]
  }
}
