diff --git a/app/Services/Payment/DeletePayment.php b/app/Services/Payment/DeletePayment.php index 654448a8d6d4..f4f630bd701e 100644 --- a/app/Services/Payment/DeletePayment.php +++ b/app/Services/Payment/DeletePayment.php @@ -90,6 +90,8 @@ class DeletePayment if(!$paymentable_invoice->is_deleted) { + $paymentable_invoice->restore(); + $paymentable_invoice->service() ->updateBalance($net_deletable) ->updatePaidToDate($net_deletable * -1) @@ -112,6 +114,8 @@ class DeletePayment } else { + $paymentable_invoice->restore(); + //If the invoice is deleted we only update the meta data on the invoice //and reduce the clients paid to date $paymentable_invoice->service()