{"id":6191,"date":"2022-04-15T17:29:27","date_gmt":"2022-04-15T08:29:27","guid":{"rendered":"https:\/\/www.sambuichi.jp\/?p=6191"},"modified":"2022-04-16T07:59:58","modified_gmt":"2022-04-15T22:59:58","slug":"%e3%83%87%e3%82%b8%e3%82%bf%e3%83%ab%e3%82%a4%e3%83%b3%e3%83%9c%e3%82%a4%e3%82%b9%e3%81%ae%e9%87%91%e9%a1%8d%e8%a1%a8%e8%a8%98%e3%81%a8%e5%b0%8f%e6%95%b0%e7%82%b9","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=6191","title":{"rendered":"\u30c7\u30b8\u30bf\u30eb\u30a4\u30f3\u30dc\u30a4\u30b9\u306e\u91d1\u984d\u8868\u8a18\u3068\u5c0f\u6570\u70b9"},"content":{"rendered":"<p>Views: 7<\/p><h2>\u6d88\u8cbb\u7a0e\u984d\u306f\u6574\u6570<\/h2>\n<p>\u30aa\u30fc\u30d7\u30f3\u30fb\u30da\u30dd\u30eb\u306e\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u30eb\u30fc\u30eb\u306e\u4e2d\u306b\u65e5\u672c\u56fa\u6709\u306e\u30a2\u30e9\u30a4\u30f3\u30c9\u30fb\u30eb\u30fc\u30eb<br \/>\n[aligned-ibr-jp-06]-Tax category tax amount in accounting currency (ibt-190) shall be rounded to integer.<br \/>\n\u6d88\u8cbb\u7a0e\u984d\u306f\u3001\u6574\u6570\u306b\u4e38\u3081\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<br \/>\n\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u660e\u7d30\u884c\u306e\u8acb\u6c42\u91d1\u984d\u306b\u306f\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6570\u5024\u3082<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001\u305d\u308c\u4ee5\u5916\u306e\u91d1\u984d\u3082\u5f53\u7136\u306e\u3088\u3046\u306b\u6574\u6570\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u696d\u754c\u306b\u3088\u3063\u3066\u306f\u3001\u8acb\u6c42\u66f8\u306e\u660e\u7d30\u884c\u306e\u91d1\u984d(ibt-131 Invoice line net amount)\u306b\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6570\u5024\u3092\u8868\u8a18\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u3082\u3042\u308b\u305d\u3046\u3067\u3059\u3002<br \/>\n\u30aa\u30fc\u30d7\u30f3\u30fb\u30da\u30dd\u30eb\u306e\u30c7\u30b8\u30bf\u30eb\u30a4\u30f3\u30dc\u30a4\u30b9\u304c\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u65e5\u672c\u4ee5\u5916\u306e\u56fd\u3067\u306f\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u91d1\u984d\u8868\u8a18\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u30c7\u30b8\u30bf\u30eb\u30a4\u30f3\u30dc\u30a4\u30b9\u306b\u3082\u5f53\u7136\u3067\u3059\u304c\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6570\u5024\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u660e\u7d30\u884c\u306e\u91d1\u984d\u5408\u8a08\u306f\u6574\u6570\uff1f<\/h2>\n<p>\u8acb\u6c42\u66f8\u306e\u5185\u8a33\u3067\u8868\u8a18\u3055\u308c\u308b\u660e\u7d30\u884c\u306e\u91d1\u984d\u306e\u5408\u8a08\u306b\u3064\u3044\u3066\u30aa\u30fc\u30d7\u30f3\u30fb\u30da\u30dd\u30eb\u306e\u30b7\u30a7\u30a2\u30c9\u30fb\u30eb\u30fc\u30eb\u3067\u306f\u3001\u6b21\u306e\u30eb\u30fc\u30eb\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n[ibr-co-10]-Sum of Invoice line net amount (ibt-106) = \u03a3 Invoice line net amount (ibt-131).<br \/>\n\u8acb\u6c42\u66f8\u306b\u8868\u8a18\u3055\u308c\u308b\u660e\u7d30\u884c\u306e\u91d1\u984d\u5408\u8a08\u306f\u3001\u660e\u7d30\u884c\u306e\u91d1\u984d\u3092\u8db3\u3057\u5408\u308f\u305b\u305f\u5024\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n<pre>\r\ncontext cac:LegalMonetaryTotal\r\ntest\u6761\u4ef6\r\n(\r\n  xs:decimal(cbc:LineExtensionAmount) =\r\n  (\r\n    round(\r\n      sum(\r\n        \/\/(cac:InvoiceLine|cac:CreditNoteLine)\/xs:decimal(cbc:LineExtensionAmount)\r\n      ) * 10 * 10\r\n    ) div 100\r\n  )\r\n)\r\n<\/pre>\n<p>\u4f8b\u3048\u3070\u3001\u7c92\u30b3\u30b7\u30e7\u30fc 50g 1452\u5186\u309270g\u8cfc\u5165\u3057\u305f\u3068\u304d\u306b\u306f\u30012,032.8\u5186\u3068\u306a\u308a\u307e\u3059\u304c\u3053\u306e\u91d1\u984d\u304c\u660e\u7d30\u884c\u30672032.8\u3068\u8868\u8a18\u3055\u308c\u305f\u5834\u5408\u3069\u306e\u3088\u3046\u306a\u8868\u8a18\u304c\u53ef\u80fd\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u4e0a\u8a18[ibr-co-10]\u30eb\u30fc\u30eb\u3067\u306f\u3001<br \/>\nround(sum(2032.8)*10*10) = 203280<br \/>\nround(sum(2032.8)*10*10) div 100 = 2032.8<br \/>\n\u3067\u3059\u304b\u3089\u3001\u8acb\u6c42\u66f8\u306b\u8868\u8a18\u3055\u308c\u308b\u660e\u7d30\u884c\u306e\u91d1\u984d\u5408\u8a08\u3092\u30012032.8\u3067\u306a\u304f2039\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308a\u3001\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u306e\u30c1\u30a7\u30c3\u30af\u306b\u304b\u304b\u308a\u9001\u4fe1\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001\u4e38\u3081\u308b\u305f\u3081\u306e\u91d1\u984d(ibt-114 Rounding amount)\u3092\u4f7f\u7528\u3057\u3066\u3053\u3053\u306b0.2\u306a\u3069\u306e\u7aef\u6570\u91d1\u984d\u3092\u8a18\u8f09\u3057\u3001\u8acb\u6c42\u91d1\u984d(ibt-115 Amount due for payment)\u3092\u6574\u6570\u306b\u4e38\u3081\u3066\u8a18\u8f09\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u660e\u7d30\u884c\u306e\u91d1\u984d\u3092\u6574\u6570\u3068\u3059\u308b\uff1f<\/h2>\n<p>PINT JP 0.9\u306b\u306f\u3001\u6b21\u306e\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\n[jp-br-09]-Invoice line net amount (ibt-131) = \r\n  Item net price (ibt-146) X Invoiced quantity (ibt-129) \u00f7 Item price base quantity (ibt-149) + \r\n  Invoice line charge amount (ibt-141) \u2013 \r\n  Invoice line allowance amount (ibt-136).\r\n<\/pre>\n<p>\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u3067\u306f\u3001\u57fa\u6e96\u6570\u91cf\uff08ibt-149 Item price base quantity\uff09\u304c\u3042\u308b\u3068\u304d\u306f\u3001<br \/>\n\u660e\u7d30\u884c\u91d1\u984d = \u5358\u4fa1 x \u6570\u91cf \/ \u57fa\u6e96\u6570\u91cf<br \/>\n\u304c\u6b63\u3057\u304f\u8a08\u7b97\u3055\u308c\u3066\u3044\u308b\u304b\u691c\u8a3c\u3059\u308b\u3082\u306e\u3067\u3001\u5272\u308a\u7b97\u3067\u5272\u308a\u5207\u308c\u306a\u3044\u3068\u304d\u306b\u306f\u7aef\u6570\u304c\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6570\u5024\u3068\u3057\u3066\u8a18\u8f09\u3055\u308c\u308b\u306e\u3067\u3001\u6bd4\u8f03\u5bfe\u8c61\u306e\u660e\u7d30\u884c\u91d1\u984d\u304c\u6574\u6570\u306e\u3068\u304d\u306b\u306f\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"height-set:true width-set:true lang:default decode:true \" >(exists(cac:Price\/cbc:BaseQuantity) and\r\n  (\r\n    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and\r\n      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and\r\n      (cbc:LineExtensionAmount =\r\n        cbc:InvoicedQuantity * (cac:Price\/cbc:PriceAmount div cac:Price\/cbc:BaseQuantity) +\r\n        cac:AllowanceCharge[cbc:ChargeIndicator=true()]\/cbc:Amount -\r\n        cac:AllowanceCharge[cbc:ChargeIndicator=false()]\/cbc:Amount))       or\r\n    (\r\n      not(\r\n        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and\r\n      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and\r\n      (cbc:LineExtensionAmount =\r\n        cbc:InvoicedQuantity * (cac:Price\/cbc:PriceAmount div cac:Price\/cbc:BaseQuantity) +\r\n        cac:AllowanceCharge[cbc:ChargeIndicator=true()]\/cbc:Amount))       or\r\n    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and\r\n      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and\r\n      (cbc:LineExtensionAmount =\r\n        cbc:InvoicedQuantity * (cac:Price\/cbc:PriceAmount div cac:Price\/cbc:BaseQuantity) -\r\n        cac:AllowanceCharge[cbc:ChargeIndicator=false()]\/cbc:Amount))       or\r\n    (\r\n      not(\r\n        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and\r\n      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and\r\n      (cbc:LineExtensionAmount =\r\n        cbc:InvoicedQuantity * (cac:Price\/cbc:PriceAmount div cac:Price\/cbc:BaseQuantity)))))     or\r\n(\r\n  not(\r\n    exists(cac:Price\/cbc:BaseQuantity)) and\r\n  (\r\n    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and\r\n      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and\r\n      (cbc:LineExtensionAmount =\r\n        cbc:InvoicedQuantity * cac:Price\/cbc:PriceAmount +\r\n        cac:AllowanceCharge[cbc:ChargeIndicator=true()]\/cbc:Amount -\r\n        cac:AllowanceCharge[cbc:ChargeIndicator=false()]\/cbc:Amount))       or\r\n    (\r\n      not(\r\n        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and\r\n      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and\r\n      (cbc:LineExtensionAmount =\r\n        cbc:InvoicedQuantity * (cac:Price\/cbc:PriceAmount  +\r\n          cac:AllowanceCharge[cbc:ChargeIndicator=true()]\/cbc:Amount)))       or\r\n    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and\r\n      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and\r\n      (cbc:LineExtensionAmount =\r\n        cbc:InvoicedQuantity * (cac:Price\/cbc:PriceAmount  -\r\n          cac:AllowanceCharge[cbc:ChargeIndicator=false()]\/cbc:Amount)))       or\r\n    (\r\n      not(\r\n        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and\r\n      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and\r\n      (cbc:LineExtensionAmount =\r\n        cbc:InvoicedQuantity * (cac:Price\/cbc:PriceAmount))\r\n    )\r\n  )\r\n)<\/pre>\n<p>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u304c\uff12\u6841\u307e\u3067\u3068\u3055\u308c\u3066\u3044\u308b\u8af8\u5916\u56fd\u306e\u5834\u5408\u306b\u3082\u540c\u69d8\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3059\u306e\u3067\u3001=\u3000\u306e\u5224\u5b9a\u306bslack()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u95a2\u6570\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<pre>\r\nu:slack( exp(xs:decimal), val(xs:decimal), slack(xs:decimal) ) {\r\n  value-of\r\n    xs:decimal($exp + $slack) >= $val and\r\n    xs:decimal($exp - $slack) <= $val\r\n}\r\n<\/pre>\n<p>\u8a08\u7b97\u7d50\u679c\u304c\u3001\u8a18\u8f09\u3055\u308c\u305f\u5024\u3068slack\u5024\u306e\u7bc4\u56f2\u5185\u306e\u9055\u3044\u306b\u53ce\u307e\u3063\u3066\u3044\u308b\u304b\u5224\u5b9a\u3059\u308b\u3082\u306e\u3067\u3059\u3002<br \/>\n\u8af8\u5916\u56fd\u3067\u306f\u3001slack\u5024\u3068\u3057\u30660.02\u304c\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3088\u3046\u3067\u3059\u304c\u3001\u65e5\u672c\u3067\u306f\u30011\u304b2\u304c\u59a5\u5f53\u306a\u5024\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.wuwei.space\/jp_pint\/billing-japan\/syntax\/ubl-invoice\/cac-InvoiceLine\/cbc-LineExtensionAmount\/en\/\">cbc:LineExtensionAmount<\/a>\u306e\u30da\u30fc\u30b8\u306bDraft improved rules\u3092\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u30eb\u30fc\u30eb\u81ea\u4f53\u3092\u5ec3\u6b62\u3059\u308b\u3053\u3068\u304c\u8a08\u753b\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001C1\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0d\u826f\u3084\u610f\u56f3\u7684\u306b\u8acb\u6c42\u91d1\u984d\u3092\u7570\u306a\u308b\u5024\u3067\u8acb\u6c42\u3057\u3066\u3082\u691c\u51fa\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u306e\u3067\u3044\u304b\u304c\u304b\u306a\u3082\u306e\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Views: 7\u6d88\u8cbb\u7a0e\u984d\u306f\u6574\u6570 \u30aa\u30fc\u30d7\u30f3\u30fb\u30da\u30dd\u30eb\u306e\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u30eb\u30fc\u30eb\u306e\u4e2d\u306b\u65e5\u672c\u56fa\u6709\u306e\u30a2\u30e9\u30a4\u30f3\u30c9\u30fb\u30eb\u30fc\u30eb [aligned-ibr-jp-06]-Tax category tax amount in accounting [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":6201,"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\/6191"}],"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=6191"}],"version-history":[{"count":9,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/6191\/revisions"}],"predecessor-version":[{"id":6200,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/6191\/revisions\/6200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/media\/6201"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}