removed invoice/bill status tables

This commit is contained in:
denisdulici
2020-01-11 16:57:32 +03:00
parent b5519004a0
commit 08eb8e75fc
69 changed files with 250 additions and 470 deletions

View File

@@ -39,7 +39,7 @@ class CreateBillHistory extends Job
$bill_history = BillHistory::create([
'company_id' => $this->bill->company_id,
'bill_id' => $this->bill->id,
'status_code' => $this->bill->bill_status_code,
'status' => $this->bill->status,
'notify' => $this->notify,
'description' => $description,
]);

View File

@@ -33,7 +33,7 @@ class DuplicateBill extends Job
BillHistory::create([
'company_id' => session('company_id'),
'bill_id' => $clone->id,
'status_code' => 'draft',
'status' => 'draft',
'notify' => 0,
'description' => trans('messages.success.added', ['type' => $clone->bill_number]),
]);

View File

@@ -57,7 +57,7 @@ class UpdateBill extends Job
unset($this->bill->reconciled);
if (($bill_paid) && $this->request['amount'] > $bill_paid) {
$this->request['bill_status_code'] = 'partial';
$this->request['status'] = 'partial';
}
$this->bill->update($this->request->input());