Skip to content

Commit

Permalink
[FIX] membership_prorate: fix for calculating quantity for prorate pr…
Browse files Browse the repository at this point in the history
…oducts
  • Loading branch information
ByteMeAsap committed Sep 10, 2024
1 parent 299c370 commit 5adacec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion membership_prorate/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _prepare_invoice_line_prorate_vals(self, invoice_line):
if date_invoice > date_to:
date_invoice = date_to
theoretical_duration = date_to - date_from + timedelta(1)
real_duration = date_to - date_invoice
real_duration = date_to - date_invoice + timedelta(1)
if theoretical_duration != real_duration:
return {
"quantity": round(
Expand Down

0 comments on commit 5adacec

Please sign in to comment.