{"id":6344,"date":"2022-06-04T13:19:28","date_gmt":"2022-06-04T04:19:28","guid":{"rendered":"https:\/\/www.sambuichi.jp\/?p=6344"},"modified":"2022-08-09T18:45:00","modified_gmt":"2022-08-09T09:45:00","slug":"jp-pint-0-9-2%e3%81%a7%e6%8f%90%e4%be%9b%e3%81%95%e3%82%8c%e3%82%8b%e6%a4%9c%e7%ae%97%e3%83%ab%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=6344","title":{"rendered":"JP PINT 0.9.2\u3067\u63d0\u4f9b\u3055\u308c\u308b\u691c\u7b97\u30eb\u30fc\u30eb\u3067Compliant\u306b\u306a\u308a\u307e\u3059\u304b"},"content":{"rendered":"<p>Views: 112<\/p><p>\u6628\u65e52022\u5e746\u67083\u65e5\u3000\u30da\u30dd\u30eb\u30aa\u30fc\u30bd\u30ea\u30c6\u30a3<a href=\"https:\/\/www.digital.go.jp\/policies\/electronic_invoice\/\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"><\/i><\/a>\u304b\u3089JP PINT 0.9.2 <a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"><\/i><\/a>\u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>PINT Complience <a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/compliance\/\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"><\/i><\/a>\u306b\u306f\u3001\u6b21\u306e\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<h3>Senders compliance to PINT based BIS<\/h3>\n<p>A sending party may claim compliance to the Peppol International model if they send invoices that comply with the rules of the Peppol International Invoice when applied without any specialized rules even if that document may at the same time comply with any set of specialized rules.<\/p>\n<h4>Processing of rules<\/h4>\n<p>A sender SHALL NOT send messages that are not compliant to the BIS specification identified by the customization.<br \/>\nA sender shall <b>validate<\/b> an outgoing message that are in line with the customsation identifier.\n<\/p><\/blockquote>\n<p>\u63d0\u4f9b\u3055\u308c\u308b\u691c\u8a3c\u30eb\u30fc\u30eb\u304c<a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/bis\/#_rules\">5.Rules<\/a>\u3067\u5b9a\u7fa9\u3055\u308c\u308b\u8a08\u7b97\u5f0f\u306e\u3069\u306e\u7bc4\u56f2\u3092\u5bfe\u8c61\u3068\u3057\u3066\u691c\u7b97\u3092\u884c\u3063\u3066\u3044\u308b\u304b\u3001BIS Billing 3.0\u3068\u6bd4\u8f03\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nBIS Billing 3.0\u306e\u30eb\u30fc\u30eb\u3067\u306f\u3001\u6b21\u306e\uff12\u7a2e\u985e\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/\">EN16931 model bound to UBL<\/a><br \/>\n<a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-peppol\/\">Rules for Peppol BIS 3.0 Billing<\/a><\/p>\n<table>\n<colgroup>\n<col width=\"15%\">\n<col width=\"30%\">\n<col width=\"45%\">\n<col width=\"10%\">\n<\/colgroup>\n<tr>\n<th>ID<\/th>\n<th>BT<\/th>\n<th>5.1 Calculations<\/th>\n<th>JP PINT 0.9.2<\/th>\n<\/tr>\n<tr>\n<td>ibt-092<\/td>\n<td>Document level allowance amount<br \/>\u8acb\u6c42\u66f8\u30ec\u30d9\u30eb\u306e\u8fd4\u91d1\u91d1\u984d<\/td>\n<td>ibt-092 = ibt-093 * (ibt-094 \/ 100)<\/td>\n<td>\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>ibt-099<\/td>\n<td>Document level charge amount<br \/>\u8acb\u6c42\u66f8\u30ec\u30d9\u30eb\u306e\u8ffd\u52a0\u8acb\u6c42\u91d1\u984d<\/td>\n<td>ibt-099 = ibt-100 * (ibt-101 \/ 100)<\/td>\n<td>\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>ibt-106<\/td>\n<td>Sum of Invoice line net amount<br \/>\u5024\u5f15\u5f8c\u8acb\u6c42\u66f8\u660e\u7d30\u884c\u91d1\u984d\u306e\u5408\u8a08<\/td>\n<td>ibt-106 = \u03a3 ibt-131<\/td>\n<td>Shared<\/td>\n<\/tr>\n<tr>\n<td>ibt-107<\/td>\n<td>Sum of allowances on document level<br \/>\u8acb\u6c42\u66f8\u30ec\u30d9\u30eb\u306e\u8fd4\u91d1\u306e\u5408\u8a08<\/td>\n<td>ibt-107 = \u03a3 ibt-092<\/td>\n<td>Shared<\/td>\n<\/tr>\n<tr>\n<td>ibt-108<\/td>\n<td>Sum of charges on document level<br \/>\u8acb\u6c42\u66f8\u30ec\u30d9\u30eb\u306e\u8ffd\u52a0\u8acb\u6c42\u306e\u5408\u8a08<\/td>\n<td>ibt-108 = \u03a3 ibt-099<\/td>\n<td>Shared<\/td>\n<\/tr>\n<tr>\n<td>ibt-109<\/td>\n<td>Invoice total amount without TAX<br \/>\u8acb\u6c42\u66f8\u5408\u8a08\u91d1\u984d(\u7a0e\u629c\u304d)<\/td>\n<td>ibt-109 = ibt-106 &#8211; ibt-107 + ibt-108<\/td>\n<td>Shared<\/td>\n<\/tr>\n<tr>\n<td>ibt-110<\/td>\n<td>Invoice total TAX amount<br \/>\u8acb\u6c42\u66f8\u6d88\u8cbb\u7a0e\u5408\u8a08\u91d1\u984d<\/td>\n<td>ibt-110 = \u03a3 ibt-117<\/td>\n<td>Shared<\/td>\n<\/tr>\n<tr>\n<td>ibt-112<\/td>\n<td>Invoice total amount with TAX<br \/>\u8acb\u6c42\u66f8\u5408\u8a08\u91d1\u984d(\u7a0e\u8fbc\u307f)<\/td>\n<td>ibt-112 = ibt-109 + ibt-110<\/td>\n<td>Shared<\/td>\n<\/tr>\n<tr>\n<td>ibt-115<\/td>\n<td>Amount due for payment<br \/>\u5dee\u5f15\u8acb\u6c42\u91d1\u984d<\/td>\n<td>ibt-115 = ibt-112 &#8211; ibt-113 + ibt-114<\/td>\n<td>Shared<\/td>\n<\/tr>\n<tr>\n<td>ibt-116<\/td>\n<td>TAX category taxable amount<br \/>\u8ab2\u7a0e\u5206\u985e\u6bce\u306e\u8ab2\u7a0e\u57fa\u6e96\u984d<\/td>\n<td>ibt-116 = \u03a3 ibt-131 &#8211; ibt-092 + ibt-099<\/td>\n<td>\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>ibt-117<\/td>\n<td>TAX category tax amount<br \/>\u8ab2\u7a0e\u5206\u985e\u6bce\u306e\u6d88\u8cbb\u7a0e\u984d<\/td>\n<td>ibt-117 = ibt-116 * (ibt-119 \/ 100)<br \/>rounded result amount shall be between the floor and the ceiling<\/td>\n<td>Specific<\/td>\n<\/tr>\n<tr>\n<td>ibt-131<\/td>\n<td>Invoice line net amount<br \/>\u5024\u5f15\u5f8c\u8acb\u6c42\u66f8\u660e\u7d30\u884c\u91d1\u984d(\u7a0e\u629c\u304d)<\/td>\n<td>ibt-131 = (ibt-146 \/ ibt-149) * ibt-129 &#8211; ibt-136 + ibt-141<\/td>\n<td>\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>ibt-136<\/td>\n<td>Invoice line allowance amount<br \/>\u8acb\u6c42\u66f8\u660e\u7d30\u884c\u306e\u8fd4\u91d1\u91d1\u984d(\u7a0e\u629c\u304d)<\/td>\n<td>ibt-136 = ibt-137 * (ibt-138 \/ 100)<\/td>\n<td>\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>ibt-141<\/td>\n<td>Invoice line charge amount,br>\u8acb\u6c42\u66f8\u660e\u7d30\u884c\u306e\u8ffd\u52a0\u8acb\u6c42\u91d1\u984d(\u7a0e\u629c\u304d)<\/td>\n<td>ibt-141 = ibt-142 * (ibt-143 \/ 100)<\/td>\n<td>\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>ibt-146<\/td>\n<td>Item net price<br \/>\u54c1\u76ee\u5358\u4fa1(\u5024\u5f15\u5f8c)(\u7a0e\u629c\u304d)<\/td>\n<td>ibt-146 = ibt-148 &#8211; ibt-147<\/td>\n<td>\u306a\u3057<\/td>\n<\/tr>\n<\/table>\n<p>\u5177\u4f53\u7684\u306a\u5b9a\u7fa9\u3092\u6b21\u306e\u8868\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<table>\n<colgroup>\n<col width=\"15%\">\n<col width=\"30%\">\n<col width=\"55%\">\n<\/colgroup>\n<tr>\n<th>ID<\/td>\n<td>BT<\/td>\n<td>rule<\/td>\n<\/tr>\n<tr>\n<td>ibt-106<\/td>\n<td>Sum of Invoice line net amount<br \/>\u5024\u5f15\u5f8c\u8acb\u6c42\u66f8\u660e\u7d30\u884c\u91d1\u984d\u306e\u5408\u8a08<\/td>\n<td><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/ibr-co-10\/\">[ibr-co-10]<\/a><br \/>Sum of Invoice line net amount (ibt-106) = \u03a3 Invoice line net amount (ibt-131).<\/td>\n<\/tr>\n<tr>\n<td>ibt-107<\/td>\n<td>Sum of allowances on document level<br \/>\u8acb\u6c42\u66f8\u30ec\u30d9\u30eb\u306e\u8fd4\u91d1\u306e\u5408\u8a08<\/td>\n<td><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/ibr-co-11\/\">[ibr-co-11]<\/a><br \/>Sum of allowances on document level (ibt-107) = \u03a3 Document level allowance amount (ibt-092).<\/td>\n<\/tr>\n<tr>\n<td>ibt-108<\/td>\n<td>Sum of charges on document level<br \/>\u8acb\u6c42\u66f8\u30ec\u30d9\u30eb\u306e\u8ffd\u52a0\u8acb\u6c42\u306e\u5408\u8a08<\/td>\n<td><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/ibr-co-12\/\">[ibr-co-12]<\/a><br \/>Sum of charges on document level (ibt-108) = \u03a3 Document level charge amount (ibt-099).<\/td>\n<\/tr>\n<tr>\n<td>ibt-109<\/td>\n<td>Invoice total amount without TAX<br \/>\u8acb\u6c42\u66f8\u5408\u8a08\u91d1\u984d(\u7a0e\u629c\u304d)<\/td>\n<td><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/ibr-co-13\/\">[ibr-co-13]<\/a><br \/>Invoice total amount without Tax (ibt-109) = \u03a3 Invoice line net amount (ibt-131) &#8211; Sum of allowances on document level (ibt-107) + Sum of charges on document level (ibt-108).<\/td>\n<\/tr>\n<tr>\n<td>ibt-110<\/td>\n<td>Invoice total TAX amount<br \/>\u8acb\u6c42\u66f8\u6d88\u8cbb\u7a0e\u5408\u8a08\u91d1\u984d<\/td>\n<td><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/ibr-co-14\/\">[ibr-co-14]<\/a><br \/>Invoice total Tax amount (ibt-110) = \u03a3 Tax category tax amount (ibt-117).<\/td>\n<\/tr>\n<tr>\n<td>ibt-112<\/td>\n<td>Invoice total amount with TAX<br \/>\u8acb\u6c42\u66f8\u5408\u8a08\u91d1\u984d(\u7a0e\u8fbc\u307f)<\/td>\n<td><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/ibr-co-15\/\">[ibr-co-15]<\/a><br \/>Invoice total amount with Tax (ibt-112) = Invoice total amount without Tax (ibt-109) + Invoice total Tax amount (ibt-110).<\/td>\n<\/tr>\n<tr>\n<td>ibt-115<\/td>\n<td>Amount due for payment<br \/>\u8acb\u6c42\u66f8\u5408\u8a08\u91d1\u984d(\u7a0e\u8fbc\u307f)<\/td>\n<td><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/ibr-co-16\/\">[ibr-co-16]<\/a><br \/>Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) &#8211; Paid amount (ibt-113) + Rounding amount (ibt-114).<\/td>\n<\/tr>\n<tr>\n<td>ibt-117<\/td>\n<td>TAX category tax amount<br \/>\u8ab2\u7a0e\u5206\u985e\u6bce\u306e\u6d88\u8cbb\u7a0e\u984d<\/td>\n<td><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/aligned-ibrp-051-jp\/\">[aligned-ibrp-051-jp]<\/a><br \/>Tax category tax amount (ibt-117) = tax category taxable amount (ibt-116) x (tax category rate (ibt-119) \/ 100), rounded to integer. The rounded result amount shall be between the floor and the ceiling.<br \/>[aligned-ibrp-e-09]<br \/>The tax category tax amount (ibt-117) In a tax breakdown (ibg-23) where the tax category code (ibt-118) equals &#8220;&#8221;Exempt from tax&#8221;&#8221; MUST equal 0 (zero).<br \/><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/aligned-ibrp-g-09\/\">[aligned-ibrp-g-09]<\/a><br \/>The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is &#8220;Export&#8221; MUST be 0 (zero).<br \/><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/trn-invoice\/rule\/aligned-ibrp-o-09\/\">[aligned-ibrp-o-09]<\/a><br \/>The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is &#8220;Not subject to tax&#8221; MUST be 0 (zero).<\/td>\n<\/tr>\n<\/tr>\n<\/table>\n<p>[aligned-ibrp-051-jp]\u306e\u30da\u30fc\u30b8\u306e\u8868\u793a\u304c\u8aad\u307f\u3065\u3089\u3044\u306e\u3067\u3001\u884c\u3092\u5206\u3051\u3066\u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u308b\u3068\u6b21\u306e\u5b9a\u7fa9\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff08\u7a0e\u7387\u306bround()\u95a2\u6570\u3092\u304b\u3051\u308b\u5fc5\u8981\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\uff09\u3002<br \/>\n\u306a\u304a\u3001\u6700\u5f8c\u306e\u7b87\u6240\u306f\u3001\u7a0e\u7387\u304c0(\u30bc\u30ed)\u306e\u5834\u5408\u304a\u3088\u3073Tax category code\u304c\u2019O&#8217;\u306e\u3068\u304d\u306b\u306f\u3001\u7a0e\u7387\u304c\u306a\u3044\u306e\u3067\u305d\u308c\u3089\u306e\u6761\u4ef6\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u30eb\u30fc\u30eb\u9069\u7528\u5bfe\u8c61\u306ecac:taxSubtotal\u306e\u9078\u629e\u6761\u4ef6\u3067cbc:TaxAmount\/@currencyID=\/ubl:Invoice\/cbc:DocumentCurrencyCode\/text()\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u65e5\u672c\u5186\u3092\u660e\u8a18\u3057\u305fcbc:TaxAmount\/@currencyID=\u2019JPY&#8217;\u306e\u65b9\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u5916\u8ca8\u5efa\u3066\u306e\u8acb\u6c42\u66f8\u306e\u5834\u5408\u3001\u5fc5\u305a\u3057\u3082\u5207\u308a\u6368\u3066\u3001\u5207\u308a\u4e0a\u3052\u3067\u91d1\u984d\u304c\u4e38\u3081\u8a08\u7b97\u3055\u308c\u3066\u3044\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"height-set:true width-set:false lang:default decode:true \" >Context\r\n  cac:TaxSubtotal[cbc:TaxAmount\/@currencyID=\/ubl:Invoice\/cbc:DocumentCurrencyCode\/text()]\r\nTest\r\n  (\r\n    (cac:TaxCategory\/normalize-space(upper-case(cbc:ID)) != 'O') and \r\n    (\r\n      (\r\n        round(cac:TaxCategory\/xs:decimal(cbc:Percent)) != 0 and \r\n        (\r\n          xs:decimal(cbc:TaxAmount) &gt;= \r\n          floor(\r\n            xs:decimal(cbc:TaxableAmount) * (cac:TaxCategory\/xs:decimal(cbc:Percent) div 100)\r\n          )\r\n        ) and \r\n        (\r\n          xs:decimal(cbc:TaxAmount) &lt;= \r\n          ceiling(\r\n            xs:decimal(cbc:TaxableAmount) * (cac:TaxCategory\/xs:decimal(cbc:Percent) div 100)\r\n          )\r\n        )\r\n      ) or \r\n      (\r\n        round(cac:TaxCategory\/xs:decimal(cbc:Percent)) = 0 and \r\n        (xs:decimal(cbc:TaxAmount) = 0)\r\n      )\r\n    )\r\n  ) or \r\n  (\r\n    not(cac:TaxCategory\/cbc:Percent) and \r\n    (\r\n      cac:TaxCategory\/normalize-space(upper-case(cbc:ID)) = 'O'\r\n    ) and \r\n    (xs:decimal(cbc:TaxAmount) = 0)\r\n  )<\/pre>\n<p>\u3053\u306e\u8868\u3068\u6bd4\u8f03\u3059\u308b\u3068\u6b21\u306eBIS Billing 3.0\u306e\u8868\u3067\u306f\u3001\u8a08\u7b97\u5f0f\u5168\u3066\u3092\u5bfe\u8c61\u3068\u3057\u3066\u691c\u7b97\u30eb\u30fc\u30eb\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u7a0e\u984d\u8a08\u7b97\u306e\u4e38\u3081\u30eb\u30fc\u30eb\u306f\u63d0\u4f9b\u3055\u308c\u307e\u3059\u304c\u3001\u305d\u306e\u57fa\u790e\u3068\u306a\u308bibt-116 TAX category taxable amount \u8ab2\u7a0e\u5206\u985e\u6bce\u306e\u8ab2\u7a0e\u57fa\u6e96\u984d \u3084 ibt-131 Invoice line net amount \u5024\u5f15\u5f8c\u8acb\u6c42\u66f8\u660e\u7d30\u884c\u91d1\u984d(\u7a0e\u629c\u304d) \u3053\u308c\u3089\u306e\u91d1\u984d\u306e\u5143\u306b\u306a\u308bibt-146 Item net price \u54c1\u76ee\u5358\u4fa1(\u5024\u5f15\u5f8c)(\u7a0e\u629c\u304d)\u306a\u3069\u306b\u3064\u3044\u3066BIS Billing 3.0\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u305f\u691c\u7b97\u30eb\u30fc\u30eb\u304c\u63d0\u4f9b\u3055\u308c\u306a\u3044\u306e\u306b\u3001<br \/>\nA sender shall validate an outgoing message that are in line with the customsation identifier.<br \/>\n\u3092\u5b88\u3063\u3066\u3044\u3066\u3082\u3001<br \/>\nA sender SHALL NOT send messages that are not compliant to the BIS specification identified by the customization.<br \/>\n\u3092\u9054\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u6761\u4ef6\u3092\u9054\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u308c\u305e\u308c\u306e\u4e8b\u696d\u8005\u3067\u72ec\u81ea\u306e\u5bfe\u7b56\u3092\u884c\u3046\u3068\u3059\u308c\u3070\u3001\u6a19\u6e96\u5316\u306e\u610f\u56f3\u306b\u5916\u308c\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30c7\u30b8\u30bf\u30e9\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u610f\u56f3\u3057\u306a\u3044\u8ffd\u52a0\u6295\u8cc7\u3068\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002<\/p>\n<p>\u6539\u5584\u3092\u671f\u5f85\u3057\u307e\u3059\u3002<\/p>\n<table>\n<colgroup>\n<col width=\"10%\">\n<col width=\"30%\">\n<col width=\"60%\">\n<\/colgroup>\n<tr>\n<th>ID<\/th>\n<th>BT<\/th>\n<th>BIS Billing 3.0<\/th>\n<\/tr>\n<tr>\n<td>ibt-092<\/td>\n<td>Document level allowance amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-peppol\/PEPPOL-EN16931-R040\/\">PEPPOL-EN16931-R040<\/a><br \/>Allowance\/charge amount must equal base amount * percentage\/100 if base amount and percentage exists<\/td>\n<\/tr>\n<tr>\n<td>ibt-099<\/td>\n<td>Document level charge amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-peppol\/PEPPOL-EN16931-R040\/\">PEPPOL-EN16931-R040<\/a><br \/>Allowance\/charge amount must equal base amount * percentage\/100 if base amount and percentage exists<\/td>\n<\/tr>\n<tr>\n<td>ibt-106<\/td>\n<td>Sum of Invoice line net amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-CO-10\/\">BR-CO-10<\/a><br \/>Sum of Invoice line net amount (BT-106) = \u03a3 Invoice line net amount (BT-131).<\/td>\n<\/tr>\n<tr>\n<td>ibt-107<\/td>\n<td>Sum of allowances on document level<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-CO-11\/\">BR-CO-11<\/a><br \/>Sum of allowances on document level (BT-107) = \u03a3 Document level allowance amount (BT-92).<\/td>\n<\/tr>\n<tr>\n<td>ibt-108<\/td>\n<td>Sum of charges on document level<\/td>\n<td>B<a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-CO-12\/\">BR-CO-12<\/a><br \/>Sum of charges on document level (BT-108) = \u03a3 Document level charge amount (BT-99).<\/td>\n<\/tr>\n<tr>\n<td>ibt-109<\/td>\n<td>Invoice total amount without TAX<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-CO-13\/\">BR-CO-13<\/a><br \/>Invoice total amount without VAT (BT-109) = \u03a3 Invoice line net amount (BT-131) &#8211; Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108).<\/td>\n<\/tr>\n<tr>\n<td>ibt-110<\/td>\n<td>Invoice total TAX amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-CO-14\/\">BR-CO-14<\/a><br \/>Invoice total VAT amount (BT-110) = \u03a3 VAT category tax amount (BT-117).<\/td>\n<\/tr>\n<tr>\n<td>ibt-112<\/td>\n<td>Invoice total amount with TAX<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-CO-15\/\">BR-CO-15<\/a><br \/>Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).<\/td>\n<\/tr>\n<tr>\n<td>ibt-115<\/td>\n<td>Amount due for payment<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-CO-16\/\">BR-CO-16<\/a><br \/>Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).<\/td>\n<\/tr>\n<tr>\n<td>ibt-116<\/td>\n<td>TAX category taxable amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-S-08\/\">BR-S-08<\/a><br \/>For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is &#8220;Standard rated&#8221;, the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is &#8220;Standard rated&#8221; and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119).<\/td>\n<\/tr>\n<tr>\n<td>ibt-117<\/td>\n<td>TAX category tax amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-CO-17\/\">BR-CO-17<\/a><br \/>VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) \/ 100), rounded to two decimals.<br \/><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-tc434\/BR-S-09\/\">BR-S-09<\/a><br \/>The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is &#8220;Standard rated&#8221; shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119).<\/td>\n<\/tr>\n<tr>\n<td>ibt-131<\/td>\n<td>Invoice line net amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-peppol\/PEPPOL-EN16931-R120\/\">PEPPOL-EN16931-R120<\/a><br \/>Invoice line net amount MUST equal (Invoiced quantity * (Item net price\/item price base quantity) + Sum of invoice line charge amount &#8211; sum of invoice line allowance amount<\/td>\n<\/tr>\n<tr>\n<td>ibt-136<\/td>\n<td>Invoice line allowance amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-peppol\/PEPPOL-EN16931-R040\/\">PEPPOL-EN16931-R040<\/a><br \/>Allowance\/charge amount must equal base amount * percentage\/100 if base amount and percentage exists<\/td>\n<\/tr>\n<tr>\n<td>ibt-141<\/td>\n<td>Invoice line charge amount<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-peppol\/PEPPOL-EN16931-R040\/\">PEPPOL-EN16931-R040<\/a>PEPPOL-EN16931-R040<br \/>Allowance\/charge amount must equal base amount * percentage\/100 if base amount and percentage exists<\/td>\n<\/tr>\n<tr>\n<td>ibt-146<\/td>\n<td>Item net price<\/td>\n<td><a href=\"https:\/\/docs.peppol.eu\/poacc\/billing\/3.0\/rules\/ubl-peppol\/PEPPOL-EN16931-R046\/\">PEPPOL-EN16931-R046<\/a><br \/>Item net price MUST equal (Gross price &#8211; Allowance amount) when gross price is provided.<\/td>\n<\/tr>\n<\/table>\n<p>BIS Billing 3.0 \u306e\u3000ibt-116 TAX category taxable amount \u8ab2\u7a0e\u5206\u985e\u6bce\u306e\u8ab2\u7a0e\u57fa\u6e96\u984d\u306e\u691c\u7b97\u30eb\u30fc\u30eb\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u5b9a\u7fa9\u3067\u3059\u3002<br \/>\nBR-S-08 (fatal)<br \/>\nFor each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is &#8220;Standard rated&#8221;, the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is &#8220;Standard rated&#8221; and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119).<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001context\u304c\u6b21\u306e\u3088\u3046\u306bcac:TaxSubtotal\/cac:TaxCategory\u3092\u5bfe\u8c61\u3068\u3057\u3066test\u6587\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\/*\/cac:TaxTotal\/cac:TaxSubtotal\/cac:TaxCategory[normalize-space(cbc:ID)=&#8217;S&#8217;][cac:TaxScheme\/normalize-space(upper-case(cbc:ID))=&#8217;VAT&#8217;]<\/p>\n<pre class=\"height-set:true width-set:false lang:default decode:true \" >every $rate in xs:decimal(cbc:Percent) satisfies (\r\n  (\r\n    (\r\n      exists(\/\/cac:InvoiceLine[cac:Item\/cac:ClassifiedTaxCategory\/normalize-space(cbc:ID)='S'][cac:Item\/cac:ClassifiedTaxCategory\/xs:decimal(cbc:Percent=$rate]) or\r\n      exists(\/\/cac:AllowanceCharge[cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate])\r\n    ) and\r\n    (\r\n      (\r\n        ..\/xs:decimal(cbc:TaxableAmount - 1) &lt; \r\n        (\r\n          sum(..\/..\/..\/cac:InvoiceLine[cac:Item\/cac:ClassifiedTaxCategory\/normalize-space(cbc:ID)='S'][cac:Item\/cac:ClassifiedTaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:LineExtensionAmount)) +\r\n          sum(..\/..\/..\/cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:Amount)) -\r\n          sum(..\/..\/..\/cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:Amount))\r\n        )\r\n      ) and\r\n      (\r\n        ..\/xs:decimal(cbc:TaxableAmount + 1) &gt; \r\n        (\r\n          sum(..\/..\/..\/cac:InvoiceLine[cac:Item\/cac:ClassifiedTaxCategory\/normalize-space(cbc:ID)='S'][cac:Item\/cac:ClassifiedTaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:LineExtensionAmount)) +\r\n          sum(..\/..\/..\/cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:Amount)) -\r\n          sum(..\/..\/..\/cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:Amount))\r\n        )\r\n      )\r\n    )\r\n  ) or\r\n  (\r\n    exists(\/\/cac:CreditNoteLine[cac:Item\/cac:ClassifiedTaxCategory\/normalize-space(cbc:ID)='S'][cac:Item\/cac:ClassifiedTaxCategory\/xs:decimal(cbc:Percent)=$rate]) or\r\n    exists(\/\/cac:AllowanceCharge[cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate])\r\n  ) and\r\n  (\r\n    (\r\n      ..\/xs:decimal(cbc:TaxableAmount - 1) &lt; \r\n      (\r\n        sum(..\/..\/..\/cac:CreditNoteLine[cac:Item\/cac:ClassifiedTaxCategory\/normalize-space(cbc:ID)='S'][cac:Item\/cac:ClassifiedTaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:LineExtensionAmount)) +\r\n        sum(..\/..\/..\/cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:Amount)) -\r\n        sum(..\/..\/..\/cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:Amount))\r\n      )\r\n    ) and\r\n    (\r\n      ..\/xs:decimal(cbc:TaxableAmount + 1) &gt; \r\n      (\r\n        sum(..\/..\/..\/cac:CreditNoteLine[cac:Item\/cac:ClassifiedTaxCategory\/normalize-space(cbc:ID)='S'][cac:Item\/cac:ClassifiedTaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:LineExtensionAmount)) +\r\n        sum(..\/..\/..\/cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:Amount)) -\r\n        sum(..\/..\/..\/cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory\/normalize-space(cbc:ID)='S'][cac:TaxCategory\/xs:decimal(cbc:Percent)=$rate]\/xs:decimal(cbc:Amount))\r\n      )\r\n    )\r\n  )\r\n)<\/pre>\n<p>\u307e\u305f\u3001ibt-131 Invoice line net amount \u5024\u5f15\u5f8c\u8acb\u6c42\u66f8\u660e\u7d30\u884c\u91d1\u984d(\u7a0e\u629c\u304d)\u306e\u691c\u7b97\u30eb\u30fc\u30eb\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306bslack()\u95a2\u6570\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"height-set:true width-set:false lang:default decode:true \" title=\"PEPPOL-EN16931-R120\" >Context\r\n  cac:InvoiceLine | cac:CreditNoteLine\r\nTest\r\n  u:slack($lineExtensionAmount, \r\n  (\r\n    $quantity * ($priceAmount div $baseQuantity)) + \r\n    $chargesTotal - \r\n    $allowancesTotal,\r\n    0.02\r\n  )<\/pre>\n<p>\u3053\u306eslack\u95a2\u6570\u306f\u3001\u6b21\u306e\u3088\u3046\u306aXSL\u95a2\u6570\u3067\u3059\u3002<\/p>\n<pre class=\"height-set:true width-set:false lang:default decode:true \" >&lt;function xmlns=\"http:\/\/www.w3.org\/1999\/XSL\/Transform\" name=\"u:slack\" as=\"xs:boolean\"&gt;\r\n    &lt;param name=\"exp\" as=\"xs:decimal\"\/&gt;\r\n    &lt;param name=\"val\" as=\"xs:decimal\"\/&gt;\r\n    &lt;param name=\"slack\" as=\"xs:decimal\"\/&gt;\r\n    &lt;value-of select=\"\r\n        xs:decimal($exp + $slack) &amp;gt;= $val and \r\n        xs:decimal($exp - $slack) &amp;lt;= $val\r\n    \"\/&gt;\r\n&lt;\/function&gt;<\/pre>\n<p>\u6bd4\u8f03\u5bfe\u8c61\u306e\u91d1\u984d\u3068\u691c\u7b97\u7d50\u679c\u306e\u91d1\u984d\u304c \u00b1 slack\u5024\u306e\u7bc4\u56f2\u5185\u306b\u53ce\u307e\u3063\u3066\u3044\u308b\u304b\u3092\u5224\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u5916\u8ca8\u306e\u5834\u5408\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306b\uff12\u6841\u3042\u308a\u307e\u3059\u306e\u3067slack\u5024\u304c 0.02 \u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u691c\u7b97\u7d50\u679c\u3068\u6bd4\u8f03\u5bfe\u8c61\u91d1\u984d\u306e\u9055\u3044\u304c\u3053\u306e\u7bc4\u56f2\u3067\u3042\u308c\u3070\u6b63\u3057\u3044\u8a08\u7b97\u3060\u3068\u5224\u65ad\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u65e5\u672c\u5186\u3067\u306f\u901a\u5e38\u306e\u91d1\u984d\u3067\u306f\u6574\u6570\u8868\u8a18\u3067\u3059\u304b\u3089slack\u5024\u304c 2 \u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Views: 112\u6628\u65e52022\u5e746\u67083\u65e5\u3000\u30da\u30dd\u30eb\u30aa\u30fc\u30bd\u30ea\u30c6\u30a3\u304b\u3089JP PINT 0.9.2 \u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002 PINT Complience \u306b\u306f\u3001\u6b21\u306e\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u3002 Senders compliance to P [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":6372,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[45,49],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/6344"}],"collection":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6344"}],"version-history":[{"count":52,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/6344\/revisions"}],"predecessor-version":[{"id":6793,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/6344\/revisions\/6793"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/media\/6372"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}