Skip to content

Commit

Permalink
Merge PR #12 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by victor-champonnois
  • Loading branch information
github-grap-bot committed Feb 16, 2024
2 parents 112bde5 + d8c31bc commit 11453c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion csv_export_invoice/models/csv_export_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def get_row(self, record):

tax_code = tax.export_code if tax else ""

price_tax_signed = line.price_tax
if invoice.type == "out_refund" or invoice.type == "in_refund":
price_tax_signed = -line.price_tax

product_name = line.product_id.with_context(lang="fr_BE").name

row = (
Expand All @@ -77,7 +81,7 @@ def get_row(self, record):
line.account_id.code,
str(line.price_subtotal_signed),
tax_code,
str(line.price_tax),
str(price_tax_signed),
product_name,
invoice.department_id.bob_code,
invoice.location_id.bob_code,
Expand Down

0 comments on commit 11453c4

Please sign in to comment.