Skip to content

Commit

Permalink
[FIX] account_banking_ach_discount: pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dreispt committed May 12, 2024
1 parent 8213a37 commit 8bd2831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def _prepare_move(self, bank_lines=None):
bank_payment_id = vals[2].get("bank_payment_line_id")
bank_payment = bank_payment_line_pool.browse(bank_payment_id)
for line in bank_payment.payment_line_ids:

temp_vals = vals[2].copy()
amount = line.amount_currency
discount = line.discount_amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ def make_payments(self):
domain = [("move_id", "=", invoice_id.id), ("state", "=", "draft")]
ach_lines = payment_line_pool.search(domain)
if ach_lines:
payment_diff_handling = line.payment_difference_handling
ach_lines.write(
{
"payment_difference_handling": line.payment_difference_handling,
"payment_difference_handling": payment_diff_handling,
"writeoff_account_id": line.writeoff_account_id.id,
"reason_code": line.reason_code.id,
"note": line.note,
Expand Down

0 comments on commit 8bd2831

Please sign in to comment.