mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #220 from pedrobaeza/8.0-direct_debit-residual
[FIX] account_banking_payment_export: Use residual amount in direct debits
This commit is contained in:
@@ -171,12 +171,7 @@ class PaymentOrderCreate(models.TransientModel):
|
||||
# customer invoice number (in the case of debit order)
|
||||
communication = line.invoice.number.replace('/', '')
|
||||
state = 'structured'
|
||||
# support debit orders when enabled
|
||||
if (payment.payment_order_type == 'debit' and
|
||||
'amount_to_receive' in line):
|
||||
amount_currency = line.amount_to_receive
|
||||
else:
|
||||
amount_currency = line.amount_residual_currency
|
||||
amount_currency = line.amount_residual_currency
|
||||
line2bank = line.line2bank(payment.mode.id)
|
||||
# -- end account banking
|
||||
res = {'move_line_id': line.id,
|
||||
|
||||
Reference in New Issue
Block a user