mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 18:21:22 +00:00
Merge pull request #24009 from rohitwaghchaure/shipping-charges-not-added-in-invoice
fix: shipping charges not sync from shopify
This commit is contained in:
@@ -244,6 +244,15 @@ def update_taxes_with_shipping_lines(taxes, shipping_lines, shopify_settings):
|
|||||||
"""Shipping lines represents the shipping details,
|
"""Shipping lines represents the shipping details,
|
||||||
each such shipping detail consists of a list of tax_lines"""
|
each such shipping detail consists of a list of tax_lines"""
|
||||||
for shipping_charge in shipping_lines:
|
for shipping_charge in shipping_lines:
|
||||||
|
if shipping_charge.get("price"):
|
||||||
|
taxes.append({
|
||||||
|
"charge_type": _("Actual"),
|
||||||
|
"account_head": get_tax_account_head(shipping_charge),
|
||||||
|
"description": shipping_charge["title"],
|
||||||
|
"tax_amount": shipping_charge["price"],
|
||||||
|
"cost_center": shopify_settings.cost_center
|
||||||
|
})
|
||||||
|
|
||||||
for tax in shipping_charge.get("tax_lines"):
|
for tax in shipping_charge.get("tax_lines"):
|
||||||
taxes.append({
|
taxes.append({
|
||||||
"charge_type": _("Actual"),
|
"charge_type": _("Actual"),
|
||||||
|
|||||||
Reference in New Issue
Block a user