Skip to content

Commit a576dc5

Browse files
committed
[FIX] account_reporting_weight: Show negative weight in correctly invoice types
1 parent b8b80b8 commit a576dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

account_reporting_weight/reports/account_invoice_report.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _sub_select(self):
2222
select_str = super()._sub_select()
2323
select_str += """
2424
, SUM(
25-
(pr.weight * invoice_type.sign) * ail.quantity / u.factor * u2.factor
25+
pr.weight * invoice_type.sign_qty * ail.quantity / u.factor * u2.factor
2626
)
2727
AS weight
2828
"""

0 commit comments

Comments
 (0)