Skip to content

Commit

Permalink
[IMP] sale_report_delivered_subtotal: Use price_reduce field instead …
Browse files Browse the repository at this point in the history
…of price_subtotal calc
  • Loading branch information
carlosdauden committed Oct 19, 2023
1 parent 6234587 commit ebb7b68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sale_report_delivered_subtotal/reports/sale_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ def _query(self, with_clause="", fields=None, groupby="", from_clause=""):
if fields is None:
fields = {}
select_str_price = """ ,
sum((l.price_subtotal /
coalesce(nullif(l.product_uom_qty, 0), 1)
) * l.qty_delivered)
sum(l.price_reduce * l.qty_delivered)
as price_subtotal_delivered
"""
select_str_weight = """ ,
Expand Down

0 comments on commit ebb7b68

Please sign in to comment.