mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
installed chinese fonts
This commit is contained in:
Binary file not shown.
@@ -450,39 +450,34 @@ class InvoiceController extends Controller
|
||||
{
|
||||
// Generate PO
|
||||
|
||||
$booking = Booking::where('id', $id)->first();
|
||||
$invoice = Invoice::where('booking_id', $booking['id'])->first();
|
||||
$lines = InvoiceDetails::where('invoice_id', $invoice->id)->get();
|
||||
$supplierbooking = SupplierBooking::where('booking_id', $id)->first();
|
||||
$supplier = SettingSupplier::where('id', $supplierbooking->supplier_id)->first();
|
||||
|
||||
$data = [
|
||||
'title' => 'Delivery Order',
|
||||
'buyer' => [
|
||||
'buyer_company' => 'CIEF Worldwide Sdn Bhd',
|
||||
'reg_no' => '',
|
||||
'address' => 'Malaysia Global Innovation & Creativity Centre, Level
|
||||
1 CWS, Block 3730, Persiaran APEC 63000
|
||||
Cyberjaya.',
|
||||
'gst' => '',
|
||||
'phone' => '018 2909252'
|
||||
],
|
||||
'seller' => [
|
||||
'seller_company' => $supplier->company_name,
|
||||
'address' => '',
|
||||
'phone' => '',
|
||||
'date' => '',
|
||||
'po_number' => $invoice->po_number,
|
||||
'order_number' => $booking->order_no
|
||||
],
|
||||
'lines' => $lines,
|
||||
'amount' => $invoice->amount
|
||||
];
|
||||
$pdf = PDF::loadView('pdf/po', $data);
|
||||
|
||||
$booking = Booking::where('id', $id)->first();
|
||||
$invoice = Invoice::where('booking_id', $booking['id'])->first();
|
||||
$lines = InvoiceDetails::where('invoice_id', $invoice->id)->get();
|
||||
|
||||
$data = [
|
||||
'title' => 'DO',
|
||||
'detail' => [
|
||||
'date' => Carbon::createFromFormat('Y-m-d H:i:s', $booking->created_at)->format('d-m-Y'),
|
||||
'ei' => '',
|
||||
'edo' => 'EDO-202009-000001',
|
||||
'ref' => $booking->id
|
||||
],
|
||||
'billto' => [
|
||||
'buyer_company' => $invoice->buyer_company,
|
||||
'reg_no' => $invoice->reg_no,
|
||||
'address' => $invoice->address,
|
||||
'gst' => '',
|
||||
'phone' => $invoice->contact_no,
|
||||
'marking_no' => ''
|
||||
],
|
||||
'lines' => $lines,
|
||||
'amount' => $invoice->amount
|
||||
];
|
||||
|
||||
$pdf = PDF::loadView('pdf/invoice', $data);
|
||||
|
||||
// Send
|
||||
return $pdf->download('do.pdf');
|
||||
return $pdf->download('do.pdf');
|
||||
}
|
||||
|
||||
private function isUser($booking_id, $user_id) {
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"laravel/tinker": "~1.0",
|
||||
"laravelcollective/html": "^5.6",
|
||||
"maatwebsite/excel": "^3.1",
|
||||
"mpdf/mpdf": "^8.0",
|
||||
"pusher/pusher-php-server": "~3.0",
|
||||
"tymon/jwt-auth": "^1.0.0-rc.2",
|
||||
"zizaco/entrust": "dev-master"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>Document</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: simhei;
|
||||
font-family: Droidsans;
|
||||
}
|
||||
.clear-fix::after {
|
||||
content: "";
|
||||
@@ -33,7 +33,7 @@
|
||||
}
|
||||
.details {
|
||||
position: absolute;
|
||||
left: 78%;
|
||||
left: 76%;
|
||||
top: -20px;
|
||||
}
|
||||
.title {
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
<title>document</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: simhei, sans-serif;
|
||||
font-family: sans-serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
.details {
|
||||
float: right;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -88,5 +88,23 @@
|
||||
'bold' => $fontDir . 'simhei',
|
||||
'bold_italic' => $fontDir . 'simhei',
|
||||
'italic' => $fontDir . 'simhei'
|
||||
)
|
||||
),
|
||||
'droidsans' => array(
|
||||
'normal' => $fontDir . '/DroidSansFallback',
|
||||
'bold' => $fontDir . '/DroidSansFallback',
|
||||
'italic' => $fontDir . '/DroidSansFallback',
|
||||
'bold_italic' => $fontDir . '/DroidSansFallback',
|
||||
),
|
||||
'droidsansfallback' => array(
|
||||
'normal' => $fontDir . '/DroidSansFallback',
|
||||
'bold' => $fontDir . '/DroidSansFallback',
|
||||
'italic' => $fontDir . '/DroidSansFallback',
|
||||
'bold_italic' => $fontDir . '/DroidSansFallback',
|
||||
),
|
||||
'noto' => array(
|
||||
'normal' => $fontDir . '/NotoSerifSC-Regular',
|
||||
'bold' => $fontDir . '/NotoSerifSC-Regular',
|
||||
'italic' => $fontDir . '/NotoSerifSC-Regular',
|
||||
'bold_italic' => $fontDir . '/NotoSerifSC-Regular',
|
||||
),
|
||||
) ?>
|
||||
Reference in New Issue
Block a user