From 7bf865ed3efe3a46a045822aa66e8fb2e86e4f23 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 20 Sep 2022 16:21:36 +0800 Subject: [PATCH] billing fix up --- .../Modules/Billplzs/ControllersLogic/CallbackBillplzLogic.php | 2 +- .../components/paymentsBilling/forms/PaymentFormComponent.vue | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Classes/Modules/Billplzs/ControllersLogic/CallbackBillplzLogic.php b/app/Classes/Modules/Billplzs/ControllersLogic/CallbackBillplzLogic.php index 5d9e2a16..4324c4d6 100644 --- a/app/Classes/Modules/Billplzs/ControllersLogic/CallbackBillplzLogic.php +++ b/app/Classes/Modules/Billplzs/ControllersLogic/CallbackBillplzLogic.php @@ -99,7 +99,7 @@ class CallbackBillplzLogic $request->headers->set('Authorization', 'Bearer '.$token); $this->updatesTransactionStatus->execute($transaction, ApprovalStatus::APPROVED); -dd($transaction->amount >= $invoice->amount); +dd($transaction->amount.' '.$invoice->amount); if($transaction->amount >= $invoice->amount) { $packingList->update(['status' => ApprovalStatus::APPROVED])->save(); diff --git a/resources/assets/vue/components/paymentsBilling/forms/PaymentFormComponent.vue b/resources/assets/vue/components/paymentsBilling/forms/PaymentFormComponent.vue index 620fc857..8f02c823 100644 --- a/resources/assets/vue/components/paymentsBilling/forms/PaymentFormComponent.vue +++ b/resources/assets/vue/components/paymentsBilling/forms/PaymentFormComponent.vue @@ -91,9 +91,6 @@ error: '', } }, - create(){ - this.parameters.amount = (this.data.outstanding - this.parameters.amount) === 0 ? this.parameters.amount : this.parameters.amount + 0.01 - }, validations: { parameters : { amount: { required },