Skip to content

Commit

Permalink
fix: item net rate
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Dec 15, 2024
1 parent 3e73d6a commit df91909
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eu_einvoice/european_e_invoice/custom/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,8 @@ def _add_line_item(self, item: SalesInvoiceItem):
li.product.buyer_assigned_id = item.customer_item_code
li.product.description = html2text(item.description)

net_amount = flt(item.net_amount, item.precision("net_amount"))
li.agreement.net.amount = abs(
net_amount
flt(item.net_rate, item.precision("net_rate"))
) # [BR-27]-The Item net price (BT-146) shall NOT be negative.

li.delivery.billed_quantity = (
Expand Down

0 comments on commit df91909

Please sign in to comment.