Improve logic around reversal / credit notes / refunds

This commit is contained in:
David Bomba
2025-09-25 09:13:49 +10:00
parent a35c817388
commit 37fc8a61d9
6 changed files with 195 additions and 161 deletions

View File

@@ -3928,8 +3928,8 @@ $lang = array(
'invoice_number_taken' => 'Invoice number already taken',
'payment_id_required' => 'Payment `id` required.',
'unable_to_retrieve_payment' => 'Unable to retrieve specified payment',
'invoice_not_related_to_payment' => 'Invoice id :invoice is not related to this payment',
'credit_not_related_to_payment' => 'Credit id :credit is not related to this payment',
'invoice_not_related_to_payment' => 'Invoice # :invoice is not related to this payment',
'credit_not_related_to_payment' => 'Credit # :credit is not related to this payment',
'max_refundable_invoice' => 'Attempting to refund more than allowed for invoice id :invoice, maximum refundable amount is :amount',
'refund_without_invoices' => 'Attempting to refund a payment with invoices attached, please specify valid invoice/s to be refunded.',
'refund_without_credits' => 'Attempting to refund a payment with credits attached, please specify valid credits/s to be refunded.',