Manual Invoice / BA

This commit is contained in:
Dillon Ngo
2025-11-10 14:17:46 +08:00
parent 22aa3e79c9
commit 810bca98a2
+7 -3
View File
@@ -240,13 +240,17 @@ Route::post('/support', function (Request $request) {
if($billNo) {
$transaction = Transaction::where('bill_no', $billNo)->first();
$booking = $transaction->booking;
if($transaction){
$booking = $transaction->booking;
}
}
if($autocountDocNoInvoice) {
$kvp = KeyValuePair::where('key', KVPKey::AUTOCOUNT_DOCNO_INVOICE)->where('value', $autocountDocNoInvoice)->first();
$transaction = $kvp->owner()->withTrashed()->first();
$booking = $transaction ? $transaction->booking : null;
if($kvp){
$transaction = $kvp->owner()->withTrashed()->first();
$booking = $transaction ? $transaction->booking : null;
}
}
return view('pages.customer_support', [