mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
add reg_no
This commit is contained in:
@@ -49,6 +49,7 @@ class InvoiceController extends Controller
|
||||
'buyer_company' => 'required',
|
||||
'contact_no' => 'required',
|
||||
'marking' => 'required',
|
||||
'reg_no' => 'required',
|
||||
'lines.*.order' => 'required|numeric',
|
||||
'lines.*.stock_code' => 'required',
|
||||
'lines.*.description' => 'required',
|
||||
@@ -99,6 +100,7 @@ class InvoiceController extends Controller
|
||||
$invoice = new Invoice;
|
||||
$invoice->amount = $total;
|
||||
$invoice->booking_id = (int)$id;
|
||||
$invoice->reg_no = $validatedData['reg_no'];
|
||||
$invoice->buyer_company = $validatedData['buyer_company'];
|
||||
$invoice->address = $validatedData['address'];
|
||||
$invoice->contact_no = $validatedData['contact_no'];
|
||||
@@ -153,6 +155,7 @@ class InvoiceController extends Controller
|
||||
'buyer_company' => 'required',
|
||||
'contact_no' => 'required',
|
||||
'marking' => 'required',
|
||||
'reg_no' => 'required',
|
||||
'lines.*.order' => 'required|numeric',
|
||||
'lines.*.stock_code' => 'required',
|
||||
'lines.*.description' => 'required',
|
||||
@@ -207,6 +210,7 @@ class InvoiceController extends Controller
|
||||
|
||||
$invoice->amount = $total;
|
||||
$invoice->booking_id = (int)$id;
|
||||
$invoice->reg_no = $validatedData['reg_no'];
|
||||
$invoice->buyer_company = $validatedData['buyer_company'];
|
||||
$invoice->address = $validatedData['address'];
|
||||
$invoice->contact_no = $validatedData['contact_no'];
|
||||
@@ -320,7 +324,7 @@ class InvoiceController extends Controller
|
||||
'title' => 'Purchase Order',
|
||||
'buyer' => [
|
||||
'buyer_company' => $invoice->buyer_company,
|
||||
'reg_no' => '',
|
||||
'reg_no' => $invoice->reg_no,
|
||||
'address' => $invoice->address,
|
||||
'gst' => '',
|
||||
'phone' => $invoice->contact_no
|
||||
@@ -370,7 +374,7 @@ class InvoiceController extends Controller
|
||||
'title' => 'Delivery Order',
|
||||
'buyer' => [
|
||||
'buyer_company' => $invoice->buyer_company,
|
||||
'reg_no' => '',
|
||||
'reg_no' => $invoice->reg_no,
|
||||
'address' => $invoice->address,
|
||||
'gst' => '',
|
||||
'phone' => $invoice->contact_no
|
||||
@@ -418,8 +422,8 @@ class InvoiceController extends Controller
|
||||
'phone' => '018 2909252'
|
||||
],
|
||||
'seller' => [
|
||||
'seller_company' => $invoice->buyer_company,
|
||||
'address' => $supplier->company_name,
|
||||
'seller_company' => $supplier->company_name,
|
||||
'address' => '',
|
||||
'phone' => '',
|
||||
'date' => '',
|
||||
'po_number' => $invoice->po_number,
|
||||
|
||||
Reference in New Issue
Block a user