溢出税在WooCommerce中获取相同的税收标签

发布于 2025-01-20 12:47:23 字数 1289 浏览 2 评论 0原文

根据我国的税收制度,我添加了两个税级。 5% & 18%。标准费率是空的,所以我可以用它来运输。在我国,税收制度是这样运作的。例如,仅考虑一类。

如果客户帐单地址状态与业务状态不同,则称为 IGST。因此,订单将显示 18% IGST。

现在,如果客户帐单地址状态与业务状态相同,则会分为两部分:SGST 和 SGST。 CGST。因此,总税收将平均分为 9% CGST 和 9% CGST。 9% SGST,总计 18%。

这同样适用于每个税种。考虑到上述情况,我创建了两个虚拟订单。查看图像中的内容。

5% 费率设置 - https://snipboard.io/HJgLBu.jpg 18% 费率设置 - https://snipboard.io/e2Q3Ku.jpg

订单反映相同。

状态与业务状态不同的订单 - https://snipboard.io/w12sJO.jpg 订单状态与业务状态相同 - https://snipboard.io/d8QFme.jpg

现在,我在为 Woocommerce PDF 发票和发票制作自定义发票模板时,我面临两件事困难:包装单。

  1. 获取税率前面的相应税收标签。例如 IGST/CGST/SGST。这些值已存储在 Woocommerce 税率中。
  2. 对于第二种情况,对于同一州的订单,在 pdf 发票中,单列中显示的费率为 9%、9%(适用于 18% 类别)。我想将这些输出打印在两个单独的行中。

对于这一点,逻辑可能是这样的:如果客户计费状态等于业务状态,那么它将在两列中打印/分割税率,如下所示 https://snipboard.io/l3gbJe.jpg

对于不同的州,同一张发票将是 https://snipboard.io/SwAGVW.jpg

As per my country's tax system, I have added two tax classes. 5% & 18%. Standard rate is empty so I can use it for shipping. In my country, the tax system works this way. For example, consider one class only.

If the customer billing address state is DIFFERENT from the business state, it will be called IGST. So, the order will show 18% IGST.

Now if the customer billing address state is SAME as the business state, it gets divided into two parts, SGST & CGST. So the total tax will be divided equally as 9% CGST & 9% SGST, making it total 18%.

Same will apply for every tax class. I have created two dummy orders by considering the above mentioned scenario. Checkout those in images.

5% Rate Setup - https://snipboard.io/HJgLBu.jpg
18% Rate Setup - https://snipboard.io/e2Q3Ku.jpg

Orders reflecting the same.

Order with different state than business state - https://snipboard.io/w12sJO.jpg
Order with same state as business state - https://snipboard.io/d8QFme.jpg

Now, I am facing difficulties in two things while working on custom invoice template for Woocommerce PDF Invoices & Packaging Slips.

  1. Fetching respective tax label in front of tax rates. e.g. IGST / CGST / SGST . These values are already stored in Woocommerce tax rates.
  2. For the second scenario, for orders in same state, in pdf invoice it show rates as 9%, 9% (for 18% class)in single column. I want to print those outputs in two separate rows instead.

For this, logic may be like if customer billing state is equal to business state, then it will print/split tax rate in two columns like this https://snipboard.io/l3gbJe.jpg

For different state, same invoice will be https://snipboard.io/SwAGVW.jpg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫竹語嫣☆ 2025-01-27 12:47:23

我只能回答第二部分。选择增值税,然后在行标签上写入GST。然后从BOTTON中选择“综合”选项,不要单击单个总数。它将分为两部分分叉您的GST。假设您有18%的商品及服务税,我们希望将其分为9%,为CGST,为SGST 9%。然后,将在同等的部分中将GST分为9%。在税率上选择静态文本,然后将标签写为税率和价值,如在这种情况下为18%。

希望这对您有所帮助。

关于

泰勒。

I can answer the 2nd part only. Select the Vat and on the row label write gst. then select the comination option from the botton dont click the single total. It will bifurcate your GST in 2-parts. suppose you have 18% GST and we want to div it 9% as cgst and 9% as sgst. then will will divide the gst as 9% in equal parts. On the tax rate select static text and then write the label as Tax rate and value as 18% as in this case.

Hope this will help you out.

Regards,

Tylor.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文