mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 12:25:09 +00:00
fix(sales invoice): 100% additional discount gl issue with discount accounting
(cherry picked from commit d6bdbfe266)
This commit is contained in:
@@ -1349,7 +1349,11 @@ class SalesInvoice(SellingController):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for item in self.get("items"):
|
for item in self.get("items"):
|
||||||
if flt(item.base_net_amount, item.precision("base_net_amount")) or item.is_fixed_asset:
|
if (
|
||||||
|
flt(item.base_net_amount, item.precision("base_net_amount"))
|
||||||
|
or item.is_fixed_asset
|
||||||
|
or enable_discount_accounting
|
||||||
|
):
|
||||||
# Do not book income for transfer within same company
|
# Do not book income for transfer within same company
|
||||||
if self.is_internal_transfer():
|
if self.is_internal_transfer():
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user