Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed May 19, 2022
1 parent 2635c5f commit 0af2b7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ def update_payment_schedule(self, cancel=0):
invoice_paid_amount_map[invoice_key]['discounted_amt'] = ref.total_amount * (term.discount / 100)

for key, allocated_amount in iteritems(invoice_payment_amount_map):
if not invoice_paid_amount_map.get(key):
frappe.throw(_('Payment term {0} not used in {1}').format(key[0], key[1]))

outstanding = flt(invoice_paid_amount_map.get(key, {}).get('outstanding'))
discounted_amt = flt(invoice_paid_amount_map.get(key, {}).get('discounted_amt'))

Expand Down
3 changes: 2 additions & 1 deletion erpnext/translations/es.csv
Original file line number Diff line number Diff line change
Expand Up @@ -10817,4 +10817,5 @@ Shift Management,Manejo de turnos,
Expense Claims,Reclamaciones de gastos,
Fleet Management,Gestión de la flota,
Loans,Préstamos,
Performance,Rendimiento,
Performance,Rendimiento,
Payment term {0} not used in {1},Término de pago {0} no utilizado en {1},

0 comments on commit 0af2b7a

Please sign in to comment.