Skip to content

Commit

Permalink
[IMP]pms: untaxed_amount_to_invoice dont take account downpayments
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Oct 27, 2023
1 parent 1d28720 commit 9c30422
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pms/models/pms_folio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,9 @@ def _compute_ratio_checkin_data(self):
def _compute_untaxed_amount_to_invoice(self):
for folio in self:
folio.untaxed_amount_to_invoice = sum(
folio.mapped("sale_line_ids.untaxed_amount_to_invoice")
folio.sale_line_ids.filtered(lambda l: not l.is_downpayment).mapped(
"untaxed_amount_to_invoice"
)
)

# TODO: Add return_ids to depends
Expand Down

0 comments on commit 9c30422

Please sign in to comment.