Shopify アプリに関する話題はこちら
Order Printerのテンプレートをカスタマイズして納品書 兼 領収書を作成しています。
販売商品は、
①軽減税率対象の消費税8%
②通常10%
の税率が異なる商品があり、販売商品のほとんどが税率8%の商品です。
Order Printer上ではデフォルトの仕様なのか分かりませんが、一律税率10%の計算で表示されてしまっているため、【お支払い詳細】の「うち消費税合計」の数字が合いません。
税率が8%と10%のどちらの商品でも「うち消費税合計」を正しい計算で表示させることはできるのでしょうか。
どのようにコードを修正すれば対応できるのかをお教えいただきたいです。
ご注文詳細とお支払い詳細の現在のコード
<h5 style="margin: 0 0 5px 0;">ご注文詳細</h5> <table class="table-tabular" style="margin: 0 0 1px 0;"> <thead> <tr> <th style="border-right: 1px solid black;font-size: 10px"}>商品名</th> <th style="border-right: 1px solid black; text-align: center;font-size: 10px">数量</th> <th style="border-right: 1px solid black; text-align: center;font-size: 10px">税込<br />単価</th> {% if show_line_item_taxes %} <th style="border-right: 1px solid black; text-align: center;font-size: 10px">税込<br />価格</th> {% endif %} </tr> </thead> <tbody> {% for line_item in line_items %} <tr> <td style="border-right: 1px solid black;font-size: 10px"><b>{{ line_item.title }}</b></td> <td style="border-right: 1px solid black; text-align: center;font-size: 10px">{{ line_item.quantity }}</td> <td style="border-right: 1px solid black;font-size: 10px"> {% if line_item.original_price != line_item.price %} <s>{{ line_item.original_price | money }}</s> {% endif %} {{ line_item.price | money }} </td> {% if show_line_item_taxes %} <td style="border-right: 1px solid black;font-size: 10px"> {{ line_item.quantity | times: line_item.price | money }} </td> {% endif %} </tr> {% endfor %} </tbody> </table>
<h5 style="margin: 0 0 5px 0;">お支払詳細</h5> <table class="table-tabular" style="margin: 0 0 5px 0;font-size: 10px"> <tr> <td><strong>小計(税込):</td> <td style="text-align: right; padding-right: 1em;font-size: 10px">{{ subtotal_price | money }}</td> </tr> {% for discount in discounts %} <tr> <td>Includes discount "{{ discount.code }}"</td> <td style="text-align: right; padding-right: 1em;font-size: 10px">{{ discount.savings | money }}</td> </tr> {% endfor %} <tr> <td><strong>うち消費税合計: </td> <td style="text-align: right; padding-right: 1em;font-size: 10px">{{ tax_price | money }}</td> </tr> {% if shipping_address %} <tr> <td><strong>配送料:</td> <td style="text-align: right; padding-right: 1em;font-size: 10px">{{ shipping_price | money }}</td> </tr> {% endif %} <tr> <td><strong>合計金額(税込):</strong></td> <td style="text-align: right; padding-right: 1em;font-size: 10px"><strong>{{ total_price | money }}</strong></td> </tr> {% if total_paid != total_price %} {% endif %} <tr> </table>
ご質問いただいています、Order Printerで軽減税率商品を含んだ商品の消費税合計が異なる件ですが、ShopifyのOrder Printerで、軽減税率商品を含んだ商品の消費税合計が異なる場合、『税の優先設定』がされていない可能性があります。
この設定がされていないと、全体の金額に対し消費税が10%で計算されることがあります。軽減税率の設定方法についてはShopifyの紹介ページをご参照ください。
https://www.shopify.com/jp/blog/zouzei-shopify
また、Shopifyで『税の優先設定』を設定し、ご提示いただいたソースを元にOrder Printerで確認した結果、『SamplePlroduct』が10%(消費税:182円)、『テストマカロン』が8%(消費税:185円×2)で、消費税:552円となり正常に表示しているようです。
ご参考まで。
(キュー小坂)
株式会社Q
小坂様
ご丁寧にご回答頂き、ありがとうございます。
ご教示頂きました『税の優先設定』については、すでに設定済みとなるのですが、それでもやはり全体の金額に対し消費税が10%で計算されてしまいます。
ご連絡いただきました、税の優先適用が設定されている場合は、消費税も分割して計算されると思われますので、現状いただいていいる情報だけでは、原因を突き止めることが出来かねます。
確実に原因が究明できるかは明言できませんが、コラボレーターアクセスを頂き、御社の管理画面を拝見することができるともう少し状況の確認ができるかもしれません。
コラボレーターアクセスを許可いただける場合は、プライベートメッセージにて、御社ShopifyのURLをお送りください、また、コラボレーターリクエストコードを設定されている場合はそちらのコードも合わせていただければと思います。
コラボレーターリクエストをお送りさせていただきます。
(キュー小坂)
Shopify アカデミーの学習パスと認定スキルバッジExpanding Your Shopify Business Internationallyを活用して、国際的にビジネ...
By Shopify Feb 7, 2025Shopify アカデミーの学習パスB2B on Shopify:立ち上げとカスタマイズで卸売販売に進出しましょう。これら3つの無料コースは、ShopifyストアでB2B機能...
By Shopify Jan 31, 2025サポートの選択肢が増えていく中、最適となる選択の判断が難しくなっているかと存じます。今回は問題の解決に最適となるサポートの選択方法を、紹介させて頂きます。 選択肢のご紹介...
By Mirai Oct 6, 2024