From 40fec78213f7cfc7a887d649d980f3b813e02b31 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 24 Jun 2022 11:47:35 +0800 Subject: [PATCH 01/10] update yd list to fetch 3 months --- .../Processors/FetchOrderListsFromYdPortalProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/PackingLists/Processors/FetchOrderListsFromYdPortalProcessor.php b/app/Classes/Modules/PackingLists/Processors/FetchOrderListsFromYdPortalProcessor.php index 9b4aeaca..40eb347a 100644 --- a/app/Classes/Modules/PackingLists/Processors/FetchOrderListsFromYdPortalProcessor.php +++ b/app/Classes/Modules/PackingLists/Processors/FetchOrderListsFromYdPortalProcessor.php @@ -136,7 +136,7 @@ class FetchOrderListsFromYdPortalProcessor public function execute(?Carbon $start = null, ?Carbon $end = null) { try { - $start = $start ? $start : Carbon::now()->subMonths(1); + $start = $start ? $start : Carbon::now()->subMonths(3); $startLimit = Carbon::parse('01-12-2021'); From 591575081ad43e469a030d67961c7eac209be239 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 30 Jun 2022 09:20:28 +0800 Subject: [PATCH 02/10] add customer to yd exempt list --- app/Classes/ValueObjects/Constants/WarehouseReferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/ValueObjects/Constants/WarehouseReferences.php b/app/Classes/ValueObjects/Constants/WarehouseReferences.php index 8a95176b..702059b7 100644 --- a/app/Classes/ValueObjects/Constants/WarehouseReferences.php +++ b/app/Classes/ValueObjects/Constants/WarehouseReferences.php @@ -43,7 +43,7 @@ final class WarehouseReferences { public const YD_DESTINATION_WAREHOUSE = self::YD_KLANG; - public const YD_EXEMPT_LIST = [230, 294, 320, 652, 1248, 1726, 2349]; + public const YD_EXEMPT_LIST = [230, 294, 320, 652, 1248, 1726, 2349, 2574]; public const REPLICA_WHITE_LIST = [502]; From 415b5d7697ee6b0ecbdb4bb09ef5ef9b0fc3b824 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 6 Jul 2022 10:00:00 +0800 Subject: [PATCH 03/10] debug smc report --- routes/web.php | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/web.php b/routes/web.php index bb23eb93..fbf06fcc 100644 --- a/routes/web.php +++ b/routes/web.php @@ -272,6 +272,7 @@ Route::get('/settings', function () { Route::get('/customer/summary/monthly', function () { $containers = Container::whereMonth('loading_date', '>', ((float)\Carbon\Carbon::now()->format('m') - 1))->whereYear('loading_date', \Carbon\Carbon::now()->format('Y'))->get(); + dd($containers); // $containers = Container::whereIn('reference', ['cs-6062', 'eps-3926', 'sh-1122', 'sh-1121', 'eps-3925', 'cs-6060', 'eps-3927', 'cs-6066', 'cs-6069'])->get(); foreach ($containers as $container){ $packingLists = $container->packingLists()->get()->filter(function ($packingList) { From f935cc10a64bdee1f8d9482b93166be76d3542c6 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 6 Jul 2022 10:03:01 +0800 Subject: [PATCH 04/10] debug smc report --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index fbf06fcc..e1125884 100644 --- a/routes/web.php +++ b/routes/web.php @@ -272,7 +272,7 @@ Route::get('/settings', function () { Route::get('/customer/summary/monthly', function () { $containers = Container::whereMonth('loading_date', '>', ((float)\Carbon\Carbon::now()->format('m') - 1))->whereYear('loading_date', \Carbon\Carbon::now()->format('Y'))->get(); - dd($containers); + dd(((float)\Carbon\Carbon::now()->format('m') - 1), \Carbon\Carbon::now()->format('Y')); // $containers = Container::whereIn('reference', ['cs-6062', 'eps-3926', 'sh-1122', 'sh-1121', 'eps-3925', 'cs-6060', 'eps-3927', 'cs-6066', 'cs-6069'])->get(); foreach ($containers as $container){ $packingLists = $container->packingLists()->get()->filter(function ($packingList) { From 17042b4312aa6c6b30c0192ffc5141977cdd207e Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 6 Jul 2022 10:34:14 +0800 Subject: [PATCH 05/10] debug smc report --- routes/web.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index e1125884..cba6abd7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -271,9 +271,7 @@ Route::get('/settings', function () { })->name('settings'); Route::get('/customer/summary/monthly', function () { - $containers = Container::whereMonth('loading_date', '>', ((float)\Carbon\Carbon::now()->format('m') - 1))->whereYear('loading_date', \Carbon\Carbon::now()->format('Y'))->get(); - dd(((float)\Carbon\Carbon::now()->format('m') - 1), \Carbon\Carbon::now()->format('Y')); -// $containers = Container::whereIn('reference', ['cs-6062', 'eps-3926', 'sh-1122', 'sh-1121', 'eps-3925', 'cs-6060', 'eps-3927', 'cs-6066', 'cs-6069'])->get(); + $containers = Container::whereMonth('loading_date', '>=', ((float)\Carbon\Carbon::now()->format('m') - 2))->whereYear('loading_date', (float)\Carbon\Carbon::now()->format('Y'))->get(); foreach ($containers as $container){ $packingLists = $container->packingLists()->get()->filter(function ($packingList) { return $packingList->owner->company_module_id === 248; From 6ebe22b7987c92ed40074915e90906c4073a9521 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 6 Jul 2022 10:36:40 +0800 Subject: [PATCH 06/10] debug smc report --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index cba6abd7..a14ffd7b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -298,7 +298,7 @@ Route::get('/customer/summary/monthly', function () { $packages = $packingList->packages; foreach ($packages as $package){ echo ' - - + '.$packingList->container->loading_date.' MS/CIEF/769SMC/'.$packingList->owner->reference.' '.$container->reference.' '.$package->description.' From 76c05b7c7757008e368fc08fe19537f868e229aa Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 6 Jul 2022 10:37:05 +0800 Subject: [PATCH 07/10] debug smc report --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index a14ffd7b..a45e5278 100644 --- a/routes/web.php +++ b/routes/web.php @@ -298,7 +298,7 @@ Route::get('/customer/summary/monthly', function () { $packages = $packingList->packages; foreach ($packages as $package){ echo ' - '.$packingList->container->loading_date.' + '.$container->loading_date.' MS/CIEF/769SMC/'.$packingList->owner->reference.' '.$container->reference.' '.$package->description.' From 258b8085eeaab14676d5aa83ef528d85a7cfb1fb Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 6 Jul 2022 10:39:03 +0800 Subject: [PATCH 08/10] debug smc report --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index a45e5278..95caff2a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -279,7 +279,7 @@ Route::get('/customer/summary/monthly', function () { if (!count($packingLists)) continue; - echo ' + echo '
@@ -298,7 +298,7 @@ Route::get('/customer/summary/monthly', function () { $packages = $packingList->packages; foreach ($packages as $package){ echo ' - + From 3ccf7a088a26e7bbe6d0801774f4ae99d5c6d857 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 6 Jul 2022 10:40:34 +0800 Subject: [PATCH 09/10] debug smc report --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 95caff2a..8dc4b0be 100644 --- a/routes/web.php +++ b/routes/web.php @@ -279,7 +279,7 @@ Route::get('/customer/summary/monthly', function () { if (!count($packingLists)) continue; - echo '
Date Full Marking
'.$container->loading_date.''.$container->loading_date->format('d-m-Y').' MS/CIEF/769SMC/'.$packingList->owner->reference.' '.$container->reference.' '.$package->description.'
+ echo '
From 06015cea72c77f9fb56f28773c4da7a5f1a54472 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 7 Jul 2022 11:31:07 +0800 Subject: [PATCH 10/10] remove customer profile junk code --- .../sections/CustomerProfileSectionComponent.vue | 9 --------- 1 file changed, 9 deletions(-) diff --git a/resources/assets/vue/components/companies/sections/CustomerProfileSectionComponent.vue b/resources/assets/vue/components/companies/sections/CustomerProfileSectionComponent.vue index 9f9764c2..318da08e 100644 --- a/resources/assets/vue/components/companies/sections/CustomerProfileSectionComponent.vue +++ b/resources/assets/vue/components/companies/sections/CustomerProfileSectionComponent.vue @@ -70,17 +70,8 @@ - {{children}} -export function Heading({element: Element = 'h2', children, id}: HeadingProps) { -return ( - - {children} - -); -}
Date Full Marking