Take into account party_required when clearing move lines
issue4225 review11521002
This commit is contained in:
1 parent
912107c235
commit
8fa26be212
1 file changed
+2
-1
+2
-1
@@ -90,7 +90,8 @@ class Payment:
|
||||
line.amount_second_currency = (-self.line.amount_second_currency
|
||||
if self.line.amount_second_currency else None)
|
||||
line.second_currency = self.line.second_currency
|
||||
line.party = self.line.party
|
||||
line.party = (self.line.party
|
||||
if self.line.account.party_required else None)
|
||||
counterpart = Line()
|
||||
counterpart.debit = self.amount if self.line.debit else Decimal(0)
|
||||
counterpart.credit = self.amount if self.line.credit else Decimal(0)
|
||||
|
||||
Reference in new issue
Block a user