mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
E-Invoice - Reinstate some commented code
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){
|
||||
|
||||
Reference in New Issue
Block a user