Minor fixes for ledgers with pre payments
This commit is contained in:
parent
8aed90a060
commit
67ef16e4d3
|
|
@ -95,6 +95,9 @@ class UpdateInvoicePayment
|
|||
if (property_exists($this->payment_hash->data, 'pre_payment') && $this->payment_hash->data->pre_payment == "1") {
|
||||
$invoice->payments()->each(function ($p) {
|
||||
$p->pivot->forceDelete();
|
||||
$p->invoices()->each(function ($i){
|
||||
$i->pivot->forceDelete();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue