mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Disable auto billing when an invoice has been refunded.
This commit is contained in:
parent
dba0b50c50
commit
91cfc33f61
@ -277,6 +277,9 @@ class RefundPayment
|
||||
$invoice->service()->setStatus(Invoice::STATUS_PARTIAL);
|
||||
}
|
||||
|
||||
//26-10-2022 - disable autobill to prevent future billings;
|
||||
$invoice->auto_bill_enabled = false;
|
||||
|
||||
$invoice->saveQuietly();
|
||||
|
||||
//06-09-2022
|
||||
@ -285,10 +288,6 @@ class RefundPayment
|
||||
->updateBalance($refunded_invoice['amount'])
|
||||
->save();
|
||||
|
||||
// $client = $invoice->client;
|
||||
// $client->balance += $refunded_invoice['amount'];
|
||||
// $client->save();
|
||||
|
||||
$transaction = [
|
||||
'invoice' => $invoice->transaction_event(),
|
||||
'payment' => [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user