最上位の税関連プロパティを、Invoice、Invoice Line Item、Credit Note Line Item の新しい税金モデルに置き換えます破壊的変更
新規情報
新しい税金オブジェクトを追加する前に、Invoice Line Item (請求書項目) と Credit Note Line Item (クレジットノート項目) に新しい taxes コンセプトを導入し、税金関連のデータを取り込み、税金オブジェクトの構造を統一する予定です。これは、Invoice Line Item オブジェクトと Credit Note Line Item オブジェクトの最上位の税金関連プロパティに置き換わります。
また、 Invoice オブジェクトと Credit Note オブジェクトに新しい total_taxes プロパティを導入して、集計された税務情報を表示します。
この変更により互換性が失われる理由
tax_
とrates tax_
は、Invoice Line Item オブジェクトと Credit Note Line Item オブジェクトで使用できなくなりました。amounts total_
は Invoice オブジェクトで使用できなくなりました。tax_ amounts
影響
Invoice Line Item と Credit Note Line Item の税率 ID が新しい taxes
プロパティに含まれるようになりました。
line_
をitem. tax_ rates[0] line_
に置き換えます (item. taxes[0]. tax_ rate_ details. tax_ rate line_
がitem. taxes[0]. type tax_
であることを確認した後)rate_ details line_
をitem. tax_ amounts[0]. amount line_
に置き換えますitem. taxes[0]. amount
Invoice と Credit Note の税額合計が total_
に保存されるようになりました。
invoice.
をtotal_ tax_ amounts[0]. amount invoice.
に置き換えます (total_ taxes[0]. amount invoice.
がtotal_ taxes[0]. type tax_
であることを確認した後)rate_ details