From 2a1ada15a9b7dc963197f6eb3baaf9f7194e068f Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 25 Jun 2021 11:56:08 +0800 Subject: [PATCH 01/20] add company type to customer excel list --- app/Classes/Modules/Exports/Services/ExportsCustomers.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsCustomers.php b/app/Classes/Modules/Exports/Services/ExportsCustomers.php index f7750153..40db43fa 100644 --- a/app/Classes/Modules/Exports/Services/ExportsCustomers.php +++ b/app/Classes/Modules/Exports/Services/ExportsCustomers.php @@ -2,8 +2,9 @@ namespace App\Classes\Modules\Exports\Services; +use App\Classes\ValueObjects\Constants\BusinessType; +use App\Classes\ValueObjects\Constants\CompanyType; use App\Models\Company; -use Carbon\Carbon; use Maatwebsite\Excel\Concerns\Exportable; use Maatwebsite\Excel\Concerns\FromQuery; use Maatwebsite\Excel\Concerns\WithHeadingRow; @@ -19,6 +20,7 @@ class ExportsCustomers implements FromQuery, WithHeadingRow, WithMapping return [ 'Marking', 'Name', + 'Business type', 'Number of bookings', 'Bookings total', 'Registration Date', @@ -43,6 +45,7 @@ class ExportsCustomers implements FromQuery, WithHeadingRow, WithMapping return [ $company->reference, $company->name, + $company->type === CompanyType::COMPANY_BUSINESS ? 'Company' : 'individual', count($company->bookings), $company->bookings()->sum('fix_amount'), \PhpOffice\PhpSpreadsheet\Shared\Date::dateTimeToExcel($company->created_at) From 0df7240271aa94ac8ad9305ace8c6909cf7033d9 Mon Sep 17 00:00:00 2001 From: weichien00 Date: Sun, 27 Jun 2021 02:03:12 +0800 Subject: [PATCH 02/20] hotfix: remove hardcoded id with session user id. remove localstorage that store updated fullname. --- .../settings/forms/EditUserProfileFullnameFormComponent.vue | 2 +- resources/assets/vue/vuex/modules/authentication.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/vue/components/settings/forms/EditUserProfileFullnameFormComponent.vue b/resources/assets/vue/components/settings/forms/EditUserProfileFullnameFormComponent.vue index c427ab16..315600ff 100644 --- a/resources/assets/vue/components/settings/forms/EditUserProfileFullnameFormComponent.vue +++ b/resources/assets/vue/components/settings/forms/EditUserProfileFullnameFormComponent.vue @@ -26,7 +26,7 @@
Cancel
-
Update
+
Update
diff --git a/resources/assets/vue/vuex/modules/authentication.js b/resources/assets/vue/vuex/modules/authentication.js index f349afa2..b28ddb10 100644 --- a/resources/assets/vue/vuex/modules/authentication.js +++ b/resources/assets/vue/vuex/modules/authentication.js @@ -53,6 +53,8 @@ export default { userAuthentication(store, {access_token, redirect_url}){ localStorage.setItem('user-token', access_token); + localStorage.removeItem('updated-fullname'); + store.commit('SET_AUTHENTICATION', {access_token}); store.dispatch('toggleLoading', {name: 'loginSection', status: true}); From 9ade93dbfadf8bd4a759e182791de3c869cb44b9 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:45:05 +0800 Subject: [PATCH 03/20] debug purchase amount decimal issue --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 25154301..7a68890b 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,6 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); + dd((float)number_format((float)$total , 2, '.', '') === (float)number_format((float)$booking->fix_amount)); $this->updatesTransactionStatus->execute($transaction, (float)number_format((float)$total , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From 6b8ba413316fb3acc40df49a1023c3072e8a7dfd Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:50:18 +0800 Subject: [PATCH 04/20] change payment pending currency date to bank slip upload date --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 7a68890b..afa5ec46 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,7 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd((float)number_format((float)$total , 2, '.', '') === (float)number_format((float)$booking->fix_amount)); + dd((float)number_format((float)$total , 2, '.', '')); $this->updatesTransactionStatus->execute($transaction, (float)number_format((float)$total , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From d239ffd08f4f96d63d7aef4a83be25d642f8a54e Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:51:02 +0800 Subject: [PATCH 05/20] change payment pending currency date to bank slip upload date --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index afa5ec46..a9004055 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,7 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd((float)number_format((float)$total , 2, '.', '')); + dd($total); $this->updatesTransactionStatus->execute($transaction, (float)number_format((float)$total , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From e336292d28bceaf0cf7f242a85319e06e6cda668 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:53:23 +0800 Subject: [PATCH 06/20] fix purchase order 3rd decimal bug --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index a9004055..826443ab 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,8 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd($total); - $this->updatesTransactionStatus->execute($transaction, (float)number_format((float)$total , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); + $this->updatesTransactionStatus->execute($transaction, floor((float) $total) === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From 8d6fbdd29042bbd60a56ba8f85b5ffe76f515a6e Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:55:11 +0800 Subject: [PATCH 07/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 826443ab..580066d7 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,7 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - $this->updatesTransactionStatus->execute($transaction, floor((float) $total) === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); + $this->updatesTransactionStatus->execute($transaction, (floor((float) $total * 100) / 100) === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From efc6f586a443d8b578ab438089f8132da8123297 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:56:14 +0800 Subject: [PATCH 08/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 580066d7..7f2aac04 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,6 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); + dd((floor((float) $total * 100) / 100) ); $this->updatesTransactionStatus->execute($transaction, (floor((float) $total * 100) / 100) === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From 8bb64933f449b2c976704649d7ee869149812229 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:58:21 +0800 Subject: [PATCH 09/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 7f2aac04..98a12d0d 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,8 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd((floor((float) $total * 100) / 100) ); - $this->updatesTransactionStatus->execute($transaction, (floor((float) $total * 100) / 100) === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); + $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From 5e9311f76c1b69f007627d817c78daaa9fbd1b7f Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:59:35 +0800 Subject: [PATCH 10/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 98a12d0d..d765b091 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,6 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); + dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '').' = '. (float)number_format((float)$booking->fix_amount, 2, '.', '')); $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From 1d60d635c356f5f35bf3f388f7636e4697ba468c Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:00:45 +0800 Subject: [PATCH 11/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index d765b091..91a64055 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,7 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '').' = '. (float)number_format((float)$booking->fix_amount, 2, '.', '')); + dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '').' = '. number_format((float)$booking->fix_amount, 2, '.', '')); $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From ae2ae5f715aa4804cd606753ab51ed8590144dcc Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:01:28 +0800 Subject: [PATCH 12/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 91a64055..dd7f2db9 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,8 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '').' = '. number_format((float)$booking->fix_amount, 2, '.', '')); - $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); + $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From 4276b3255836a635dc39362835e316796f50fbd4 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:02:37 +0800 Subject: [PATCH 13/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index dd7f2db9..419c5108 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,6 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); + dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '')); $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From 4f66751ec691cc632f7cce728496994baa8d7d7f Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:03:50 +0800 Subject: [PATCH 14/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 419c5108..7203c8f6 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,6 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); + dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '') .' = '.number_format((float)$booking->fix_amount, 2, '.', '')); dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '')); $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); From ffb446491ef8c8efae39936ec1eea214a074fa84 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:05:28 +0800 Subject: [PATCH 15/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 7203c8f6..3a2d6891 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,9 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '') .' = '.number_format((float)$booking->fix_amount, 2, '.', '')); - dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '')); - $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); + $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From a845722f7db32cfa7789bf9d7e41026d92fb8a10 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:06:38 +0800 Subject: [PATCH 16/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 3a2d6891..df340abf 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,6 +104,8 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); + dd(number_format(floor((float) $total * 100) / 100 , 2, '.', '') .' = '.number_format((float)$booking->fix_amount, 2, '.', '')); + dd(number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '')); $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From c22176e64e2b9b48437541120b507f3fb24abdde Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:07:17 +0800 Subject: [PATCH 17/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index df340abf..3a2d6891 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,8 +104,6 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd(number_format(floor((float) $total * 100) / 100 , 2, '.', '') .' = '.number_format((float)$booking->fix_amount, 2, '.', '')); - dd(number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '')); $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From b36ef72bdf3e609f640400bcda84afcd694e434e Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:08:12 +0800 Subject: [PATCH 18/20] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 3a2d6891..aab5721d 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,6 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); + dd(number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '')); $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From ed10d9c5d6ba29b76cdfc97ad4dc6a574b50fbdc Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:09:32 +0800 Subject: [PATCH 19/20] change payment pending currency date to bank slip upload date --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index aab5721d..928351bc 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,8 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd(number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '')); - $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); + $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction); From 1017baf1ce76fc70f2a3be0cf4f1e02668e5a181 Mon Sep 17 00:00:00 2001 From: Amirul Amin Date: Mon, 28 Jun 2021 20:16:18 +0800 Subject: [PATCH 20/20] fix: header responsive --- .../accounts/forms/LogOutFormComponent.vue | 210 +++++++++++++++--- resources/views/partials/header.blade.php | 120 ++++------ 2 files changed, 228 insertions(+), 102 deletions(-) diff --git a/resources/assets/vue/components/accounts/forms/LogOutFormComponent.vue b/resources/assets/vue/components/accounts/forms/LogOutFormComponent.vue index b32d8912..3f52f93e 100644 --- a/resources/assets/vue/components/accounts/forms/LogOutFormComponent.vue +++ b/resources/assets/vue/components/accounts/forms/LogOutFormComponent.vue @@ -1,10 +1,18 @@ \ No newline at end of file +}; + diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php index 9a0e09ad..10bd50ec 100644 --- a/resources/views/partials/header.blade.php +++ b/resources/views/partials/header.blade.php @@ -2,87 +2,63 @@