mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Manual Invoice / BA
This commit is contained in:
+7
-3
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user