diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index a6297b7034d0..7d2257c6b19a 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -101,6 +101,7 @@ class Invoice extends BaseModel 'updated_at' => 'timestamp', 'created_at' => 'timestamp', 'deleted_at' => 'timestamp', + 'is_deleted' => 'bool', ]; protected $with = []; diff --git a/app/Services/Invoice/AutoBillInvoice.php b/app/Services/Invoice/AutoBillInvoice.php index 43878f421c92..025e9dcec957 100644 --- a/app/Services/Invoice/AutoBillInvoice.php +++ b/app/Services/Invoice/AutoBillInvoice.php @@ -105,6 +105,7 @@ class AutoBillInvoice extends AbstractService $fee = 0; /* Build payment hash */ + $payment_hash = PaymentHash::create([ 'hash' => Str::random(64), 'data' => ['invoices' => [['invoice_id' => $this->invoice->hashed_id, 'amount' => $amount, 'invoice_number' => $this->invoice->number]]],