Skip to content

Commit

Permalink
G2P-2420: Account number mapping into the payment model
Browse files Browse the repository at this point in the history
  • Loading branch information
Dibik committed Jul 1, 2024
1 parent 2483e55 commit 3a5bff7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions g2p_programs/models/managers/payment_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ def _prepare_payments(self, cycle, entitlements):
"state": "issued",
}
)
if payment.partner_id.bank_ids:
payment.account_number = payment.partner_id.bank_ids[0].acc_number
else:
payment.account_number = None

if not payments:
payments = payment
else:
Expand Down

0 comments on commit 3a5bff7

Please sign in to comment.