Clear payment account when setting line
issue11131 review391401002 (grafted from 4d5907ef3457e15cd2f87b0a11fff12e06958b27) --HG-- branch : 6.0
This commit is contained in:
1 parent
c9bb141a3d
commit
2186d7828d
1 file changed
+5
@@ -139,8 +139,13 @@ class Invoice(metaclass=PoolMeta):
|
||||
continue
|
||||
if payment.party != line.party:
|
||||
continue
|
||||
if (getattr(payment, 'account')
|
||||
and payment.account != line.account):
|
||||
continue
|
||||
if payment.amount <= payment_amount:
|
||||
payment.line = line
|
||||
if hasattr(payment, 'account'):
|
||||
payment.account = None
|
||||
payment_amount -= payment.amount
|
||||
return payments
|
||||
|
||||
|
||||
Reference in new issue
Block a user