mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Laravel Vapor - Enhancement to prevent customer from underpay when a payment transaction include storage invoice(s)
This commit is contained in:
@@ -23,6 +23,7 @@ class PackingListLimitOneByTypeOrderedByInvoiceDate implements Filter
|
||||
$join->on('transactions.owner_id', '=', 'packing_lists.id');
|
||||
$join->where('transactions.owner_type', '=', PackingList::class);
|
||||
$join->where('transactions.status', '=', ApprovalStatus::APPROVED);
|
||||
$join->whereNull('transactions.deleted_at');
|
||||
$join->whereRaw('(transactions.type <> 16 OR transactions.id = (
|
||||
SELECT id FROM transactions WHERE owner_id = packing_lists.id AND type = 16 LIMIT 1
|
||||
))');
|
||||
|
||||
+2
-2
@@ -73,8 +73,8 @@
|
||||
</div>
|
||||
<group-payment-form-component :section="section" :company_module_id="company_module_id" :selectedIds="selectedIds" :selectedShippingInvoicesOnlyIds="selectedShippingInvoicesOnlyIds" :sumAmount="parseFloat(sumAmount)" v-on:isPaymentOutdated="paymentOutdated($event)" v-if="showPaymentProceedModal"></group-payment-form-component>
|
||||
<reload-confirmation-form-component
|
||||
contentText="Some information has been updated, click 'Yes' to reload page"
|
||||
buttonText="Yes"
|
||||
contentText="Some information has been updated, please reload page to continue"
|
||||
buttonText="Reload Page"
|
||||
class="text-center"
|
||||
:section="section"
|
||||
v-if="showPaymentOutdatedModal"
|
||||
|
||||
+2
-2
@@ -198,8 +198,8 @@
|
||||
</div>
|
||||
<payment-form-component :data="item" :section="section" v-on:isPaymentOutdated="paymentOutdated($event)" v-if="showPaymentProceedModal"></payment-form-component>
|
||||
<reload-confirmation-form-component
|
||||
contentText="Some information has been updated, click 'Yes' to reload page"
|
||||
buttonText="Yes"
|
||||
contentText="Some information has been updated, please reload page to continue"
|
||||
buttonText="Reload Page"
|
||||
class="text-center"
|
||||
:section="section"
|
||||
v-if="showPaymentOutdatedModal"
|
||||
|
||||
+2
-2
@@ -286,8 +286,8 @@
|
||||
</div>
|
||||
<group-payment-form-component :section="section" :selectedIds="selectedIds" :sumAmount="parseFloat(totalOutstanding.toFixed(2))" :selectedShippingInvoicesOnlyIds="selectedShippingInvoicesOnlyIds" :showManualPayment="true" v-on:isPaymentOutdated="paymentOutdated($event)" v-if="showPaymentProceedModal"></group-payment-form-component>
|
||||
<reload-confirmation-form-component
|
||||
contentText="Some information has been updated, click 'Yes' to reload page"
|
||||
buttonText="Yes"
|
||||
contentText="Some information has been updated, please reload page to continue"
|
||||
buttonText="Reload Page"
|
||||
class="text-center"
|
||||
:section="section"
|
||||
v-if="showPaymentOutdatedModal"
|
||||
|
||||
+2
-2
@@ -222,8 +222,8 @@
|
||||
</div>
|
||||
<group-payment-form-component :section="section" :selectedIds="selectedIds" :sumAmount="parseFloat(totalOutstanding.toFixed(2))" :selectedShippingInvoicesOnlyIds="selectedShippingInvoicesOnlyIds" :showManualPayment="true" v-on:isPaymentOutdated="paymentOutdated($event)" v-if="showPaymentProceedModal"></group-payment-form-component>
|
||||
<reload-confirmation-form-component
|
||||
contentText="Some information has been updated, click 'Yes' to reload page"
|
||||
buttonText="Yes"
|
||||
contentText="Some information has been updated, please reload page to continue"
|
||||
buttonText="Reload Page"
|
||||
class="text-center"
|
||||
:section="section"
|
||||
v-if="showPaymentOutdatedModal"
|
||||
|
||||
+2
-2
@@ -274,8 +274,8 @@
|
||||
</div>
|
||||
<payment-form-component :data="item.shipping_transaction" :section="section" v-on:isPaymentOutdated="paymentOutdated($event)" v-if="showPaymentProceedModal"></payment-form-component>
|
||||
<reload-confirmation-form-component
|
||||
contentText="Some information has been updated, click 'Yes' to reload page"
|
||||
buttonText="Yes"
|
||||
contentText="Some information has been updated, please reload page to continue"
|
||||
buttonText="Reload Page"
|
||||
class="text-center"
|
||||
:section="section"
|
||||
v-if="showPaymentOutdatedModal"
|
||||
|
||||
Reference in New Issue
Block a user