mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Merge branch 'dillon/147-fix-sales-invoice-report-export-error' into vapor/staging
This commit is contained in:
@@ -100,6 +100,9 @@ class ExportsSalesInvoiceReport implements FromQuery, WithHeadings, WithHeadingR
|
||||
$purchaseOrder = $booking->transactions->where('type', TransactionType::PURCHASE_ORDER)->first();
|
||||
$company = $booking->company;
|
||||
|
||||
if(!$purchaseOrder){
|
||||
return $records;
|
||||
}
|
||||
|
||||
$lastPaymentTransaction = $booking->transactions
|
||||
->where('type', TransactionType::PAYMENT)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.base_portal')
|
||||
@section('inner_content')
|
||||
<payment-component></payment-component>
|
||||
<payment-component v-if="$store.getters.isAdmin"></payment-component>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user