mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 23:43:58 +00:00
update delivery order, inovice, purchase_order date based on customer segment
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
<div class="ref">REF: {{ $transaction->booking->marking }}</div>
|
||||
<div class="date">Date: {{ $po_order_transaction->created_at }}</div>
|
||||
<div class="date">Date: {{ $supplier->segments->whereIn('id', [23])->first() ? \Carbon\Carbon::now() : $po_order_transaction->created_at }}</div>
|
||||
<div> </div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -33,18 +33,7 @@
|
||||
|
||||
|
||||
<div class="ref">Ref# {{ $po_order_transaction->booking->marking }}</div>
|
||||
|
||||
<?php
|
||||
$invoice_based_on_generated_date = false;
|
||||
$customer_segment_id = $supplier->segments->pluck('id');
|
||||
foreach ($customer_segment_id as $value) {
|
||||
if (in_array($value, [23])){
|
||||
$invoice_based_on_generated_date = true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="date">Date: {{ $invoice_based_on_generated_date ? \Carbon\Carbon::now() : $po_order_transaction->booking->created_at }}</div>
|
||||
|
||||
<div class="date">Date: {{ $supplier->segments->whereIn('id', [23])->first() ? \Carbon\Carbon::now() : $po_order_transaction->booking->created_at }}</div>
|
||||
<div> </div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<td class="document-detail">
|
||||
PO#: {{ $po_order_transaction->bill_no }} <br>
|
||||
Ref#: {{ $po_order_transaction->booking->marking }} <br>
|
||||
Date: {{ $po_order_transaction->booking->created_at }}
|
||||
Date: {{ $supplier->segments->whereIn('id', [23])->first() ? \Carbon\Carbon::now() : $po_order_transaction->booking->created_at }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user