mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 12:34:18 +00:00
Merge branch 'dillon/90-e-invoice-shipping-portal-e' into vapor/production
This commit is contained in:
+5
-6
@@ -75,12 +75,11 @@ class ApproveShippingInvoiceTransactionProcessor
|
||||
$this->createSalesOrderDocProcessor->execute($invoice_transaction);
|
||||
$this->updatesTransactionStatus->execute($invoice_transaction, ApprovalStatus::APPROVED);
|
||||
|
||||
//cief todo: 90 - to determine if sending email is necessary
|
||||
// if(app()->environment(['production'])) {
|
||||
// $companyModule = $packingList->owner->companyModule;
|
||||
// $user = $companyModule->employees()->first();
|
||||
// $user->notify(new InvoiceIssuedEmail($user, $packingList));
|
||||
// }
|
||||
if(app()->environment(['production']) && $companyModule->company->e_invoice === 0) { //invoice issued email is only send to customer who has not opted in E-Invoice
|
||||
$companyModule = $packingList->owner->companyModule;
|
||||
$user = $companyModule->employees()->first();
|
||||
$user->notify(new InvoiceIssuedEmail($user, $packingList));
|
||||
}
|
||||
|
||||
$order = $packingList->owner()->first();
|
||||
if($order instanceof Order){
|
||||
|
||||
+3
@@ -75,6 +75,9 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<!-- <div class="btn bg-grey no-border" @click="expanded = !expanded" v-if="['Pending Approval', 'Pending Payment'].includes(invoice_status)">
|
||||
<i class="fa" :class="{'fa-angle-down': !expanded, 'fa-angle-up': expanded}" ></i>
|
||||
</div> -->
|
||||
<div class="btn bg-grey no-border" @click="expanded = !expanded" v-if="['Pending Approval'].includes(invoice_status)">
|
||||
<i class="fa" :class="{'fa-angle-down': !expanded, 'fa-angle-up': expanded}" ></i>
|
||||
</div>
|
||||
|
||||
+3
@@ -75,6 +75,9 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<!-- <div class="btn bg-grey no-border" @click="expanded = !expanded" v-if="['Pending Approval', 'Pending Payment'].includes(invoice_status)">
|
||||
<i class="fa" :class="{'fa-angle-down': !expanded, 'fa-angle-up': expanded}" ></i>
|
||||
</div> -->
|
||||
<div class="btn bg-grey no-border" @click="expanded = !expanded" v-if="['Pending Approval'].includes(invoice_status)">
|
||||
<i class="fa" :class="{'fa-angle-down': !expanded, 'fa-angle-up': expanded}" ></i>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user