mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
fix: discount and test added
only report net rate if discount is less than 0 and added test.
This commit is contained in:
@@ -285,7 +285,7 @@ def get_item_list(invoice):
|
||||
if invoice.get("is_return") or invoice.get("is_debit_note"):
|
||||
item_qty = item_qty or 1
|
||||
|
||||
if hide_discount_in_einvoice or invoice.is_internal_customer or (item.discount_amount <= 0):
|
||||
if hide_discount_in_einvoice or invoice.is_internal_customer or item.discount_amount < 0:
|
||||
item.unit_rate = item.taxable_value / item_qty
|
||||
item.gross_amount = item.taxable_value
|
||||
item.discount_amount = 0
|
||||
|
||||
Reference in New Issue
Block a user