Merge branch 'dillon/111-manual-invoice-ba-2' into vapor/staging

This commit is contained in:
Dillon Ngo
2026-02-05 18:24:46 +08:00
3 changed files with 98 additions and 25 deletions
@@ -1,6 +1,9 @@
@extends('layouts.base_pdf')
@section('inner_content')
<style>
@page { margin-top: 13mm; }
</style>
<br>
<htmlpageheader name="page-header">
@@ -75,17 +78,9 @@
<br>
<br>
<br>
<div class="note">
<p><strong><span>{{ \App\Classes\General\Helper::convert(round($transaction->amount, 2)) }}</span></strong></p>
<strong>Notes:</strong><br>
1. All cheques should be crossed and made payable to CIEF WORLDWIDE SDN. BHD. (MAYBANK) MBB-568603010762<br>
2. Goods sold are neither returnable nor refundable. Otherwise a cancellation fee of 20% on purchase price will be imposed.<br>
3. Interest rate 2% per month will be charged on all overdue bills.<br>
4. Price offered on invoice is based on present as at the current invoice date.<br><br>
No any price amendment will be allowed after invoice being chop & sign.<br>
CIEF WORLDWIDE SDN. BHD.<br>
</div>
<br><br>
<br>
<br>
<htmlpagefooter name="page-footer">
<table width="100%">
<tr>
@@ -94,4 +89,21 @@
</tr>
</table>
</htmlpagefooter>
{{-- Notes: ONLY on last page --}}
<ifpage pages="L">
<div style="height: 50mm;"></div>
<div class="note" style="
position: fixed;
bottom: 5mm;
">
<strong>Notes:</strong><br>
1. All cheques should be crossed and made payable to CIEF WORLDWIDE SDN. BHD. (MAYBANK) MBB-568603010762<br>
2. Goods sold are neither returnable nor refundable. Otherwise a cancellation fee of 20% on purchase price will be imposed.<br>
3. Interest rate 2% per month will be charged on all overdue bills.<br>
4. Price offered on invoice is based on present as at the current invoice date.<br><br>
No any price amendment will be allowed after invoice being chop & sign.<br>
CIEF WORLDWIDE SDN. BHD.<br>
</div>
</ifpage>
@endsection
@@ -1,5 +1,9 @@
@extends('layouts.base_pdf')
@section('inner_content')
<style>
@page { margin-top: 13mm; }
</style>
<br>
<htmlpageheader name="page-header">
<br><br>
@@ -74,23 +78,10 @@
$voucher_redemption = $voucher_redemption ?? null;
?>
@include('pages.pdfs.purchase_order_table_v2')
@include('pages.pdfs.purchase_order_table_v3')
<br>
<br>
<table style="width: 100%; border-spacing: 0;">
<tbody>
<tr>
<td width="60%">
CIEF WORLDWIDE SDN BHD<br>
</td>
<td width="40%" valign="top">
E & O.E<br>
Receive In Good Order & Condition<br>
</td>
</tr>
</tbody>
</table>
<htmlpagefooter name="page-footer">
<table width="100%">
@@ -100,4 +91,27 @@
</tr>
</table>
</htmlpagefooter>
{{-- Notes: ONLY on last page --}}
<ifpage pages="L">
<div style="height: 5mm;"></div>
<div class="note" style="
position: fixed;
bottom: 5mm;
">
<table style="width: 100%; border-spacing: 0;">
<tbody>
<tr>
<td width="60%">
CIEF WORLDWIDE SDN BHD<br>
</td>
<td width="40%" valign="top">
E & O.E<br>
Receive In Good Order & Condition<br>
</td>
</tr>
</tbody>
</table>
</div>
</ifpage>
@endsection
@@ -0,0 +1,47 @@
<table class="line-table" style="overflow: wrap" autosize="1">
<thead>
<tr>
<th width="5%">No</th>
<th class="stock-code" width="10%">Stock Code</th>
<th class="description">Description</th>
<th width="10%">Quantity</th>
</tr>
</thead>
<tbody>
@php
$totalQuantity = 0;
@endphp
@if (!empty($po_order_transaction) && $po_order_transaction->transactionDetails)
@foreach ($po_order_transaction->transactionDetails as $key => $transaction_detail)
@php
$totalQuantity += $transaction_detail->quantity;
@endphp
<tr>
<td width="5%" class="center top">{{ $key + 1 }}</td>
<td class="stock-code top" width="10%">
{{ $transaction_detail->product_code }}
</td>
<td class="description">
{{ $transaction_detail->product_name }}
</td>
<td width="10%" class="right">
{{ $transaction_detail->quantity }}
</td>
</tr>
@endforeach
@endif
</tbody>
<tfoot>
<tr>
<td colspan="2"></td>
<td class="right middle"><strong>Total Quantity</strong></td>
<td class="total right middle">
<strong>{{ $totalQuantity }}</strong>
</td>
</tr>
</tfoot>
</table>