mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Merge branch 'master' of https://github.com/bytefury/crater
This commit is contained in:
@ -92,6 +92,12 @@ class CustomerProfileRequest extends FormRequest
|
||||
],
|
||||
'shipping.fax' => [
|
||||
'nullable',
|
||||
],
|
||||
'customer_avatar' => [
|
||||
'nullable',
|
||||
'file',
|
||||
'mimes:gif,jpg,png',
|
||||
'max:20000'
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ class InvoiceResource extends JsonResource
|
||||
'paid_status' => $this->paid_status,
|
||||
'tax_per_item' => $this->tax_per_item,
|
||||
'discount_per_item' => $this->discount_per_item,
|
||||
'notes' => $this->notes,
|
||||
'notes' => $this->getNotes(),
|
||||
'discount_type' => $this->discount_type,
|
||||
'discount' => $this->discount,
|
||||
'discount_val' => $this->discount_val,
|
||||
|
||||
@ -23,7 +23,7 @@ class EstimateResource extends JsonResource
|
||||
'reference_number' => $this->reference_number,
|
||||
'tax_per_item' => $this->tax_per_item,
|
||||
'discount_per_item' => $this->discount_per_item,
|
||||
'notes' => $this->notes,
|
||||
'notes' => $this->getNotes(),
|
||||
'discount' => $this->discount,
|
||||
'discount_type' => $this->discount_type,
|
||||
'discount_val' => $this->discount_val,
|
||||
|
||||
@ -18,7 +18,7 @@ class PaymentResource extends JsonResource
|
||||
'id' => $this->id,
|
||||
'payment_number' => $this->payment_number,
|
||||
'payment_date' => $this->payment_date,
|
||||
'notes' => $this->notes,
|
||||
'notes' => $this->getNotes(),
|
||||
'amount' => $this->amount,
|
||||
'unique_hash' => $this->unique_hash,
|
||||
'invoice_id' => $this->invoice_id,
|
||||
|
||||
@ -16,7 +16,7 @@ trait GeneratesPdfTrait
|
||||
if ($pdf && file_exists($pdf['path'])) {
|
||||
return response()->make(file_get_contents($pdf['path']), 200, [
|
||||
'Content-Type' => 'application/pdf',
|
||||
'Content-Disposition' => 'inline; filename="'.$pdf['file_name'].'.pdf"',
|
||||
'Content-Disposition' => 'inline; filename="'.$pdf['file_name'].'"',
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user