Skip to content

Commit

Permalink
Set compensation account move origin from origin move line
Browse files Browse the repository at this point in the history
#173586
  • Loading branch information
raimonesteve committed Jan 15, 2025
1 parent ba387a1 commit c228ace
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions account.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,10 +706,11 @@ def get_extra_lines(self, lines, account, party=None):
for line in lines:
line_amount = line.debit - line.credit
amount += line_amount
if line.origin:
if line.origin not in origins:
origins[line.origin] = Decimal(0)
origins[line.origin] += abs(line_amount)
move_origin = line.move_origin
if move_origin:
if move_origin not in origins:
origins[move_origin] = Decimal(0)
origins[move_origin] += abs(line_amount)

if not account:
return ([], None)
Expand Down

0 comments on commit c228ace

Please sign in to comment.