Compare commits

...

1529 Commits

Author SHA1 Message Date
Edmond Lang 855ddfaafd Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2025-06-12 22:25:02 +08:00
Edmond Lang d6cfd85aa2 add /export/all-customers-info-for-lark-system 2025-06-12 22:18:53 +08:00
Dillon Ngo 8aab27faa2 Merge branch 'dillon/92-fix-multiple-errors' into vapor/development 2025-05-27 20:05:33 +08:00
Dillon Ngo 844527417a Quick fix problem reported by GaryHoo - IZYIM order order quantity is different 2025-05-27 20:04:42 +08:00
Dillon Ngo c5cf255430 Merge branch 'dillon/92-fix-multiple-errors' into vapor/development 2025-05-27 19:39:23 +08:00
Dillon Ngo f725933f7e Quick fix problem reported by Yien - IZYIM unable to claim unclaimed packing list, after key in the correct order number and click confirm, there is no response 2025-05-27 19:37:44 +08:00
Dillon Ngo 92e962a7c7 Merge branch 'dillon/91-fix-unable-to-release-order' into vapor/development 2025-05-13 11:34:19 +08:00
Dillon Ngo d5a5f9e730 UI/UX + syntax fix 2025-05-13 11:33:58 +08:00
Dillon Ngo 9f0bfd2120 Merge branch 'dillon/91-fix-unable-to-release-order' into vapor/development 2025-05-13 04:35:18 +08:00
Dillon Ngo 62f892dfd1 UI/UX + syntax fix 2025-05-13 04:34:58 +08:00
Dillon Ngo 4caec57490 Merge branch 'dillon/91-fix-unable-to-release-order' into vapor/development 2025-05-13 04:10:27 +08:00
Dillon Ngo 82f5d4c2bc UI/UX + syntax fix 2025-05-13 04:09:36 +08:00
Dillon Ngo a1eebe7f65 UI/UX + syntax fix 2025-05-13 02:45:40 +08:00
Edmondlang 2990f570e8 Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2025-05-06 11:17:23 +08:00
Edmondlang 18bd36217b add function to add contact person 2025-05-06 11:16:06 +08:00
Dillon Ngo 772fd583b5 Quick patch for missing parcel from YD integration reported by Yan - case number 2 on 20250502 2025-05-02 21:21:50 +08:00
Dillon Ngo 57812656fd Quick patch for missing parcel from YD integration reported by Yan - case number 2 on 20250502 2025-05-02 21:02:51 +08:00
Dillon Ngo 3933728a19 Quick patch for missing parcel from YD integration reported by Yan - case number 2 on 20250502 2025-05-02 20:47:01 +08:00
Dillon Ngo 8ce8ed813a Quick patch for missing parcel from YD integration reported by Yan - using command 2025-05-01 18:56:12 +08:00
Dillon Ngo 50b2f00bdc Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/production 2025-04-28 22:24:11 +08:00
Dillon Ngo 54c23c9f38 New UI to show YD Order Tracking infomation - Disable unit testing for production deployment 2025-04-28 22:23:53 +08:00
Dillon Ngo 15570de9fb Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/production 2025-04-28 22:20:55 +08:00
Edmondlang b21cdba5ae upon payment completion, need to redirect to order.show instead of order.details 2025-04-28 16:05:54 +08:00
Edmondlang fe8395b250 Yien's request: remove the MXXXXXXXX below the order number? we shouldn't show it to customer 2025-04-25 10:28:18 +08:00
Dillon Ngo f15ee64484 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-24 12:36:33 +08:00
Dillon Ngo 61f01ed39b New UI to show YD Order Tracking infomation - Testing 2025-04-24 12:35:32 +08:00
Dillon Ngo 2bbb3ca851 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-23 12:49:14 +08:00
Dillon Ngo 6e2b2e5f65 New UI to show YD Order Tracking infomation - Harry feedback update 2025-04-23 12:48:41 +08:00
Dillon Ngo c9f2abe030 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-23 12:40:35 +08:00
Dillon Ngo b4b509b0d1 New UI to show YD Order Tracking infomation - Harry feedback update 2025-04-23 12:39:43 +08:00
Dillon Ngo f9f29c5c68 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-19 19:46:42 +08:00
Dillon Ngo 6bafc49a22 New UI to show YD Order Tracking infomation - Testing 2025-04-19 19:46:00 +08:00
Edmondlang 4e4bf96a07 revert exportGroupTransaction. Wrong updates 2025-04-18 10:18:30 +08:00
Edmondlang 2e9c3000a6 remove the time from the "Date" column
Request from Azril:

I’ve attached 3 files below:
AutoMapping Excel – downloaded from the Exchange Portal
Paid Invoice Excel – from the IzyIM Portal
Aging Report Excel – also from the IzyIM Portal
What we need from you is to remove the time from the "Date" column in each file. We only need the date value moving forward.
2025-04-17 18:31:38 +08:00
Dillon Ngo ae40332b56 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-16 22:17:27 +08:00
Dillon Ngo 3e4d52d2ff New UI to show YD Order Tracking infomation - fixes for feedback on 20250408 2025-04-16 22:17:20 +08:00
Dillon Ngo d9890b2a4a Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-16 22:14:12 +08:00
Dillon Ngo f25f5ebb41 New UI to show YD Order Tracking infomation - fixes for feedback on 20250408 2025-04-16 22:13:50 +08:00
Edmondlang 404758c851 fix bug : Error: ob_end_clean(): failed to delete buffer.
use AWSS3Helper if filesystemDriver = s3
2025-04-16 18:18:08 +08:00
Edmondlang f6d00383cb Safely clean output buffer only if it's started and not already cleaned 2025-04-16 14:40:07 +08:00
Edmondlang 33dfdde9a0 Error: ob_end_clean(): failed to delete buffer. No buffer to delete.
Fix: Safely clean output buffer if it exists
2025-04-16 10:56:21 +08:00
Edmondlang 9b1a5b633c code update for: add function to change mobile no 2025-04-15 20:13:50 +08:00
Edmondlang b0cd0cca4d remove the time from the "Date" column
Request from Azril:

I’ve attached 3 files below:
AutoMapping Excel – downloaded from the Exchange Portal
Paid Invoice Excel – from the IzyIM Portal
Aging Report Excel – also from the IzyIM Portal
What we need from you is to remove the time from the "Date" column in each file. We only need the date value moving forward.
2025-04-15 19:49:26 +08:00
Edmondlang c0e60e5d3b add function to change mobile no 2025-04-15 19:24:11 +08:00
Dillon Ngo 33ca3dc733 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-14 15:29:42 +08:00
Dillon Ngo d093b774c2 New UI to show YD Order Tracking infomation - Testing 2025-04-14 15:29:21 +08:00
Dillon Ngo 448f88fc29 Development branch only amendment for testing 2025-04-14 15:22:08 +08:00
Dillon Ngo 554d3ad98e Development branch only amendment for testing 2025-04-14 15:20:40 +08:00
Dillon Ngo eede640484 Development branch only amendment for testing 2025-04-14 15:20:16 +08:00
Dillon Ngo a94536590a Development branch only amendment for testing 2025-04-14 15:19:34 +08:00
Dillon Ngo 417db290db Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-14 15:16:07 +08:00
Dillon Ngo 3fa4b498e9 New UI to show YD Order Tracking infomation - Testing 2025-04-14 15:14:44 +08:00
Dillon Ngo 5fd19fa0c2 Development branch only amendment for testing 2025-04-14 14:41:00 +08:00
Dillon Ngo 50e8ecd236 Development branch only amendment for testing 2025-04-14 14:36:40 +08:00
Dillon Ngo e072a5d89f Development branch only amendment for testing 2025-04-14 14:04:49 +08:00
Dillon Ngo ae18485357 Development branch only amendment for testing 2025-04-14 14:00:29 +08:00
Dillon Ngo 438e731ebc Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-14 13:53:34 +08:00
Dillon Ngo ccd06ff740 New UI to show YD Order Tracking infomation - Testing 2025-04-14 13:53:22 +08:00
Dillon Ngo 44ab625c1f Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-14 12:58:13 +08:00
Dillon Ngo c209f6e4ed New UI to show YD Order Tracking infomation - Testing 2025-04-14 12:58:00 +08:00
Dillon Ngo 6f433593d7 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-14 12:45:02 +08:00
Dillon Ngo f4d8ece23f New UI to show YD Order Tracking infomation - Testing 2025-04-14 12:44:50 +08:00
Dillon Ngo f0bb9e3f10 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-14 12:21:05 +08:00
Dillon Ngo 215e4c72d3 New UI to show YD Order Tracking infomation - Testing 2025-04-14 12:20:54 +08:00
Dillon Ngo ec8e1e2408 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-14 10:20:21 +08:00
Dillon Ngo 386f5740f4 New UI to show YD Order Tracking infomation - Testing 2025-04-14 10:20:09 +08:00
Dillon Ngo 2dc55a4fea Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-14 10:06:17 +08:00
Dillon Ngo 78c43fd7a4 New UI to show YD Order Tracking infomation - Testing 2025-04-14 10:05:45 +08:00
edmondlang eb84b0ae82 Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2025-04-09 17:22:15 +08:00
edmondlang d076892176 invoice date in the order payment section is wrong. It should be created_at date 2025-04-09 17:21:52 +08:00
Dillon Ngo 32c8f9ebf6 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-03 09:58:12 +08:00
Dillon Ngo 06b9695528 New UI to show YD Order Tracking infomation - Testing 2025-04-03 09:58:01 +08:00
Dillon Ngo f2ea72a2c7 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-03 09:50:07 +08:00
Dillon Ngo 0a54f46b91 New UI to show YD Order Tracking infomation - Testing 2025-04-03 09:49:58 +08:00
Dillon Ngo a05e757f1e Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-03 09:42:25 +08:00
Dillon Ngo 83b3d0c725 New UI to show YD Order Tracking infomation - Testing 2025-04-03 09:42:13 +08:00
Dillon Ngo d5958396f8 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-03 09:38:28 +08:00
Dillon Ngo de7331547c New UI to show YD Order Tracking infomation - Testing 2025-04-03 09:38:17 +08:00
Dillon Ngo ad54081fe9 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-03 09:26:15 +08:00
Dillon Ngo 4daaac476d New UI to show YD Order Tracking infomation - Testing 2025-04-03 09:26:05 +08:00
Dillon Ngo 76163cc7fe Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-03 08:02:28 +08:00
Dillon Ngo fbf036d4b8 New UI to show YD Order Tracking infomation 2025-04-03 08:02:18 +08:00
Dillon Ngo acffcdf8fa Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-04-03 07:19:54 +08:00
Dillon Ngo 055e720e9f New UI to show YD Order Tracking infomation 2025-04-03 07:18:31 +08:00
Dillon Ngo 8524bba263 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-25 07:02:13 +08:00
Dillon Ngo 5a0b2d5a86 New UI to show YD Order Tracking infomation 2025-03-25 07:02:01 +08:00
Dillon Ngo ec5b573163 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-25 06:58:05 +08:00
Dillon Ngo 8f6f9893bb New UI to show YD Order Tracking infomation 2025-03-25 06:57:50 +08:00
Dillon Ngo a937845260 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-25 06:55:08 +08:00
Dillon Ngo 3255020f11 New UI to show YD Order Tracking infomation 2025-03-25 06:54:44 +08:00
Dillon Ngo a290c48ab6 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-25 06:36:45 +08:00
Dillon Ngo 8c16277c6c New UI to show YD Order Tracking infomation 2025-03-25 06:36:32 +08:00
Dillon Ngo 0b1c71cbe9 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-25 06:28:22 +08:00
Dillon Ngo 87aeb0ae59 New UI to show YD Order Tracking infomation 2025-03-25 06:28:10 +08:00
Dillon Ngo 0656ec3b39 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-25 06:24:59 +08:00
Dillon Ngo 76b14cd667 New UI to show YD Order Tracking infomation 2025-03-25 06:24:43 +08:00
Dillon Ngo 87d7b9bd9d Merge branch 'dillon/82-yd-integration-debug' into vapor/development 2025-03-25 04:02:02 +08:00
Dillon Ngo 6affa86c92 Quick patch for missing YD integration - using web route 2025-03-25 03:59:43 +08:00
Dillon Ngo dfd9c30c8c Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-24 06:41:17 +08:00
Dillon Ngo a8c4661b2d New UI to show YD Order Tracking infomation 2025-03-24 06:40:55 +08:00
Dillon Ngo d70fe656d1 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-24 05:48:16 +08:00
Dillon Ngo acb42ef3ab New UI to show YD Order Tracking infomation 2025-03-24 05:48:00 +08:00
Dillon Ngo 041946c1c5 Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-24 05:21:27 +08:00
Dillon Ngo 21f1a14e6f New UI to show YD Order Tracking infomation 2025-03-24 05:20:53 +08:00
Dillon Ngo a4681bee3d Merge branch 'dillon/83-yd-order-tracking-query-ui' into vapor/development 2025-03-22 11:40:42 +08:00
Dillon Ngo d5a9e3923e New UI to show YD Order Tracking infomation 2025-03-22 11:39:31 +08:00
Dillon Ngo 174d46075b Merge branch 'dillon/82-yd-integration-debug' into vapor/development 2025-03-21 09:23:06 +08:00
Dillon Ngo 7416aa00ac Quick patch for missing YD integration - using web route 2025-03-21 09:21:01 +08:00
Dillon Ngo 437765bdbb Quick patch for missing YD integration - using web route 2025-03-19 09:01:05 +08:00
Dillon Ngo 9c7ed93a54 Quick patch for missing YD integration 2025-03-18 12:31:02 +08:00
edmondlang e5c8778ad8 Merge branches 'vapor/development' and 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2025-02-17 17:44:20 +08:00
edmondlang a3b08a7c11 fix bug error web "/container/billing/{month}/{year}" 2025-02-17 17:43:52 +08:00
edmondlang e3bc918bd8 add new segment - No Extra Centimeter Charged 2025-02-14 00:30:53 +08:00
Dillon Ngo cda80293a0 Merge branch 'dillon/79-group-payment-approval-not-working' into vapor/development 2025-02-01 21:50:05 +08:00
Dillon Ngo a23a632b87 Debug approve payment problem 2025-02-01 21:31:32 +08:00
Dillon Ngo 651092aa65 Debug approve payment problem 2025-02-01 21:09:44 +08:00
Dillon Ngo fe79d5bcef Debug approve payment problem 2025-02-01 19:01:24 +08:00
Dillon Ngo 6ea7517187 Debug approve payment problem 2025-02-01 18:45:05 +08:00
Dillon Ngo 4e68eefe4d Debug approve payment problem 2025-02-01 18:21:03 +08:00
Dillon Ngo 48fc02f2d2 Debug approve payment problem 2025-02-01 18:00:12 +08:00
Dillon Ngo 942c94c821 Debug approve payment problem 2025-02-01 02:20:10 +08:00
Dillon Ngo bfb76bc512 Debug approve payment problem 2025-02-01 02:00:07 +08:00
Dillon Ngo 8e3cdef4e1 Debug approve payment problem 2025-02-01 01:04:15 +08:00
Dillon Ngo c798d96238 Debug approve payment problem 2025-02-01 00:40:52 +08:00
Dillon Ngo 64d1b91fa3 Debug approve payment problem 2025-01-31 23:51:15 +08:00
Dillon Ngo 2ff63c8d0d Debug approve payment problem 2025-01-31 23:26:52 +08:00
Dillon Ngo b57a7cb2bb Debug approve payment problem 2025-01-31 23:07:20 +08:00
Dillon Ngo bf5c5574d6 Debug approve payment problem 2025-01-31 22:34:45 +08:00
Dillon Ngo 74a1f2af4c Debug approve payment problem 2025-01-31 22:11:03 +08:00
Dillon Ngo 95d230d64f Debug approve payment problem 2025-01-31 21:58:16 +08:00
Dillon Ngo 88564c661f Debug approve payment problem 2025-01-31 21:33:14 +08:00
edmondlang 6ce7f7dc91 add Google Tag Manager (GTM) so that the chat daddy code can work 2025-01-21 13:08:14 +08:00
edmondlang b91a8635d5 disable crisp 2025-01-21 12:36:19 +08:00
edmondlang 236b3769f8 add more district in seeder 2025-01-21 12:35:16 +08:00
edmondlang 3c4a19d4be update order Resource 2024-12-17 18:03:43 +08:00
edmondlang 269fbcbd66 revert logging for UpdateDoFromYDPortalProcessor response 2024-12-16 14:33:32 +08:00
edmondlang 0313e445de Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-12-16 13:17:19 +08:00
edmondlang 603a67c770 add created_at for ExportsSegmentCustomers 2024-12-16 13:16:32 +08:00
edmondlang bb0832b8b0 add logging for UpdateDoFromYDPortalProcessor response 2024-12-16 12:22:29 +08:00
Dillon Ngo b8ea925dd8 Merge branch 'dillon/77-yd-api-debugging' into vapor/development 2024-12-15 09:49:07 +08:00
Dillon Ngo 8276fef3e1 YD API - Added logs for debugging 2024-12-15 09:46:54 +08:00
edmondlang aa4fcae07e update export segment customers 2024-12-13 20:34:32 +08:00
edmondlang 05adf091a8 update export segment customers 2024-12-13 20:00:07 +08:00
edmondlang 1d267e618a Merge branch 'vapor/development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-12-13 18:42:05 +08:00
edmondlang 0743491d6b Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-12-13 18:41:55 +08:00
edmondlang b5e5e88a6a export segment customers 2024-12-13 18:41:11 +08:00
Dillon Ngo 3aee059126 Merge branch 'dillon/78-order-paid-but-showing-unpaid' into vapor/development 2024-12-11 02:39:13 +08:00
Dillon Ngo 32bad3bf07 Data patch for order already PAID, but still showing unpaid 2024-12-11 02:19:48 +08:00
edmondlang 1508fb5f1a add new advertisement - Tax Refund Service 2024-11-29 20:46:14 +08:00
edmondlang 70a2bdec48 change all 'Tax Rebate' to 'Tax Refund' 2024-11-26 19:05:01 +08:00
Dillon Ngo 459b301ff4 Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-26 16:13:28 +08:00
Dillon Ngo f5df0c9f1f Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/production 2024-11-26 15:58:51 +08:00
Dillon Ngo e50bab014d Laravel Vapor - Fix a problem where packages not updating correct status 2024-11-26 15:58:31 +08:00
edmondlang 0ea6d5b577 Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development
# Conflicts:
#	app/Classes/Modules/Companies/ControllersLogic/ApproveIdentificationDocumentLogic.php
2024-11-21 14:55:29 +08:00
edmondlang 1933787fc3 addd function to revert identification document approval 2024-11-21 14:46:22 +08:00
Dillon Ngo 5535f13aff Merge branch 'dillon/34.8a-enhancement' into vapor/production 2024-11-18 20:56:19 +08:00
Dillon Ngo caf79c9dfa Merge branch 'dillon/34.8a-enhancement' into vapor/development 2024-11-17 13:52:09 +08:00
Dillon Ngo 3a2131a04d Laravel Vapor - Enhancement to prevent customer from underpay when a payment transaction include storage invoice(s) 2024-11-17 13:51:54 +08:00
Dillon Ngo 4c819a1297 Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-16 15:50:13 +08:00
Dillon Ngo c8e8c9cb0e Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/production 2024-11-16 15:49:18 +08:00
Dillon Ngo 0e617f5ce2 Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-16 15:49:00 +08:00
Dillon Ngo 462effb75c Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-16 14:29:52 +08:00
Dillon Ngo ccb77ce56c Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/production 2024-11-16 14:29:21 +08:00
Dillon Ngo 8f8c3ca660 Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-16 14:28:43 +08:00
Dillon Ngo 8e0e9e1c77 Merge branch 'dillon/34.8a-enhancement' into vapor/development 2024-11-16 09:17:32 +08:00
Dillon Ngo 922718f7c2 Laravel Vapor - Enhancement to prevent customer from underpay when a payment transaction include storage invoice(s) 2024-11-16 09:17:15 +08:00
Dillon Ngo cd4b12a88c Merge branch 'dillon/34.8a-enhancement' into vapor/development 2024-11-15 18:34:21 +08:00
Dillon Ngo 54e6041fe5 Laravel Vapor - Enhancement to prevent customer from underpay when a payment transaction include storage invoice(s) 2024-11-15 18:34:08 +08:00
Dillon Ngo 6275574ec2 Merge branch 'dillon/34.8a-enhancement' into vapor/development 2024-11-15 09:17:43 +08:00
Dillon Ngo 141f1ed9d5 Laravel Vapor - Enhancement to prevent customer from underpay when a payment transaction include storage invoice(s) 2024-11-15 09:17:16 +08:00
Dillon Ngo 9fa274cd55 Merge branch 'dillon/34.8a-enhancement' into vapor/development 2024-11-14 14:03:43 +08:00
Dillon Ngo 61d7ad22e7 Laravel Vapor - Enhancement to prevent customer from underpay when a transaction also invoice storage invoices 2024-11-14 14:03:29 +08:00
Dillon Ngo 798bf4e70e Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/production 2024-11-14 12:02:24 +08:00
Dillon Ngo 04b9861eea Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-14 11:48:40 +08:00
Dillon Ngo aa833f7a9f Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-14 11:48:26 +08:00
Dillon Ngo 8dd3fbf97a Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/production 2024-11-13 21:38:36 +08:00
Dillon Ngo 61ab80a283 Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-13 21:37:54 +08:00
Dillon Ngo 63e1b767fc Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-13 21:37:20 +08:00
Dillon Ngo 60ff1c5130 Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-13 21:36:56 +08:00
Dillon Ngo c729daba18 Merge branch 'vapor/development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-11-13 10:54:54 +08:00
Dillon Ngo c3ffed5af9 Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-13 10:54:37 +08:00
Dillon Ngo 22aac2df04 Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-13 10:54:17 +08:00
edmondlang 5c3a3b8fc9 Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-11-13 00:19:05 +08:00
edmondlang 33d65be53b tax rebate feedback:
1. add the word "退税“ behind the order number as requested by YD
2. the word "供应商” should change to “联络人”
3, Tax Rebate Refund only applicable on GZ warehouse. YW and FS warehouse cannot do Tax Rebate. Can you block or disallow the tax rebate section for this both warehouse ?
4. It will be good if a delete button can be implemented in the Created Tax Rebate QR code, so customer can remove them if they created wrongly
2024-11-13 00:18:16 +08:00
Dillon Ngo ed36609bfe Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-12 17:45:14 +08:00
Dillon Ngo d2f6f4e8a1 Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-12 17:45:01 +08:00
Dillon Ngo 1e077ebb24 Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-12 13:48:19 +08:00
Dillon Ngo 299c384cb2 Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-12 13:48:06 +08:00
Dillon Ngo b43a77754d Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-12 12:18:29 +08:00
Dillon Ngo be171f550b Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-12 12:18:07 +08:00
Dillon Ngo 8295b80f73 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-11-12 09:24:09 +08:00
Dillon Ngo 3d12df183a Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-11-12 09:09:27 +08:00
Dillon Ngo 67969c63d3 Laravel Vapor - Logs output minor amendments (code sync with Exchange) 2024-11-12 09:05:45 +08:00
Dillon Ngo 2074c8661a Laravel Vapor - Remove comments 2024-11-12 08:01:59 +08:00
Dillon Ngo 9518928b7d Laravel Vapor - Remove comments 2024-11-12 07:59:38 +08:00
Dillon Ngo 634a39b1ea Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-11-11 15:08:14 +08:00
Dillon Ngo 5808fd0b2f Laravel Vapor - Fix missing info with order packages where in China Warehoue 2024-11-11 15:06:30 +08:00
Dillon Ngo 1902b70b53 Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-11 15:01:37 +08:00
Dillon Ngo d7ce1df29b Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-11 15:01:31 +08:00
Dillon Ngo a2641ac96b Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-11 14:48:13 +08:00
Dillon Ngo eac3f31351 Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-11 14:48:05 +08:00
Dillon Ngo ab10737f66 Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-11 13:22:38 +08:00
Dillon Ngo 95a9cba32d Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-11 13:22:28 +08:00
Dillon Ngo 3bb0affba3 Merge branch 'dillon/34.8b-yd-api-bug-fix' into vapor/development 2024-11-11 12:50:34 +08:00
Dillon Ngo 26812f723a Laravel Vapor - YD API integration code rewrite to fix eta/etd 2024-11-11 12:48:52 +08:00
edmondlang b17779ca74 Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-11-06 18:39:52 +08:00
edmondlang 0734447937 fix bug - /orders search component not working 2024-11-06 18:38:48 +08:00
Dillon Ngo e3f57fffd6 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-11-05 04:21:27 +08:00
Dillon Ngo b4bc441a5b Laravel Vapor - Update custom logs retention period (sync code from Exchange) 2024-11-05 04:09:08 +08:00
Dillon Ngo 5c6f7ca01a Merge branch 'dillon/34.8-vapor-development' into vapor/development 2024-11-05 03:31:35 +08:00
Dillon Ngo d898fc1725 Laravel Vapor - Update custom logs retention period (sync code from Exchange) 2024-11-05 03:31:13 +08:00
Dillon Ngo 809c1c07c2 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-11-05 03:28:46 +08:00
Dillon Ngo d678440032 Laravel Vapor - Update custom logs retention period (sync code from Exchange) 2024-11-05 03:28:17 +08:00
edmondlang 75b475ff3c Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development
# Conflicts:
#	app/Classes/Modules/Addresses/ControllersLogic/CreateAddressLogic.php
#	app/Classes/Modules/Transactions/Processors/CheckStorageInvoiceTransactionProcessor.php
2024-11-04 16:48:44 +08:00
edmondlang 4f95520826 Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/production 2024-11-04 16:46:22 +08:00
edmondlang 33a271a54c fix bug - /orders search component not working 2024-11-04 16:45:59 +08:00
Dillon Ngo 80cb167ac8 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-11-02 07:04:52 +08:00
Dillon Ngo 3e3728a089 Laravel Vapor - move certain environment variables to source code vapor YAML file 2024-11-02 07:04:29 +08:00
Dillon Ngo dc8a1b0325 Merge branch 'dillon/34.8a-enhancement' into vapor/production 2024-11-02 06:08:31 +08:00
edmondlang 4a6e5f7130 fix bug create order add address extra fields 2024-11-01 17:27:55 +08:00
Dillon Ngo 21ae58fbd9 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-11-01 11:19:00 +08:00
Dillon Ngo 6b78ca3d46 Laravel Vapor - move certain environment variables to source code vapor YAML file 2024-11-01 11:18:47 +08:00
Dillon Ngo 5d33e81c61 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-11-01 11:01:01 +08:00
Dillon Ngo 38612253d0 Laravel Vapor - move certain environment variables to source code vapor YAML file 2024-11-01 11:00:41 +08:00
Dillon Ngo e6ed95854d Laravel Vapor - Enhancement to prevent customer from underpay when a transaction also invoice storage invoices 2024-11-01 10:18:46 +08:00
Dillon Ngo a9c83a50dc Merge branch 'vapor/development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-11-01 10:09:59 +08:00
Dillon Ngo a2f43fdafd Laravel Vapor - Enhancement to prevent customer from underpay when a transaction also invoice storage invoices 2024-11-01 10:09:45 +08:00
Dillon Ngo 2fccdf4f7e Laravel Vapor - Enhancement to prevent customer from underpay when a transaction also invoice storage invoices 2024-11-01 10:05:16 +08:00
edmondlang 5d5df47f82 Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-10-31 18:13:39 +08:00
edmondlang 56d48598df deploy tax rebate QR and address extra fields 2024-10-31 18:13:10 +08:00
edmondlang 4f77da822b Merge branch 'vapor-address-extra-fields' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/production 2024-10-31 18:05:50 +08:00
edmondlang cf6fd2dad9 Merge branch 'vapor/tax-rebate-qr' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/production 2024-10-31 18:05:35 +08:00
Dillon Ngo 6cb1ec82f3 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-10-30 12:42:36 +08:00
Dillon Ngo f71cc1e8c9 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-10-30 12:25:25 +08:00
Dillon Ngo 733b9cdfcc Laravel Vapor - sync code from Exchange date filter for reports download at /downloads page 2024-10-30 12:24:50 +08:00
Dillon Ngo 674c0ed06d Merge branch 'dillon/34.8a-enhancement' into vapor/development 2024-10-30 10:03:22 +08:00
Dillon Ngo 4a2860449f Laravel Vapor - Enhancement to prevent customer from underpay when a transaction also invoice storage invoices 2024-10-30 10:02:18 +08:00
edmondlang efc77225c4 Merge branch 'vapor/tax-rebate-qr' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-10-28 17:51:14 +08:00
Dillon Ngo 6fbea32761 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-10-23 03:06:31 +08:00
Dillon Ngo 50624b3d75 Laravel Vapor - Debug YD API call 2024-10-23 03:06:24 +08:00
Dillon Ngo dddbeb2ebd Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-10-23 01:37:26 +08:00
Dillon Ngo 22714a2763 Laravel Vapor - Debug YD API call 2024-10-23 01:37:01 +08:00
edmondlang bc2c9610ee update tax rebate qr 2024-10-22 23:50:44 +08:00
edmondlang 3dc234321c update tax rebate qr 2024-10-22 23:29:51 +08:00
edmondlang e90f84d5dc Merge branch 'vapor/tax-rebate-qr' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development
# Conflicts:
#	app/Models/Order.php
2024-10-22 23:00:25 +08:00
edmondlang 4a65031aa3 tax rebate qr 2024-10-22 22:58:06 +08:00
Dillon Ngo 330a0c187a Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-10-19 03:18:01 +08:00
Dillon Ngo 4dd30b29c0 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-10-19 03:17:35 +08:00
Dillon Ngo ac6211cf5f Laravel Vapor - FIx a problem where order page not showing any thing 2024-10-19 03:17:20 +08:00
Dillon Ngo 65a622cd7b Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-10-19 02:07:24 +08:00
Dillon Ngo 072fa8f052 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-10-19 01:09:01 +08:00
Dillon Ngo bba600725e Laravel Vapor - Data patch for underpay group payments 2024-10-19 01:07:58 +08:00
Dillon Ngo 9f0af9ac23 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-10-18 12:29:05 +08:00
Dillon Ngo 4fa80a2a88 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-10-18 12:15:49 +08:00
Dillon Ngo 64f52f2c11 Laravel Vapor - FIx a problem where order page not showing any thing 2024-10-18 12:15:35 +08:00
Dillon Ngo c212fffc86 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-10-16 03:56:21 +08:00
Dillon Ngo 72c1b2fb2e Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-10-16 03:52:39 +08:00
Dillon Ngo b4f5328a21 Laravel Vapor - Minor typo error amendment 2024-10-16 03:23:05 +08:00
Dillon Ngo 092f6411f8 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development 2024-10-16 03:17:52 +08:00
Dillon Ngo 7aee324294 Merge branch 'dillon/34.8-jenkins-vapor' into vapor/production 2024-10-16 01:51:40 +08:00
Dillon Ngo 7930e45393 Laravel Vapor - Update new RDS endpoint 2024-10-16 01:51:18 +08:00
Dillon Ngo 052dc4e5a0 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-16 01:21:43 +08:00
edmondlang 484adac71c Merge branch 'vapor-address-extra-fields' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-10-16 00:46:15 +08:00
edmondlang 32bd000195 update address extra fields 2024-10-16 00:45:25 +08:00
edmondlang b9861f6d49 fix code merging 2024-10-15 12:27:13 +08:00
edmondlang 29477c179e remove logging 2024-10-15 01:05:44 +08:00
edmondlang 272150f9f6 Merge branch 'vapor-address-extra-fields' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development
# Conflicts:
#	app/Classes/Modules/Addresses/ControllersLogic/UpdateAddressLogic.php
#	app/Models/Address.php
#	resources/assets/vue/components/addresses/forms/AddressFormComponent.vue
2024-10-15 01:05:02 +08:00
edmondlang d5265c1254 update address extra fields 2024-10-15 01:01:31 +08:00
edmondlang f44497e50c address extra fields 2024-10-14 14:16:33 +08:00
Dillon Ngo 450d2c15f9 Laravel Vapor - Update new RDS Instance endpoint 2024-10-13 16:28:52 +08:00
Dillon Ngo b4f933485f Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-12 23:50:38 +08:00
Dillon Ngo 7b6ed51ce8 Laravel Vapor - New website under maintenance page 2024-10-12 23:50:22 +08:00
Dillon Ngo afca98d27b Merge branch 'vapor/development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-10-12 23:22:55 +08:00
Dillon Ngo 24aee77c03 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-12 23:22:31 +08:00
Dillon Ngo 30d99b8d79 Laravel Vapor - New website under maintenance page 2024-10-12 23:22:01 +08:00
edmondlang 89968f078d Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-10-12 15:24:09 +08:00
edmondlang 7b0e271459 admin update new email for user 2024-10-12 15:23:12 +08:00
Dillon Ngo 9a58eb57a7 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-12 14:58:51 +08:00
Dillon Ngo e6db981d5e Laravel Vapor - New UI for admin to download reports 2024-10-12 14:58:41 +08:00
Dillon Ngo 28130fb987 Merge branch 'vapor/development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-10-12 14:44:55 +08:00
Dillon Ngo fa12f767c9 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-12 14:44:30 +08:00
Dillon Ngo d4e008380b Laravel Vapor - New UI for admin to download reports 2024-10-12 14:44:15 +08:00
edmondlang 7131062280 Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into vapor/development 2024-10-12 01:50:15 +08:00
edmondlang bb08f5d872 admin update new email for user 2024-10-12 01:48:58 +08:00
Dillon Ngo 5b45d42aaa Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-10 18:13:24 +08:00
Dillon Ngo 3228b8d5c7 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-10 17:30:39 +08:00
Dillon Ngo f1c7323a1d Laravel Vapor - New UI for admin to download reports 2024-10-10 17:30:27 +08:00
Dillon Ngo e8a17af3a6 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-10 17:10:03 +08:00
Dillon Ngo 47402701ba Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-10 17:06:59 +08:00
Dillon Ngo c67ca30100 Laravel Vapor - New UI for admin to download reports 2024-10-10 17:06:50 +08:00
Dillon Ngo cfbd4c4f81 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-10 16:46:42 +08:00
Dillon Ngo 21ec1a582a Laravel Vapor - Fix a problem at container show page showing blank 2024-10-10 16:46:31 +08:00
Dillon Ngo d7b3c26e03 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-10 16:31:41 +08:00
Dillon Ngo 0b8aea4b60 Laravel Vapor - New UI for admin to download reports 2024-10-10 16:31:08 +08:00
Dillon Ngo d86e7fdc3e Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-09 15:04:58 +08:00
Dillon Ngo 92cf194c07 Laravel Vapor - Fix another 504 issue when searching for container 2024-10-09 15:04:42 +08:00
Dillon Ngo 74ec1c949b Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-09 13:13:53 +08:00
Dillon Ngo 497666e582 Laravel Vapor - New schedule tasks and commands for token expiration for new user and password reset 2024-10-09 13:13:28 +08:00
Dillon Ngo 5828276ebc Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-09 12:52:34 +08:00
Dillon Ngo 7953de1f7d Laravel Vapor - New schedule tasks and commands for token expiration for new user and password reset 2024-10-09 12:52:25 +08:00
Dillon Ngo b2a80d2e56 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-09 12:23:27 +08:00
Dillon Ngo dcca295c52 Laravel Vapor - New schedule tasks and commands for token expiration for new user and password reset 2024-10-09 12:22:50 +08:00
Dillon Ngo 283be0b8a4 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-08 20:07:11 +08:00
Dillon Ngo 0b9db1940c Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-08 19:51:40 +08:00
Dillon Ngo 3ac466f412 Laravel Vapor - Fix another 504 issue when searching for container 2024-10-08 19:49:30 +08:00
Dillon Ngo 87ffaa5b0d Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-08 18:13:29 +08:00
Dillon Ngo bee3dcdfff Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-08 17:57:14 +08:00
Dillon Ngo b5122e97c1 Laravel Vapor - Fix another 504 issue when searching for container 2024-10-08 17:57:03 +08:00
Dillon Ngo 940341a2be Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-08 17:33:31 +08:00
Dillon Ngo a956d4ac4c Laravel Vapor - Fix another 504 issue when searching for container 2024-10-08 17:33:10 +08:00
Dillon Ngo 4892555211 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-08 17:06:03 +08:00
Dillon Ngo 68ad42b0cf Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-08 16:52:11 +08:00
Dillon Ngo a95f62b59a Laravel Vapor - Fix another 504 issue when searching for container 2024-10-08 16:52:03 +08:00
Dillon Ngo 1c6a3ca9ef Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-08 16:08:04 +08:00
Dillon Ngo 821291f16f Laravel Vapor - Fix another 504 issue when searching for container 2024-10-08 16:06:24 +08:00
Dillon Ngo 0a7d93b034 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-08 00:23:33 +08:00
Dillon Ngo 2a9478f89a Laravel Vapor - Emergency fix cannot reset password 2024-10-08 00:22:39 +08:00
Dillon Ngo 201875888b Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-07 21:35:07 +08:00
Dillon Ngo 58a4dabf09 Laravel Vapor - Commented out logs 2024-10-07 21:34:54 +08:00
Dillon Ngo d04eb1e95d Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-07 21:32:57 +08:00
Dillon Ngo 033b6a4c26 Laravel Vapor - Debug 2024-10-07 21:32:50 +08:00
Dillon Ngo 9dc7c288d2 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-07 20:58:37 +08:00
Dillon Ngo 712d122d4a Laravel Vapor - Debug 2024-10-07 20:57:59 +08:00
Dillon Ngo e5498cffb8 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-05 14:46:04 +08:00
Dillon Ngo fed6455fbf Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-05 14:33:05 +08:00
Dillon Ngo fc1f9f9f7e Laravel Vapor - New UI for admin to download reports 2024-10-05 14:32:54 +08:00
Dillon Ngo 077e719e69 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-05 14:15:45 +08:00
Dillon Ngo cc13241dd2 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-05 14:15:20 +08:00
Dillon Ngo 1f1fb7d79a Laravel Vapor - Fix a problem with deployment 2024-10-05 14:14:59 +08:00
Dillon Ngo d0e2e17169 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-05 13:50:37 +08:00
Dillon Ngo 68be6be1b8 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-05 13:34:51 +08:00
Dillon Ngo bd8e30493f Laravel Vapor - New UI for admin to download reports 2024-10-05 13:34:21 +08:00
Dillon Ngo de51e231af Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 02:56:55 +08:00
Dillon Ngo ff790885ab Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-04 02:56:36 +08:00
Dillon Ngo 7fc4324645 Laravel Vapor - New UI for admin to download reports 2024-10-04 02:56:07 +08:00
Dillon Ngo 69a898f7ee Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-04 02:38:22 +08:00
Dillon Ngo 0152b918a7 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 02:37:59 +08:00
Dillon Ngo abad3cd591 Laravel Vapor - New UI for admin to download reports 2024-10-04 02:37:46 +08:00
Dillon Ngo e5e2cb40ae Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 02:13:54 +08:00
Dillon Ngo 0e6d1b7633 Laravel Vapor - New UI for admin to download reports 2024-10-04 02:13:41 +08:00
Dillon Ngo 70fe14bd39 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 02:03:16 +08:00
Dillon Ngo 91576d9f7b Laravel Vapor - New UI for admin to download reports 2024-10-04 02:03:06 +08:00
Dillon Ngo 1606bc7426 Laravel Vapor - New UI for admin to download reports 2024-10-04 01:55:26 +08:00
Dillon Ngo 398947f6a0 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 01:50:11 +08:00
Dillon Ngo 1f8351486f Laravel Vapor - New UI for admin to download reports 2024-10-04 01:50:00 +08:00
Dillon Ngo 9585ea0018 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 01:29:34 +08:00
Dillon Ngo 9299c11131 Laravel Vapor - New UI for admin to download reports 2024-10-04 01:29:26 +08:00
Dillon Ngo d93d243585 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 01:15:19 +08:00
Dillon Ngo 91b00baa07 Laravel Vapor - New UI for admin to download reports 2024-10-04 01:15:01 +08:00
Dillon Ngo 8ec1c1b9de Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 00:41:34 +08:00
Dillon Ngo 7d3e0c486f Laravel Vapor - New UI for admin to download reports 2024-10-04 00:41:10 +08:00
Dillon Ngo aab53e230e Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-04 00:21:22 +08:00
Dillon Ngo 87cf25a2f3 Laravel Vapor - New UI for admin to download reports 2024-10-04 00:20:54 +08:00
Dillon Ngo c3c9421e19 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-03 23:37:02 +08:00
Dillon Ngo e21804ceca Laravel Vapor - Fix a problem with deployment 2024-10-03 23:36:51 +08:00
Dillon Ngo d4ba2a2c43 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-03 23:29:16 +08:00
Dillon Ngo 26bde9d950 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-03 22:42:32 +08:00
Dillon Ngo 38cdd37aea Laravel Vapor - New UI for admin to download reports 2024-10-03 22:41:35 +08:00
Dillon Ngo 5f6670ad91 Laravel Vapor - Fix a problem with deployment 2024-10-03 16:55:32 +08:00
Dillon Ngo cd6b9d6e4a Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-03 16:38:48 +08:00
Dillon Ngo 5799da5ae1 Laravel Vapor - Fix a problem with deployment 2024-10-03 16:37:08 +08:00
Dillon Ngo 237483cda8 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-03 13:43:29 +08:00
Dillon Ngo cd05d1bed3 Laravel Vapor - Fix a problem with deployment 2024-10-03 13:43:05 +08:00
Dillon Ngo ea680ece58 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-03 13:10:01 +08:00
Dillon Ngo 5753c63248 Laravel Vapor - Fix a problem with deployment 2024-10-03 13:09:51 +08:00
Dillon Ngo 9f8d2a637f Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-03 13:01:27 +08:00
Dillon Ngo c01d5c993c Laravel Vapor - Fix a problem with deployment 2024-10-03 13:01:17 +08:00
Dillon Ngo 83caa2b677 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-03 12:54:52 +08:00
Dillon Ngo 2c24c469f5 Laravel Vapor - Fix a problem with deployment 2024-10-03 12:54:20 +08:00
Dillon Ngo 3c2e94e64c Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-03 12:24:18 +08:00
Dillon Ngo a18377df9f Laravel Vapor - Fix a problem with deployment 2024-10-03 12:24:01 +08:00
Dillon Ngo a99d19721c Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-03 12:02:44 +08:00
Dillon Ngo 2f5e9d5c05 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-03 11:08:03 +08:00
Dillon Ngo 753141ea81 Laravel Vapor - Fix a prolem when storage invoice is regenerated, storage invoices from other transactions of the same order gets deleted 2024-10-03 11:04:29 +08:00
Dillon Ngo 8a421e845e Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-02 10:03:53 +08:00
Dillon Ngo b26ed17008 Laraval Vapor - Look into Shipping Invoice kept regenerating even after user paid 2024-10-02 10:03:28 +08:00
Dillon Ngo 387f05fbf8 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-01 17:00:21 +08:00
Dillon Ngo 24fb998e4d Laravel Vapor - Making sure code meant for laravel vapor can run locally without any problem with default settings 2024-10-01 16:47:06 +08:00
Dillon Ngo e4d28ef557 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-01 16:42:33 +08:00
Dillon Ngo 8459a784d0 Laravel Vapor - Making sure code meant for laravel vapor can run locally without any problem with default settings 2024-10-01 16:41:14 +08:00
Dillon Ngo c71827662c Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-10-01 16:13:39 +08:00
Dillon Ngo 22f9f59828 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-10-01 15:54:49 +08:00
Dillon Ngo 3d98495f89 Laravel Vapor - Get rid of an error from logs: Trying to get property 'owner' of non-object 2024-10-01 15:54:32 +08:00
Dillon Ngo a01741397a Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-30 20:02:23 +08:00
Dillon Ngo cb8a61947a Laravel Vapor - Disable vue polling component 2024-09-30 20:02:03 +08:00
Dillon Ngo 9b22be40b9 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-30 18:34:50 +08:00
Dillon Ngo b73a6b25fd Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-30 18:34:32 +08:00
Dillon Ngo c3b6247330 Laravel Vapor - Reinstate a UI for ssearching customer by eamil address that was not working for a long time 2024-09-30 18:34:23 +08:00
Dillon Ngo ec3c92f64d Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-30 18:21:47 +08:00
Dillon Ngo 0bb65a4061 Laravel Vapor - Reinstate a UI for ssearching customer by eamil address that was not working for a long time 2024-09-30 18:19:53 +08:00
Dillon Ngo cf9352487f Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-28 11:28:07 +08:00
Dillon Ngo 9739572816 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-28 11:09:30 +08:00
Dillon Ngo 726f17aefe Laravel Vapor - Code Refactoring to use one component only and to make download work at local machine 2024-09-28 11:09:22 +08:00
Dillon Ngo 50aa85c490 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-28 10:53:16 +08:00
Dillon Ngo 42de5881ee Laravel Vapor - Code Refactoring to use one component only and to make download work at local machine 2024-09-28 10:52:40 +08:00
Dillon Ngo 9fba6c9580 Laravel Vapor - Code Refactoring to use one component only and to make download work at local machine 2024-09-28 10:34:49 +08:00
Dillon Ngo 922f58fc11 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-28 10:29:26 +08:00
Dillon Ngo 0c1d88a2df Laravel Vapor - Code Refactoring to use one component only and to make download work at local machine 2024-09-28 10:28:50 +08:00
Dillon Ngo dbfeaf2783 Laravel Vapor - Fix a problem with storage invoice does not show in pages other than page 1 in admin payment and billing page 2024-09-28 08:02:38 +08:00
Dillon Ngo b06dc438f5 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-28 08:01:40 +08:00
Dillon Ngo d3edac4e25 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-28 07:34:03 +08:00
Dillon Ngo ccde9763f7 Laravel Vapor - Fix a problem with storage invoice does not show in pages other than page 1 in admin payment and billing page 2024-09-28 07:33:53 +08:00
Dillon Ngo 1d9c1ff808 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-28 07:17:44 +08:00
Dillon Ngo 19be4b2a05 Laravel Vapor - Fix a problem with storage invoice does not show in pages other than page 1 in admin payment and billing page 2024-09-28 07:17:31 +08:00
Dillon Ngo f4cdc301d7 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-26 15:50:33 +08:00
Dillon Ngo 61eea307c6 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-26 14:57:40 +08:00
Dillon Ngo 46d6e09fff Laravel Vapor - Fix a problem reported by Yien about missing ETD, ETA 2024-09-26 14:57:20 +08:00
Dillon Ngo 1f8c96e80f Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-26 14:05:28 +08:00
Dillon Ngo 7d79abd023 Laravel Vapor - Code Refactoring 2024-09-26 14:05:15 +08:00
Dillon Ngo 4a4c6d6e99 Laravel Vapor - Code Refactoring 2024-09-26 13:52:13 +08:00
Dillon Ngo 03335e68f7 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-26 13:48:43 +08:00
Dillon Ngo bdadd18a17 Laravel Vapor - Code Refactoring 2024-09-26 13:48:28 +08:00
Dillon Ngo 03d5c29ae1 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-26 11:10:15 +08:00
Dillon Ngo e7051d637d Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-26 10:46:36 +08:00
Dillon Ngo 99db37a67c Laravel Vapor - Fix a problem (kills all other running http request) when open a new tab to trigger download 2024-09-26 10:46:26 +08:00
Dillon Ngo c7314770a1 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-26 10:26:31 +08:00
Dillon Ngo a2f110b491 Laravel Vapor, Laravel Vapor - New download button to download on-hold-packing-list 2024-09-26 10:26:17 +08:00
Dillon Ngo 997c14d00e Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-26 09:29:23 +08:00
Dillon Ngo aacd953a82 Laravel Vapor - Update YD API schedule task frequency 2024-09-26 09:29:13 +08:00
Dillon Ngo 08aa383b91 Laravel Vapor - Housekeeping 2024-09-26 06:58:44 +08:00
Dillon Ngo 1dc995a690 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-26 06:54:30 +08:00
Dillon Ngo d20cc1bc7b Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-26 06:54:04 +08:00
Dillon Ngo c4bbff232d Laravel Vapor - Housekeeping 2024-09-26 06:53:50 +08:00
Dillon Ngo b0a96441c4 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-26 06:23:15 +08:00
Dillon Ngo 3117ea59e6 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-26 06:09:55 +08:00
Dillon Ngo 3e888c7c08 Laravel Vapor - Fix missing packages summary info on customer page 2024-09-26 06:09:29 +08:00
Dillon Ngo a898bed9f2 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-26 05:59:20 +08:00
Dillon Ngo dc484becc8 Laravel Vapor - Fix missing packages summary info on customer page 2024-09-26 05:59:12 +08:00
Dillon Ngo 9a7847059f Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-25 20:50:43 +08:00
Dillon Ngo eda8b7eeba Laravel Vapor - Fix missing packages summary info on customer page 2024-09-25 20:50:25 +08:00
Dillon Ngo 003e25b49a Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-25 20:17:32 +08:00
Dillon Ngo 71313491fe Laravel Vapor - Fix missing packages summary info on customer page 2024-09-25 20:17:24 +08:00
Dillon Ngo 5aabd62798 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-25 20:02:32 +08:00
Dillon Ngo 0a42bc525a Laravel Vapor - Fix missing packages summary info on customer page 2024-09-25 20:02:20 +08:00
Dillon Ngo be23e725af Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-25 19:20:25 +08:00
Dillon Ngo a6860de6f7 Laravel Vapor - Fix missing packages summary info on customer page 2024-09-25 19:20:09 +08:00
Dillon Ngo 01051dbdd4 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-25 16:49:34 +08:00
Dillon Ngo f0813b03c8 Laravel Vapor - code refactoring for Issue 13 2024-09-25 16:49:15 +08:00
Dillon Ngo ba86c2e903 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-25 15:09:29 +08:00
Dillon Ngo 3e7a71e50e Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-25 14:33:31 +08:00
Dillon Ngo eb1d5423d8 Laravel Vapor - Convert /export/on-hold-packing-list into protected route like API + Disable direct dispatch of UpdatePerfexCRMPrelude job at PackingListToPerfexCRMProcessor 2024-09-25 14:33:12 +08:00
Dillon Ngo da2ff03c94 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-25 10:18:03 +08:00
Dillon Ngo 8e4c537a08 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-25 10:16:30 +08:00
Dillon Ngo 259eca063f Laravel Vapor - New download button to download on-hold-packing-list 2024-09-25 10:16:19 +08:00
Dillon Ngo ae0c0d9acc Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-25 09:57:31 +08:00
Dillon Ngo a9f63ce137 Laravel Vapor - code refactoring for Issue 13 2024-09-25 09:57:08 +08:00
Dillon Ngo b83f62b703 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-25 09:28:36 +08:00
Dillon Ngo eeefb0cf14 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-25 09:16:07 +08:00
Dillon Ngo 428bf85043 Laravel Vapor - New download button to download on-hold-packing-list 2024-09-25 09:15:13 +08:00
Dillon Ngo 73d97f296a Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-24 18:13:17 +08:00
Dillon Ngo ec8e2de45e Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-24 18:12:53 +08:00
Dillon Ngo 15f463c556 Laravel Vapor - Solve a missing information with received parcels on order page reported by Yien, rewrite front end component retrieve data 2024-09-24 18:12:43 +08:00
Dillon Ngo 14e3c4fac0 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-24 17:44:08 +08:00
Dillon Ngo f2833be359 Laravel Vapor - Solve a missing information with received parcels on order page reported by Yien, rewrite front end component retrieve data 2024-09-24 17:43:59 +08:00
Dillon Ngo 927f0f5980 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-24 17:21:09 +08:00
Dillon Ngo b01dd5cae4 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-24 17:04:51 +08:00
Dillon Ngo 430fe0456b Laravel Vapor - Solve a missing information with received parcels on order page reported by Yien, rewrite front end component retrieve data 2024-09-24 17:04:33 +08:00
Dillon Ngo 5a07ec7bba Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-23 15:33:35 +08:00
Dillon Ngo 9cb7d992ab Laravel Vapor - Fix an error: Trying to get property 'owner' of non-objec 2024-09-23 15:33:18 +08:00
Dillon Ngo e14aa4f9eb Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-23 14:11:57 +08:00
Dillon Ngo a7565beb0b Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-23 14:01:12 +08:00
Dillon Ngo 040588c8ba Laravel Vapor - Fix 504 error 2024-09-23 14:01:01 +08:00
Dillon Ngo 41c03f8fb0 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-23 13:44:08 +08:00
Dillon Ngo 02c0cc2d63 Laravel Vapor - Fix 504 error 2024-09-23 13:43:57 +08:00
Dillon Ngo 12117e77a4 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-23 13:30:11 +08:00
Dillon Ngo c75866f958 Laravel Vapor - Fix 504 error 2024-09-23 13:29:51 +08:00
Dillon Ngo 9288f1e9f2 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-22 03:12:35 +08:00
Dillon Ngo eb68f1c394 Laravel Vapor - look into price increase for storage invoice 2024-09-22 02:55:49 +08:00
Dillon Ngo 43efff9c7a Laravel Vapor - Emergency fix on development environment 2024-09-22 02:07:00 +08:00
Dillon Ngo 9fec606183 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-22 01:28:18 +08:00
Dillon Ngo 5790f5a7a3 Laravel Vapor - look into price increase for storage invoice 2024-09-22 01:28:04 +08:00
Dillon Ngo 2ed889d7e8 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-21 23:56:37 +08:00
Dillon Ngo 34b692fb4d Laravel Vapor - look into price increase for storage invoice 2024-09-21 23:48:50 +08:00
Dillon Ngo e979c52122 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-21 23:28:52 +08:00
Dillon Ngo ee3de039fb Laravel Vapor - look into price increase for storage invoice 2024-09-21 23:28:42 +08:00
Dillon Ngo dec216058b Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-21 23:02:45 +08:00
Dillon Ngo f293a975ed Laravel Vapor - look into price increase for storage invoice 2024-09-21 23:02:24 +08:00
Dillon Ngo babebc8a07 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-21 22:20:34 +08:00
Dillon Ngo d4f02cdafe Laravel Vapor - Code refactoring 2024-09-21 22:20:03 +08:00
Dillon Ngo e000468f6d Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-21 13:15:31 +08:00
Dillon Ngo 5d8d57e399 Laravel Vapor - Code refactoring 2024-09-21 13:15:05 +08:00
Dillon Ngo 608c9284dd Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-20 08:40:42 +08:00
Dillon Ngo 75943f1a36 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-20 08:22:58 +08:00
Dillon Ngo 3a97b5e26d Laravel Vapor - Debugging 504 error 2024-09-20 08:22:47 +08:00
Dillon Ngo d8acdb0d5c Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-20 07:26:58 +08:00
Dillon Ngo cca188eefd Laravel Vapor - Debugging 504 error 2024-09-20 07:26:48 +08:00
Dillon Ngo eadf4f96b0 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-20 06:56:57 +08:00
Dillon Ngo 5401b38638 Laravel Vapor - Debugging 504 error 2024-09-20 06:56:35 +08:00
Dillon Ngo 5bf7acad6b Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-20 01:46:49 +08:00
Dillon Ngo d61d58a51a Laravel Vapor - New table and command to handle delayed jobs 2024-09-20 01:46:38 +08:00
Dillon Ngo 8b7d2041ed Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-19 12:49:58 +08:00
Dillon Ngo c257df455a Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 12:37:26 +08:00
Dillon Ngo 4d7e9dcd66 Laravel Vapor - Fix a null error 2024-09-19 12:37:07 +08:00
Dillon Ngo 6647ad6ffc Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-19 10:45:06 +08:00
Dillon Ngo 8795e116f0 Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 10:44:56 +08:00
Dillon Ngo 0927bf4f00 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-19 10:29:55 +08:00
Dillon Ngo c8ca6d7f6f Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 10:29:43 +08:00
Dillon Ngo 2a25eb18ae Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-19 10:16:03 +08:00
Dillon Ngo ea569b437b Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 10:15:31 +08:00
Dillon Ngo 0386c224b1 Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 10:13:52 +08:00
Dillon Ngo a08582cf5f Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 09:34:41 +08:00
Dillon Ngo 457952cd44 Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 09:34:28 +08:00
Dillon Ngo e376f42786 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 08:54:19 +08:00
Dillon Ngo c19c44bfbe Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 08:54:11 +08:00
Dillon Ngo 15df80b73d Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 08:39:30 +08:00
Dillon Ngo fed40d8384 Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 08:38:13 +08:00
Dillon Ngo dc11b05e38 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 08:18:52 +08:00
Dillon Ngo 49b5d142d9 Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 08:18:41 +08:00
Dillon Ngo b7f047b41c Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 08:06:37 +08:00
Dillon Ngo cd36f5b435 Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 08:06:22 +08:00
Dillon Ngo 7170719203 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-19 07:42:18 +08:00
Dillon Ngo f6bc88f553 Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 07:42:10 +08:00
Dillon Ngo 10c13446df Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-19 07:25:57 +08:00
Dillon Ngo e18ff9215a Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 07:25:32 +08:00
Dillon Ngo ecea60f13d Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 06:38:38 +08:00
Dillon Ngo 4456ddcb6b Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 06:38:22 +08:00
Dillon Ngo c0fc26bd0a Merge branch 'dillon/34.7-jenkins-vapor' into vapor/production 2024-09-19 05:10:36 +08:00
Dillon Ngo a1140d6722 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 04:55:14 +08:00
Dillon Ngo 639b0ffe4a Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 04:55:06 +08:00
Dillon Ngo d0c39b7221 Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development 2024-09-19 04:49:45 +08:00
Dillon Ngo c0ff60c5e7 Laravel Vapor - New table and command to handle delayed jobs 2024-09-19 04:49:31 +08:00
Dillon Ngo 72e7eefec8 Merge into development from dillon/34.6-jenkins-vapor 2024-09-15 22:41:57 +08:00
Dillon Ngo 2b6727cadc Laravel Vapor - Show stack trace when enabled through environment variables 2024-09-15 22:40:28 +08:00
Dillon Ngo f46597f27c Merge branch 'dillon/34.6-vapor-development' into vapor/development 2024-09-15 22:23:18 +08:00
Dillon Ngo b6c1865c66 Laravel Vapor - testing 2024-09-15 22:23:03 +08:00
Dillon Ngo dfd1ffc185 Merge branch 'dillon/34.6-vapor-development' into vapor/development 2024-09-15 22:01:09 +08:00
Dillon Ngo 5e6526a643 Laravel Vapor - testing 2024-09-15 22:00:47 +08:00
Dillon Ngo 4adc3a65be Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-15 17:27:31 +08:00
Dillon Ngo 53b8764a61 Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-15 17:27:23 +08:00
Dillon Ngo 2d3d0f3a58 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-15 16:47:45 +08:00
Dillon Ngo a2e65a2ba5 Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-15 16:47:30 +08:00
Dillon Ngo 01db290102 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 20:57:18 +08:00
Dillon Ngo 18e31994c0 Laravel Vapor - Deployment day to production, solve an error captured in logs 2024-09-14 20:57:05 +08:00
Dillon Ngo 678fb665c8 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-14 13:34:27 +08:00
Dillon Ngo 0bf1ffbd7a Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 13:30:47 +08:00
Dillon Ngo 5fe17db78a Laravel Vapor - Deployment day to production, solve an error in fixing billplz callback failed 2024-09-14 13:30:38 +08:00
Dillon Ngo 252c9c915e Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 13:12:45 +08:00
Dillon Ngo 2a6858d243 Laravel Vapor - Deployment day to production, solve an error in YD API query + error in fixing billplz callback failed 2024-09-14 13:12:37 +08:00
Dillon Ngo 00f6e95bae Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 12:34:07 +08:00
Dillon Ngo ab48489b6e Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 12:33:57 +08:00
Dillon Ngo 146aab2978 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 12:13:59 +08:00
Dillon Ngo 2b529fa986 Laravel Vapor - Deployment day to production, debug billplz failed callback fix 2024-09-14 12:13:47 +08:00
Dillon Ngo 2530042c60 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-14 11:53:07 +08:00
Dillon Ngo cc9c4600f2 Laravel Vapor - Deployment day to production, solve 504 Endpoint request timed out error 2024-09-14 11:52:52 +08:00
Dillon Ngo cdc6ee1839 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 09:43:39 +08:00
Dillon Ngo 537a6b0b33 Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 09:43:22 +08:00
Dillon Ngo 62fbbbae1e Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-14 08:38:10 +08:00
Dillon Ngo f7a22c2977 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 08:08:10 +08:00
Dillon Ngo 33341feb0e Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 08:08:02 +08:00
Dillon Ngo bdae6643c9 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 07:55:40 +08:00
Dillon Ngo 91fa3e08cd Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 07:55:27 +08:00
Dillon Ngo 5d6c86d651 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 07:37:54 +08:00
Dillon Ngo 44e124dfa3 Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 07:37:47 +08:00
Dillon Ngo 2c4a2ea942 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 06:58:31 +08:00
Dillon Ngo a6d032050c Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 06:58:23 +08:00
Dillon Ngo ef7cc68121 Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 06:58:02 +08:00
Dillon Ngo 57ec8c2b36 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 06:32:52 +08:00
Dillon Ngo 92d5ae0c76 Laravel Vapor - Deployment day to production, enable the rest of schedule tasks for production via commands 2024-09-14 06:32:19 +08:00
Dillon Ngo 1d6cd2a104 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 06:08:47 +08:00
Dillon Ngo 9516721ff5 Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 06:08:37 +08:00
Dillon Ngo 7f8597a79e Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 05:45:38 +08:00
Dillon Ngo 9782ac6fda Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 05:45:29 +08:00
Dillon Ngo d259df9796 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 05:17:11 +08:00
Dillon Ngo b117730619 Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 05:17:01 +08:00
Dillon Ngo 2f8502c92e Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 04:53:01 +08:00
Dillon Ngo e933470c17 Laravel Vapor - Deployment day to production, solve an error in YD API query 2024-09-14 04:52:46 +08:00
Dillon Ngo cc5fc19f24 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 04:09:14 +08:00
Dillon Ngo d93ee2462c Laravel Vapor - Deployment day to production, enable YD API query for a full run 2024-09-14 04:04:21 +08:00
Dillon Ngo 5279cc11c4 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 03:36:30 +08:00
Dillon Ngo a8cac0a121 Laravel Vapor - Deployment day to production, enable YD API query for a full run 2024-09-14 03:36:15 +08:00
Dillon Ngo 53d3afff72 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 03:17:42 +08:00
Dillon Ngo 78b36dab9d Laravel Vapor - Deployment day to production, Fix some undetected merge conflict 2024-09-14 03:17:26 +08:00
Dillon Ngo 40e6eee6d9 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 02:53:22 +08:00
Dillon Ngo 28dd444c0a Laravel Vapor - Deployment day to production, Update production domain 2 2024-09-14 02:53:05 +08:00
Dillon Ngo b2dea50fc0 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 01:53:31 +08:00
Dillon Ngo 0f04cec170 Laravel Vapor - Deployment day to production, Update production domain 1 2024-09-14 01:53:14 +08:00
Dillon Ngo 58efaddf7d Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-14 01:29:52 +08:00
Dillon Ngo a85df2aad9 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-14 01:29:29 +08:00
Dillon Ngo 9882e5e75d Laravel Vapor - Deployment day to production, Update custom log channel retention period for production only 2024-09-14 01:23:17 +08:00
Dillon Ngo 7ec229f83b Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-14 01:08:15 +08:00
Dillon Ngo 11a5757303 Laravel Vapor - Deployment day to production YD API Testing 2024-09-14 01:07:50 +08:00
Dillon Ngo 3c6d1ec03b Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-12 22:48:52 +08:00
Dillon Ngo 512e5b1aea Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-12 22:36:57 +08:00
Dillon Ngo 2e871cd42f Laravel Vapor - New index for packages table 2024-09-12 22:36:03 +08:00
Dillon Ngo 643a903351 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-12 00:45:54 +08:00
Dillon Ngo b01159e47a Laravel Vapor - Update vapor.yml for production environment 2024-09-12 00:45:42 +08:00
Dillon Ngo 37ad2a1fc9 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-12 00:20:54 +08:00
Dillon Ngo b8474a2aff Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-12 00:20:18 +08:00
Dillon Ngo cf1e1b7cd4 Laravel Vapor - Debugging 504 error 2024-09-12 00:20:03 +08:00
Dillon Ngo 7234ebe67a Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-12 00:07:01 +08:00
Dillon Ngo 305a0707ce Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-11 23:55:01 +08:00
Dillon Ngo 7658b8f72f Laravel Vapor - Debugging 504 error 2024-09-11 23:54:52 +08:00
Dillon Ngo 6d9dc541f3 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-11 23:33:07 +08:00
Dillon Ngo 2cce3597f6 Laravel Vapor - Debugging 504 error 2024-09-11 23:32:53 +08:00
Dillon Ngo 83f08a12b6 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-11 23:12:33 +08:00
Dillon Ngo 8027bffdd8 Laravel Vapor - Debugging 504 error 2024-09-11 23:12:14 +08:00
Dillon Ngo 78ea976c72 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-11 06:56:38 +08:00
Dillon Ngo a69ab986f3 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-11 06:52:06 +08:00
Dillon Ngo 3d0bdd70d5 Laravel Vapor - New Index for order table 2024-09-11 06:51:46 +08:00
Dillon Ngo ae03b75699 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/production 2024-09-11 05:20:06 +08:00
Dillon Ngo bd020ca141 Laravel Vapor - to resolve some error spefific to development environment caught on browser developer console 2024-09-11 05:16:05 +08:00
Dillon Ngo fac7941175 Merge branch 'development' into vapor/development 2024-09-11 05:05:33 +08:00
Dillon Ngo 34f14f3f2f Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-11 04:23:38 +08:00
Dillon Ngo 1dab162293 Laravel Vapor - new component to trigger and open download in new browser tab 2024-09-11 04:23:24 +08:00
Dillon Ngo 62df132321 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-09 21:36:40 +08:00
Dillon Ngo 8df0b60c6a Laravel Vapor - new component to trigger and open download in new browser tab 2024-09-09 21:36:31 +08:00
Dillon Ngo d5236e578a Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-09 21:25:24 +08:00
Dillon Ngo db457fc63e Laravel Vapor - new component to trigger and open download in new browser tab 2024-09-09 21:24:53 +08:00
Dillon Ngo 5aef1af270 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-09 18:06:22 +08:00
Dillon Ngo 9557496794 Laravel Vapor - Solve a probem with url encoding related to group payment 2024-09-09 18:06:04 +08:00
Dillon Ngo ebaf7a65b5 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-08 02:10:54 +08:00
Dillon Ngo 638c4b233f Laravel Vapor - Update AWS RDS database 2024-09-08 02:10:26 +08:00
Dillon Ngo ed14db741d Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-07 17:30:07 +08:00
Dillon Ngo 108481f85a Laravel Vapor - Change AWS RDS database 2024-09-07 17:29:42 +08:00
Dillon Ngo ba171c874e Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-04 14:09:23 +08:00
Dillon Ngo 2b068d16cf Testing of new domain cief-malaysia.com in addition to the current existing izyim.com 2024-09-04 14:09:01 +08:00
Dillon Ngo ed7841c99f Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-04 13:22:15 +08:00
Dillon Ngo 573a60c790 Laravel Vapor - Code refactor for YD API cron job 2024-09-04 13:21:57 +08:00
Dillon Ngo 8e72f60022 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-04 13:02:28 +08:00
Dillon Ngo 9f7a40e0f8 Laravel Vapor - fill in latest changes of code from master branch 2024-09-04 13:01:52 +08:00
Dillon Ngo 25f092887e Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-09-03 17:34:52 +08:00
Dillon Ngo 39153d6328 Merge branch 'dillon/34.6-jenkins-vapor' into vapor/development 2024-09-03 17:29:08 +08:00
Dillon Ngo 1073fbfa4d Laravel Vapor - Sync V2 Commands with updates from latest changes in V1 Commands 2024-09-03 17:27:53 +08:00
Dillon Ngo 9c499b3874 Merge branch 'master' into dillon/34.6-jenkins-vapor 2024-09-03 16:06:33 +08:00
edmondlang eacf428c00 Merge branch 'cief-coins' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-09-01 23:16:03 +08:00
edmondlang 4faf3064d1 cief coins 2024-09-01 23:15:42 +08:00
edmondlang 5b90c592e3 Merge branch 'cief-coins' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-09-01 22:01:46 +08:00
edmondlang 7b89a8bff8 cief coins 2024-09-01 22:01:25 +08:00
edmondlang cc246046b5 cief coins 2024-09-01 21:55:37 +08:00
edmondlang f03b60d93a cief coins 2024-09-01 21:54:47 +08:00
edmondlang 9bc0d2890f Merge branch 'cief-coins' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-09-01 21:20:00 +08:00
edmondlang f3d502ea9b cief coins 2024-09-01 21:19:41 +08:00
edmondlang e74bf4fc60 Merge branch 'cief-coins' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-09-01 21:06:07 +08:00
edmondlang 8f626230eb cief coins 2024-09-01 21:02:46 +08:00
edmondlang bb273b6334 Merge branch 'cief-coins' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-09-01 20:50:57 +08:00
edmondlang d7ef783443 cief coins 2024-09-01 20:49:46 +08:00
edmondlang 9f4c657122 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-09-01 19:59:09 +08:00
edmondlang 4c5483cb7c Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-09-01 19:49:03 +08:00
Dillon Ngo f025416924 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-29 15:14:58 +08:00
Dillon Ngo 774f4f8d63 Laravel Vapor - Code refactor for YD API cron job 2024-08-29 15:14:21 +08:00
Dillon Ngo 79ff6dddae Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-28 20:35:37 +08:00
Dillon Ngo cfb5b32419 Laravel Vapor - Code refactor for YD API cron job - testing 2024-08-28 20:35:24 +08:00
Dillon Ngo ca662aa3b5 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-28 20:21:18 +08:00
Dillon Ngo 65d3af39ea Laravel Vapor - Code refactor for YD API cron job - testing 2024-08-28 20:20:59 +08:00
Dillon Ngo 9c43bf9e5d Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-28 20:00:59 +08:00
Dillon Ngo 0c0d5a1707 Laravel Vapor - Code refactor for YD API cron job - testing 2024-08-28 20:00:48 +08:00
Dillon Ngo 3f3c1ba780 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-28 19:35:12 +08:00
Dillon Ngo 2023df9442 Laravel Vapor - Code refactor for YD API cron job - testing 2024-08-28 19:34:49 +08:00
Dillon Ngo 909f7bb7cd Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-28 19:02:31 +08:00
Dillon Ngo c9935bfac7 Laravel Vapor - Code refactor for YD API cron job - testing 2024-08-28 19:02:08 +08:00
Dillon Ngo 29619c3c71 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-28 18:27:23 +08:00
Dillon Ngo 389fae377b Laravel Vapor - Look into logs in different channel in cloudwatch 2024-08-28 18:27:02 +08:00
Dillon Ngo ed32a6b440 Laravel Vapor - Update Log::channel for development environment only 2024-08-28 18:14:21 +08:00
Dillon Ngo 40746b2a12 Laravel Vapor - Update Log::channel for development environment only 2024-08-28 18:14:12 +08:00
Dillon Ngo 9189ea1d80 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-28 18:01:29 +08:00
Dillon Ngo 64bccf7bad Get latest from V1 of YD API processor from master branch 2024-08-28 17:45:03 +08:00
Dillon Ngo 480b60d875 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-08-23 14:13:05 +08:00
Dillon Ngo 0e816337fc escape single quote in the gitCommitMessage that cause problem in deployment through Jenkins 2024-08-23 14:12:47 +08:00
Dillon Ngo b8b48218ba Merge branch 'development' into vapor/development 2024-08-23 13:50:38 +08:00
edmondlang ec3c596352 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-08-04 00:46:02 +08:00
edmondlang 4fc5a4a2d9 Merge branch 'payment-export-decimal-point' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-08-02 10:48:43 +08:00
edmondlang cfb6270ae7 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-19 00:36:18 +08:00
edmondlang 09402a9c70 Merge branches 'development' and 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-19 00:29:56 +08:00
edmondlang fec5f2f6dc Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-19 00:12:52 +08:00
edmondlang b8686ff910 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	routes/apipub.php
2024-07-18 23:18:10 +08:00
edmondlang a0a2c335ba Merge branch 'address-extra-fields' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-18 00:14:51 +08:00
edmondlang bcfeb49275 update address extra fields 2024-07-18 00:14:19 +08:00
edmondlang b4c6e721fd Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into address-extra-fields 2024-07-17 23:29:51 +08:00
edmondlang 514d3da73c Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-17 18:14:10 +08:00
edmondlang 82a84157b6 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-17 18:11:58 +08:00
edmondlang 58a64784db Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-17 17:50:46 +08:00
edmondlang c5a71abf57 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php
2024-07-06 11:29:34 +08:00
edmondlang ae60f9ae49 Merge branch 'address-extra-fields' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-05 01:18:59 +08:00
edmondlang a953f78771 update address extra fields 2024-07-05 01:18:36 +08:00
edmondlang 4a2c0db044 Merge branch 'address-extra-fields' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Addresses/ControllersLogic/UpdateAddressLogic.php
#	package.json
2024-07-05 00:28:12 +08:00
edmondlang cf3e7f04e4 Merge branches 'master' and 'address-extra-fields' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into address-extra-fields 2024-07-05 00:26:12 +08:00
edmondlang be0cd16285 update address extra fields 2024-07-05 00:25:57 +08:00
edmondlang 50f6b664b9 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-03 13:24:37 +08:00
edmondlang 4769e0768b test FetchPackingListsFromYdPortalProcessor 2024-07-02 19:47:51 +08:00
edmondlang ce4e8b174f Merge branch 'fix-missing-packinglist' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-07-02 13:02:34 +08:00
Dillon Ngo 08a689270f Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-07-01 16:43:04 +08:00
Dillon Ngo 195e899751 Laravel Vapor - Code refactor for YD API cron job 2024-07-01 16:42:24 +08:00
Dillon Ngo 24e2cc3687 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-07-01 14:41:41 +08:00
Dillon Ngo 6710a2caf2 Laravel Vapor - Code refactor for YD API cron job 2024-07-01 14:41:27 +08:00
Dillon Ngo c5e5773fa3 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-07-01 14:21:59 +08:00
Dillon Ngo 5491047fe1 Laravel Vapor - Code refactor for YD API cron job 2024-07-01 14:21:23 +08:00
Dillon Ngo 8fc4481863 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-07-01 13:59:22 +08:00
Dillon Ngo b2e4e67085 Laravel Vapor - Code refactor for YD API cron job 2024-07-01 13:59:01 +08:00
Dillon Ngo 2a12403f09 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-07-01 13:15:42 +08:00
Dillon Ngo 49989fd154 Laravel Vapor - Renamed a file to fit its purpose 2024-07-01 13:14:41 +08:00
Dillon Ngo 9acc4b19fc Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-07-01 12:31:54 +08:00
Dillon Ngo 151f9dc7bc Laravel Vapor - Convert a section component into polling component because of request timed out (error 504), debugging 2024-07-01 12:31:18 +08:00
Dillon Ngo 70fd8346c7 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-07-01 11:25:14 +08:00
Dillon Ngo d41889f84a Laravel Vapor - Convert a section component into polling component because of request timed out (error 504), debugging 2024-07-01 11:24:54 +08:00
Dillon Ngo 826e6125a5 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-07-01 11:00:53 +08:00
Dillon Ngo 6a20acbb40 Laravel Vapor - New indexes through migration 2024-07-01 11:00:32 +08:00
Dillon Ngo 21ca018c3b Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-27 11:55:20 +08:00
Dillon Ngo ccdc0b4b0f Laravel Vapor - Convert a section component into polling component because of request timed out (error 504), debugging 2024-06-27 11:55:10 +08:00
Dillon Ngo 81dd8c4b93 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-27 09:38:19 +08:00
Dillon Ngo c402f672c3 Laravel Vapor - Convert a section component into polling component because of request timed out (error 504), debugging 2024-06-27 09:37:57 +08:00
Dillon Ngo 801f3b9bd4 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-27 08:58:03 +08:00
Dillon Ngo 8fe1f3261f Laravel Vapor - Convert a section component into polling component because of request timed out (error 504) 2024-06-27 08:56:09 +08:00
edmondlang b08e4c618f Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-06-26 13:48:21 +08:00
edmondlang 8c781a3362 test code group-transaction-with-completed-payments 2024-06-26 13:05:24 +08:00
edmondlang 57532e9afd Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-06-26 13:03:07 +08:00
Dillon Ngo 1314e1baec Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-25 13:51:21 +08:00
Dillon Ngo 493bb3512c Laravel Vapor - converted some components to do job polling because of Error 504 Endpoint request timed out 2024-06-25 13:49:05 +08:00
Dillon Ngo 99b6c06de4 Laravel Vapor - Development environemnt specific only changes - logging with specific channel (code sync from Exchange) 2024-06-25 11:07:18 +08:00
edmondlang 2f55821046 add multi select 2024-06-24 23:13:48 +08:00
Dillon Ngo 5086492d32 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 16:49:08 +08:00
Dillon Ngo 073b69608a Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 16:48:58 +08:00
Dillon Ngo 92f96b155b Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 15:48:47 +08:00
Dillon Ngo f0d8b18715 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 15:48:38 +08:00
Dillon Ngo b2bd0f1b2e Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 15:23:31 +08:00
Dillon Ngo 29ad0a0464 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 15:23:18 +08:00
Dillon Ngo becb062baa Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 14:03:03 +08:00
Dillon Ngo 5eca74579d Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 14:02:54 +08:00
Dillon Ngo 12540a5bfb Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 13:49:01 +08:00
Dillon Ngo 84010579f2 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 13:48:48 +08:00
Dillon Ngo b8a1fd4829 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 13:24:14 +08:00
Dillon Ngo 8a36fb05b5 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 13:24:02 +08:00
Dillon Ngo 47270f692b Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 13:02:11 +08:00
Dillon Ngo bd7014fd7a Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 13:01:59 +08:00
Dillon Ngo 1ec12294e7 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 12:50:10 +08:00
Dillon Ngo 9806543d07 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 12:49:53 +08:00
Dillon Ngo 639dc4f7a5 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 12:35:12 +08:00
Dillon Ngo d63decd446 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 12:34:56 +08:00
Dillon Ngo f64365603a Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 12:05:30 +08:00
Dillon Ngo c05c0a83b4 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 12:05:12 +08:00
Dillon Ngo 0641cbf020 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 11:25:34 +08:00
Dillon Ngo 05102576d8 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 11:25:11 +08:00
Dillon Ngo 7d900e816b Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-24 11:11:37 +08:00
Dillon Ngo 88a6e546a8 Export pdf file from Laravel Vapor through S3 bucket (debug problem cannot download) 2024-06-24 11:11:16 +08:00
Dillon Ngo 0485f4feef Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-23 20:45:26 +08:00
Dillon Ngo a14d9dbe27 Laraval Vapor - Update development and staging environment to use a duplicated production bucket for the purpose of testing 2024-06-23 20:45:07 +08:00
Dillon Ngo ed311ca4cc Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-23 20:23:04 +08:00
Dillon Ngo 63316212ec Export pdf file from Laravel Vapor through S3 bucket (code sync from exchange-2.0) 2024-06-23 20:20:27 +08:00
Dillon Ngo 6cf214d896 Merge branch 'dillon/34.5-jenkins-vapor' into vapor/development 2024-06-22 13:01:36 +08:00
Dillon Ngo 746d4254c5 Merge branch 'dillon/34.4-jenkins-vapor' into dillon/34.5-jenkins-vapor 2024-06-22 12:59:01 +08:00
Dillon Ngo d81b07f758 Remove code no longer in used 2024-06-20 16:31:33 +08:00
Dillon Ngo d5c63d621d Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-06-20 16:24:17 +08:00
Dillon Ngo eb2d17b73f Export pdf file from Laravel Vapor through S3 bucket (code sync from exchange-2.0) 2024-06-20 16:24:01 +08:00
Dillon Ngo d1b2af0859 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-06-20 15:26:13 +08:00
Dillon Ngo 6a621029e6 Export pdf file from Laravel Vapor through S3 bucket (code sync from exchange-2.0) 2024-06-20 15:25:54 +08:00
edmondlang 4a9ac3de02 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into address-extra-fields 2024-06-20 10:03:57 +08:00
edmondlang 1e6fafef28 make address line 2 required 2024-06-20 10:02:15 +08:00
Dillon Ngo b7b84cc8ed Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-06-18 12:23:12 +08:00
Dillon Ngo 06e36bb754 Export pdf file from Laravel Vapor through S3 bucket (code sync from exchange-2.0) 2024-06-18 12:22:46 +08:00
Dillon Ngo b6cb49073b Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-06-18 10:28:46 +08:00
Dillon Ngo cef88f8274 Export excel file from Laravel Vapor through S3 bucket (code sync from exchange-2.0) 2024-06-18 10:28:29 +08:00
Dillon Ngo 03d42cfa19 Merge branch 'development' into vapor/development 2024-06-17 11:02:32 +08:00
Dillon Ngo 94e2c4f6da Merge branch 'development' into vapor/development 2024-06-17 11:02:07 +08:00
Dillon Ngo 8ff459c373 Merge branch 'dillon/62-fixes-and-new-features' into development 2024-06-15 05:36:38 +08:00
Dillon Ngo 707c48ab12 Fix a rounding problem in group payment which will result in goods cannot be released through CallbackBillplzLogic 2024-06-15 05:36:10 +08:00
Dillon Ngo 6d006ba60b Merge branch 'master' into dillon/62-fixes-and-new-features 2024-06-15 03:23:45 +08:00
edmondlang 4087df6649 Merge branch 'address-extra-fields' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Addresses/ControllersLogic/CreateAddressLogic.php
#	app/Classes/Modules/Addresses/ControllersLogic/UpdateAddressLogic.php
#	app/Models/Address.php
2024-06-12 12:06:00 +08:00
edmondlang 9d0924c674 address extra fields 2024-06-12 12:02:31 +08:00
edmondlang 4ac1fdb1ba Merge branch 'ga4-user-id' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-06-09 21:26:06 +08:00
edmondlang d21a930889 ga4 with user id 2024-06-09 21:25:36 +08:00
Dillon Ngo 42d68a4357 Merge branch 'dillon/46.13-missing-payment-proof-feature' into development 2024-06-09 12:44:43 +08:00
Dillon Ngo f32fc1976e Merge branch 'dillon/46.13-missing-payment-proof-feature' into development 2024-06-09 12:16:41 +08:00
Dillon Ngo cdf5e89a4a Merge branch 'dillon/46.13-missing-payment-proof-feature' into development 2024-06-09 12:01:13 +08:00
edmondlang a32e63b74f Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-06-07 17:41:05 +08:00
edmondlang 32d3aebf37 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	resources/views/layouts/base.blade.php
2024-06-07 17:36:33 +08:00
edmondlang 1b2ae413e3 test ga4 2024-06-07 17:35:04 +08:00
edmondlang 1059251b6b test gtag 2024-06-07 17:25:38 +08:00
Dillon Ngo c223aec7c9 Merge branch 'dillon/46.12-warehouse-storage-manual-payment' into development 2024-06-02 20:19:11 +08:00
Dillon Ngo 3c622dc6ca Stop warehouse storage fee from calculating whenever there is a manual payment submitted for verification 2024-06-02 20:17:32 +08:00
Dillon Ngo 819a29b227 Merge branch 'dillon/62-fixes-and-new-features' into development 2024-06-02 11:20:25 +08:00
Dillon Ngo bbd48df118 Redirect a link + New terms and conditions checkbox when creating an order 2024-06-02 11:00:04 +08:00
Dillon Ngo 353bf0ffbd Redirect a link + New terms and conditions checkbox when creating an order 2024-06-02 10:41:47 +08:00
Dillon Ngo bb0ecc42c3 Merge branch 'dillon/62-fixes-and-new-features' into development 2024-06-02 10:25:30 +08:00
Dillon Ngo df3024186b Redirect a link + New terms and conditions checkbox when creating an order 2024-06-02 09:56:56 +08:00
edmondlang e6486644a0 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/PackingLists/ControllersLogic/Containers/RescheduleContainerLogic.php
2024-05-30 23:10:32 +08:00
edmondlang f8d191267b Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-05-27 00:54:20 +08:00
Dillon Ngo 1796515b1f Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-26 19:52:37 +08:00
Dillon Ngo d78b83054e Laravel Vapor - Sync code a fix from Exchange, a get request should not have a body 2024-05-26 19:52:26 +08:00
Dillon Ngo 619c96d632 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-26 17:11:31 +08:00
Dillon Ngo 808f327318 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-26 17:11:14 +08:00
Dillon Ngo 242d6f1806 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-26 03:34:36 +08:00
Dillon Ngo 849b69b31a Fix a UI/UX problem at admin page when updating permits document at /settings page 2024-05-26 03:34:24 +08:00
Dillon Ngo 937f983718 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-26 03:13:43 +08:00
Dillon Ngo bd849d3b70 Attempt to fix a UI/UX problem 2024-05-26 03:13:29 +08:00
Dillon Ngo 40b69dbaee Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-25 13:08:29 +08:00
Dillon Ngo 8cb21fc4f1 Laravel Vapor - Testing of sending email with file attached 2024-05-25 13:08:20 +08:00
Dillon Ngo 71e2a9f2fe Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-25 12:34:41 +08:00
Dillon Ngo 21485c7db7 Laravel Vapor - Testing of sending email with file attached 2024-05-25 12:34:33 +08:00
Dillon Ngo ba7f5a2c69 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-25 12:16:52 +08:00
Dillon Ngo 4628b14a0b Laravel Vapor - New V2 command to do housekeeping at S3 Bucket 2024-05-25 12:16:37 +08:00
Dillon Ngo f176c82980 Laravel Vapor - Added comment 2024-05-25 02:41:32 +08:00
Dillon Ngo ca04d987ef Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-24 23:21:31 +08:00
Dillon Ngo 4cf6825e42 Laravel Vapor - Debug Endpoint request timed out 2024-05-24 23:21:17 +08:00
Dillon Ngo 8e98ed15d3 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-21 10:39:06 +08:00
Dillon Ngo 32a7228370 Laravel Vapor - Debug Endpoint request timed out 2024-05-21 10:38:58 +08:00
Dillon Ngo 817f24d849 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-21 10:32:31 +08:00
Dillon Ngo a4d98aa31a Laravel Vapor - Debug Endpoint request timed out 2024-05-21 10:20:56 +08:00
Dillon Ngo 0459f0b511 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-21 10:19:42 +08:00
Dillon Ngo f779e563a6 Laravel Vapor - Debug Endpoint request timed out 2024-05-21 10:19:36 +08:00
Dillon Ngo 77b4262056 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-21 10:02:58 +08:00
Dillon Ngo e7e2b1eac2 Laravel Vapor - Debug Endpoint request timed out 2024-05-21 10:02:51 +08:00
Dillon Ngo 9e89f3acfc Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-21 09:39:27 +08:00
Dillon Ngo 5410fefc1f Laravel Vapor - Debug Endpoint request timed out 2024-05-21 09:39:20 +08:00
Dillon Ngo 3dd330f420 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-21 08:46:40 +08:00
Dillon Ngo b514ea15a1 Laravel Vapor - Debug Endpoint request timed out 2024-05-21 08:46:19 +08:00
edmondlang 83d7f20a48 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-05-21 01:33:50 +08:00
Jia Sheng 12f8391ca8 Merge branch 'fulfilment-banner' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into development 2024-05-20 22:51:54 +08:00
Dillon Ngo f5a88f1759 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 19:46:43 +08:00
Dillon Ngo 93f3a6343a Laravel Vapor - Debug Endpoint request timed out 2024-05-20 19:46:33 +08:00
Dillon Ngo e80d0d3349 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 19:19:04 +08:00
Dillon Ngo 7c66eb657e Laravel Vapor - Debug Endpoint request timed out 2024-05-20 19:18:53 +08:00
Dillon Ngo 1827d6f74d Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 18:58:37 +08:00
Dillon Ngo 96ccdcd3da Laravel Vapor - Debug Endpoint request timed out 2024-05-20 18:58:30 +08:00
Dillon Ngo bdd3ad5d32 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 18:22:58 +08:00
Dillon Ngo f37cae406a Laravel Vapor - Debug Endpoint request timed out 2024-05-20 18:22:46 +08:00
Dillon Ngo b0af454584 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 05:00:17 +08:00
Dillon Ngo be87fc6b1c Laravel Vapor - Debug Endpoint request timed out 2024-05-20 05:00:11 +08:00
Dillon Ngo 04387992cb Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 04:35:46 +08:00
Dillon Ngo 6c64195a73 Laravel Vapor - Debug Endpoint request timed out 2024-05-20 04:35:40 +08:00
Dillon Ngo 1402b62d02 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 03:48:48 +08:00
Dillon Ngo 431c2829fe Laravel Vapor - Debug Endpoint request timed out 2024-05-20 03:48:36 +08:00
Dillon Ngo cdfac35c43 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 03:43:47 +08:00
Dillon Ngo 0a3f09032e Laravel Vapor - Debug Endpoint request timed out 2024-05-20 03:43:32 +08:00
Dillon Ngo f718c57582 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 01:39:51 +08:00
Dillon Ngo 867e2455b3 Laravel Vapor - Debug Endpoint request timed out 2024-05-20 01:39:36 +08:00
Dillon Ngo a54ae35c46 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-20 00:27:08 +08:00
Dillon Ngo b74257477b Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-20 00:26:53 +08:00
Dillon Ngo 39017c5d8f Merge branch 'dillon/51.5-vue-store-update' into development 2024-05-19 23:55:22 +08:00
Dillon Ngo 52edda10ec Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 23:49:30 +08:00
Dillon Ngo 3f3d2d1177 Merge branch 'dillon/51.5-vue-store-update' into dillon/34.4-jenkins-vapor 2024-05-19 23:49:14 +08:00
Dillon Ngo 62426da58e Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 23:35:35 +08:00
Dillon Ngo 706e9552a5 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 23:32:30 +08:00
Dillon Ngo 4682d881bd Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 23:26:10 +08:00
Dillon Ngo dbeb4f9f04 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 23:25:58 +08:00
Dillon Ngo d14fa8d186 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 23:23:19 +08:00
Dillon Ngo f23db32429 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 23:23:10 +08:00
Dillon Ngo dd31673125 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 22:51:31 +08:00
Dillon Ngo 40fb3f986e Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 22:51:04 +08:00
Dillon Ngo 81e1a3b971 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 07:17:54 +08:00
Dillon Ngo 1e2faa0872 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 07:17:44 +08:00
Dillon Ngo 19cec66947 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 06:48:16 +08:00
Dillon Ngo 17698c276f Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 06:47:49 +08:00
Dillon Ngo 0b5f33b5fd Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 06:26:15 +08:00
Dillon Ngo 2fa2d444a4 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 06:26:08 +08:00
Dillon Ngo 3a3b28c284 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 06:08:40 +08:00
Dillon Ngo 484ca246b0 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 06:08:28 +08:00
Dillon Ngo adf71f0a9f Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 05:45:42 +08:00
Dillon Ngo ea1d32ee01 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 05:45:36 +08:00
Dillon Ngo f0bca6ce3d Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 05:17:05 +08:00
Dillon Ngo 874dc2942a Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 05:16:57 +08:00
Dillon Ngo c8cbce3fd3 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 04:55:50 +08:00
Dillon Ngo 185245f3eb Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 04:55:42 +08:00
Dillon Ngo 3f80f779f2 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 04:33:08 +08:00
Dillon Ngo 3b2e2216c1 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 04:32:57 +08:00
Dillon Ngo 04643385cd Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 04:21:40 +08:00
Dillon Ngo 68dad00c2d Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 04:21:32 +08:00
Dillon Ngo ac0fc85c65 Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development 2024-05-19 03:45:52 +08:00
Dillon Ngo 1bcc345293 Laravel Vapor - Look into logs in different channel in cloudwatch 2024-05-19 03:34:52 +08:00
Dillon Ngo d6d11cb7d0 Laravel Vapor - Debug Endpoint request timed out 2024-05-19 01:31:55 +08:00
Dillon Ngo fba0d58a6b Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-19 00:01:07 +08:00
Dillon Ngo 6efa94ffa1 Disable GitLab CI/CD 2024-05-19 00:00:59 +08:00
Dillon Ngo 670de560ed Laravel Vapor - Debug Endpoint request timed out 2024-05-18 23:42:50 +08:00
Dillon Ngo c643c621c3 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 23:23:39 +08:00
Dillon Ngo 50042aae4e Laravel Vapor - Debug Endpoint request timed out 2024-05-18 23:23:22 +08:00
Dillon Ngo c4d4d679fd Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 22:55:46 +08:00
Dillon Ngo 7480f54f84 Laravel Vapor - Debug Endpoint request timed out 2024-05-18 22:55:40 +08:00
Dillon Ngo 9c821d26a3 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 22:40:20 +08:00
Dillon Ngo e986247efb Laravel Vapor - Debug Endpoint request timed out 2024-05-18 22:40:01 +08:00
Dillon Ngo a751ab09cc Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 22:37:31 +08:00
Dillon Ngo 81b0efea1c Laravel Vapor - Debug Endpoint request timed out 2024-05-18 22:37:23 +08:00
Dillon Ngo c2b2fc08e6 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 22:07:29 +08:00
Dillon Ngo 82fc7b4455 Laravel Vapor - Debug Endpoint request timed out 2024-05-18 22:07:08 +08:00
Dillon Ngo f2f42ea67e Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 21:40:16 +08:00
Dillon Ngo 1d8d98e4d7 Laravel Vapor - Debug Endpoint request timed out 2024-05-18 21:40:06 +08:00
Dillon Ngo 7d923389c9 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 20:34:05 +08:00
Dillon Ngo 29547b2915 Laravel Vapor - test reading data from S3 Bucket with production duplicated storage files 2024-05-18 20:33:53 +08:00
Dillon Ngo ec8bf93e35 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 20:20:23 +08:00
Dillon Ngo ae74e72a96 Laravel Vapor - Debug Endpoint request timed out 2024-05-18 20:20:06 +08:00
Dillon Ngo fbeeb46792 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-18 19:11:18 +08:00
Dillon Ngo b90918c465 Laravel Vapor - test vue polling with refactor code from branch 51.5 2024-05-18 19:09:19 +08:00
Dillon Ngo d7f08fd9e5 Merge branch 'dillon/51.5-vue-store-update' into dillon/34.3-jenkins-vapor 2024-05-18 18:56:30 +08:00
Dillon Ngo 721a7c165b Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-17 18:12:41 +08:00
Dillon Ngo c4a1cd4ab4 Laravel Vapor - test reading data from S3 Bucket with production duplicated storage files 2024-05-17 18:12:31 +08:00
Dillon Ngo 7a37e78937 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-17 17:38:55 +08:00
Dillon Ngo d563fa3cb2 Laravel Vapor - test reading data from S3 Bucket with production duplicated storage files 2024-05-17 17:38:20 +08:00
Dillon Ngo 9055ef04df Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-17 17:03:14 +08:00
Dillon Ngo 13835b43c1 Laravel Vapor - test reading data from YD API 2024-05-17 17:02:51 +08:00
Dillon Ngo 5ce29edb10 Debug webhook not triggering 2024-05-17 15:11:10 +08:00
Dillon Ngo fcd58a7ae2 Debug webhook not triggering 2024-05-17 15:03:20 +08:00
Dillon Ngo d485352f10 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-17 14:22:43 +08:00
Dillon Ngo 39de1fbdf0 Laravel Vapor - test uploading an excel file to S3 bucket 2024-05-17 14:22:26 +08:00
Dillon Ngo acca20dba0 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 22:31:31 +08:00
Dillon Ngo f7c2b7d5e9 Laravel Vapor - test uploading a excel file 2024-05-16 22:31:25 +08:00
Dillon Ngo 08d0d2c63c Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 22:00:51 +08:00
Dillon Ngo 80bd8668c1 Laravel Vapor - test uploading a excel file 2024-05-16 22:00:43 +08:00
Dillon Ngo 55d75f084b Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 21:49:28 +08:00
Dillon Ngo e8367c18bf Laravel Vapor - test uploading a excel file 2024-05-16 21:49:22 +08:00
Dillon Ngo c3cd8f2eae Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 21:23:54 +08:00
Dillon Ngo b08c1159f3 Laravel Vapor - test uploading a excel file 2024-05-16 21:23:48 +08:00
Dillon Ngo a898003488 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 20:57:24 +08:00
Dillon Ngo 3fa9d532f8 Laravel Vapor - test downloading a status assets 2024-05-16 20:57:10 +08:00
Dillon Ngo b71199e4ca Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 19:52:25 +08:00
Dillon Ngo 914ad2a8f1 Laravel Vapor - test attaching a file from S3 in an email 2024-05-16 19:52:16 +08:00
Dillon Ngo ce3e215b61 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 19:38:28 +08:00
Dillon Ngo f96fcdbcb4 Laravel Vapor - test attaching a file from S3 in an email 2024-05-16 19:38:19 +08:00
Dillon Ngo a5aec22252 Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 19:21:04 +08:00
Dillon Ngo a3ff963cc9 Laravel Vapor - test attaching a file from S3 in an email 2024-05-16 19:20:54 +08:00
Dillon Ngo 9229f40e9c Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development 2024-05-16 02:37:53 +08:00
Dillon Ngo 8355c81f20 Laravel Vapor - test attaching a file from S3 in an email 2024-05-16 02:33:23 +08:00
Dillon Ngo 9265cd494a Laravel Vapor - test attaching a file from S3 in an email 2024-05-16 01:28:43 +08:00
Dillon Ngo 83bd2a06a0 Merge branch 'master' into dillon/34.3-jenkins-vapor 2024-05-16 01:06:52 +08:00
Dillon Ngo eda28b3624 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 17:07:28 +08:00
Dillon Ngo 600fe91da0 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 17:07:19 +08:00
Dillon Ngo 71f1fd494d Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 16:49:01 +08:00
Dillon Ngo 496fc09f03 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 16:48:51 +08:00
Dillon Ngo 29ee5c95bc Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 16:20:57 +08:00
Dillon Ngo 4cb7a09ea4 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 16:20:45 +08:00
Dillon Ngo 7c9b45c394 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 15:39:54 +08:00
Dillon Ngo b3850f1b6e Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 15:39:39 +08:00
Dillon Ngo cb63c3250c Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 04:31:43 +08:00
Dillon Ngo 9f57335363 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 04:31:25 +08:00
Dillon Ngo 32c29a77e3 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 04:11:38 +08:00
Dillon Ngo 5f53f7110c Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 04:11:26 +08:00
Dillon Ngo d69e348920 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 03:51:46 +08:00
Dillon Ngo ab4a83dc50 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 03:51:33 +08:00
Dillon Ngo d376b8b2b9 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 02:40:07 +08:00
Dillon Ngo 3b3d8f011f Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 02:39:57 +08:00
Dillon Ngo 0e903c1794 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 02:21:28 +08:00
Dillon Ngo 09c099d0a4 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 02:21:02 +08:00
Dillon Ngo 065d7ae890 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 01:41:17 +08:00
Dillon Ngo fc479b4420 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 01:41:08 +08:00
Dillon Ngo fe8aecc78f Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 01:23:26 +08:00
Dillon Ngo 7f80d2d9c5 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 01:23:14 +08:00
Dillon Ngo 9c53979cc1 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-15 01:03:59 +08:00
Dillon Ngo 0de92ded68 Laravel Vapor - test read from database export excel file to S3 bucket through a command 2024-05-15 01:03:46 +08:00
jiasheng224 c022ab6578 Merge branch 'fulfilment-banner' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into development 2024-05-08 18:49:01 +08:00
Dillon Ngo 8bfdc2431c Merge branch 'dillon/46.11-warehouse-storage-related-fixes' into development 2024-05-08 03:04:08 +08:00
Dillon Ngo ac1957bcb0 Merge branch 'dillon/46.11-warehouse-storage-related-fixes' into development 2024-05-08 01:53:05 +08:00
Dillon Ngo 61a0766e60 Merge branch 'dillon/60-shipping-portal-fixes' into development 2024-05-08 00:57:25 +08:00
edmondlang f3c7c042fc Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-05-08 00:25:40 +08:00
Dillon Ngo 424e2b4e5e Merge branch 'dillon/46.11-warehouse-storage-related-fixes' into development 2024-05-06 13:23:45 +08:00
Dillon Ngo dec6fe0463 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-03 17:00:07 +08:00
Dillon Ngo dbf537e050 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-05-03 16:59:59 +08:00
Dillon Ngo 71934d9f41 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-03 16:54:31 +08:00
Dillon Ngo 916b0c3051 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-05-03 16:54:20 +08:00
Dillon Ngo d263380967 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-03 16:39:23 +08:00
Dillon Ngo 28e3e15b16 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-05-03 16:39:14 +08:00
Dillon Ngo fe9c9e297c Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-03 16:21:44 +08:00
Dillon Ngo 59a75cbb79 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-05-03 16:21:29 +08:00
Dillon Ngo 02827fbb56 Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-03 16:06:14 +08:00
Dillon Ngo 0b1fd84b49 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-05-03 16:06:03 +08:00
Dillon Ngo 1c592010bb Merge branch 'dillon/34.2-jenkins-vapor' into vapor/development 2024-05-03 15:29:29 +08:00
Dillon Ngo 3b454890d8 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-05-03 15:23:05 +08:00
Dillon Ngo 1784dd9003 Merge branch 'master' into dillon/34.2-jenkins-vapor 2024-05-02 11:31:41 +08:00
Dillon Ngo 09cf607b17 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-05-01 09:56:26 +08:00
Dillon Ngo f56cb39822 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-05-01 09:54:56 +08:00
Dillon Ngo 693662983c Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-04-30 13:08:17 +08:00
Dillon Ngo a7c03d7fb2 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-04-30 12:56:53 +08:00
Dillon Ngo eb9f77f620 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-04-30 12:37:40 +08:00
Dillon Ngo 7c2dd70d11 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-04-30 11:53:00 +08:00
Dillon Ngo 849935aee3 Laravel Vapor - code amendment for changing local storage to AWS S3 storage (code sync from exchange-2.0) 2024-04-30 11:52:41 +08:00
Omair Saleh 7b897f8dce change sst invoice format 2024-04-16 12:37:53 +08:00
Omair Saleh 4d7adba8e8 change sst invoice format 2024-04-15 15:31:33 +08:00
Omair Saleh 3c91a7d099 change sst invoice format 2024-04-15 15:29:52 +08:00
Omair Saleh 0435464382 change sst invoice format 2024-04-15 12:33:37 +08:00
Omair Saleh 6878dbc518 change sst invoice format 2024-04-15 12:27:06 +08:00
Omair Saleh 3ec186da3b change sst invoice format 2024-04-15 12:18:55 +08:00
Omair Saleh 1301e8d1a4 change sst invoice format 2024-04-15 12:02:24 +08:00
edmondlang 75d2fc3d76 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-04-10 23:17:22 +08:00
edmondlang ec6b768755 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-04-10 22:28:49 +08:00
Dillon Ngo b26fea9a49 Merge branch 'dillon/58-shipping-portal-sst' into development 2024-04-07 10:43:32 +08:00
edmondlang b5efe6139d Merge branch 'delete-paid-group-transaction' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-30 00:50:14 +08:00
edmondlang 90793be9dc Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-28 23:05:57 +08:00
Dillon Ngo 464160b526 Merge branch 'dillon/46.9-warehouse-storage-charges-fixes' into development 2024-03-26 08:10:57 +08:00
Dillon Ngo aba380dce4 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-24 19:19:57 +08:00
Dillon Ngo bfdf96b4a1 Remove comments in code 2024-03-24 19:19:44 +08:00
Dillon Ngo fecb25d075 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-21 16:29:32 +08:00
Dillon Ngo 894248e33c Laravel Vapor - Version 2 of Commands 2024-03-21 16:29:13 +08:00
Dillon Ngo d4b13e0a58 Disable schedule task for Command V2 for vapor development environment only 2024-03-21 15:39:45 +08:00
Dillon Ngo cee24a8bf9 Setup priority queue with AWS SQS 2024-03-21 15:36:00 +08:00
Dillon Ngo f27c85e493 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-21 14:50:47 +08:00
Dillon Ngo 09553025dc Setup priority queue with AWS SQS 2024-03-21 14:50:24 +08:00
Dillon Ngo 588b06ecfe Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-21 14:20:09 +08:00
Dillon Ngo 52934899e8 Setup priority queue with AWS SQS 2024-03-21 14:19:55 +08:00
Dillon Ngo 5721aa43fe Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-21 13:49:34 +08:00
Dillon Ngo c607eb8895 Setup priority queue with AWS SQS 2024-03-21 13:49:14 +08:00
Dillon Ngo 77a5e3b102 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-21 13:21:21 +08:00
Dillon Ngo ac1d63a2cb Setup priority queue with AWS SQS 2024-03-21 13:21:04 +08:00
Dillon Ngo ed4d4f3d5d Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-19 19:43:27 +08:00
Dillon Ngo 4ce92aca27 Debug Jenkinsfile 2024-03-19 19:43:14 +08:00
Dillon Ngo 15e680c465 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-19 19:32:12 +08:00
Dillon Ngo ddcc55ed5c Debug Jenkinsfile 2024-03-19 19:32:05 +08:00
Dillon Ngo 9bbab9d0d0 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-19 19:22:18 +08:00
Dillon Ngo 35ebb9aed9 Debug Jenkinsfile 2024-03-19 19:22:05 +08:00
Dillon Ngo 15e0daffa2 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-19 19:20:24 +08:00
Dillon Ngo b8b72ff2d4 Debug Jenkinsfile 2024-03-19 19:20:15 +08:00
Dillon Ngo 78ae625928 Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-19 19:15:12 +08:00
Dillon Ngo cfa277bbb0 Debug Jenkinsfile 2024-03-19 19:15:01 +08:00
Dillon Ngo 8fa899828c Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development 2024-03-19 17:30:14 +08:00
Dillon Ngo 6a6f4c3aef Merge branch 'development' into vapor/development 2024-03-19 17:21:18 +08:00
Dillon Ngo 4470a685af Update vapor.yml to setup new sqs for priority queues setup 2024-03-19 17:10:29 +08:00
Dillon Ngo 640fa3b738 Merge branch 'master' into dillon/34.1-jenkins-vapor 2024-03-19 16:53:26 +08:00
Dillon Ngo bf195bf3e3 Merge branch 'dillon/55-billplz-fix' into development 2024-03-18 14:06:38 +08:00
Dillon Ngo 6e5a18fd05 Merge branch 'dillon/55-billplz-fix' into development 2024-03-18 13:56:57 +08:00
Dillon Ngo 8d5edbd716 Merge branch 'dillon/46.9-warehouse-storage-charges-fixes' into development 2024-03-16 15:50:36 +08:00
edmondlang 898b63cbd2 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-14 12:48:41 +08:00
Dillon Ngo 20f0d54844 Merge branch 'dillon/55-billplz-fix' into development 2024-03-14 12:44:17 +08:00
Dillon Ngo 2951800117 Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-14 12:32:42 +08:00
Dillon Ngo 5ac8911fab Merge branch 'dillon/55-billplz-fix' into development 2024-03-14 12:32:26 +08:00
edmondlang 0f1d247c51 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-13 00:21:05 +08:00
edmondlang 73aa703658 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-13 00:03:11 +08:00
edmondlang 8da81a4696 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-12 23:52:58 +08:00
Dillon Ngo 1291267805 Merge branch 'dillon/55-billplz-fix' into development 2024-03-12 14:21:28 +08:00
edmondlang 406fe045fc Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-10 19:40:04 +08:00
Dillon Ngo 4e0f04eae2 Merge branch 'dillon/46.8-warehouse-storage-charges-fixes' into development 2024-03-09 21:43:57 +08:00
Dillon Ngo 56aec95d50 Attempt to resolve gitlab pipeline job error 2024-03-09 21:43:48 +08:00
Dillon Ngo 0e3fedf56f Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-09 21:20:51 +08:00
Dillon Ngo dadf7153d7 Merge branch 'dillon/46.8-warehouse-storage-charges-fixes' into development 2024-03-09 21:20:35 +08:00
edmondlang 8fdc4168b1 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-09 13:56:04 +08:00
Dillon Ngo bf1cb09ece Merge branch 'dillon/46.9-warehouse-storage-charges-fixes' into development 2024-03-09 02:20:57 +08:00
Dillon Ngo a829bec73e Merge branch 'dillon/46.9-warehouse-storage-charges-fixes' into development 2024-03-09 01:22:29 +08:00
Dillon Ngo ff9cb8a9b6 Merge branch 'dillon/46.9-warehouse-storage-charges-fixes' into development 2024-03-08 23:54:03 +08:00
Dillon Ngo 939959193d Merge branch 'dillon/46.9-warehouse-storage-charges-fixes' into development 2024-03-08 23:35:42 +08:00
Dillon Ngo 6db98029d9 Merge branch 'dillon/46.9-warehouse-storage-charges-fixes' into development 2024-03-08 20:45:26 +08:00
Dillon Ngo 17ed9c3599 Merge branch 'dillon/46.8-warehouse-storage-charges-fixes' into development 2024-03-02 14:09:18 +08:00
Dillon Ngo 6aef08ee5e Merge branch 'dillon/46.8-warehouse-storage-charges-fixes' into development 2024-03-02 13:27:16 +08:00
Dillon Ngo 797c0a1bfd Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-01 11:49:48 +08:00
Dillon Ngo de036f8c20 Merge branch 'dillon/46.8-warehouse-storage-charges-fixes' into development 2024-03-01 11:47:39 +08:00
edmondlang b493dd1aaf Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-03-01 11:29:10 +08:00
edmondlang 3fb09a005f revert 2024-03-01 11:27:18 +08:00
edmondlang cbfbebc32b test send permits email 2024-03-01 11:00:24 +08:00
Dillon Ngo 86afc4aa66 Merge branch 'dillon/46.8-warehouse-storage-charges-fixes' into development 2024-02-29 22:33:32 +08:00
Dillon Ngo ca5a445df1 Merge branch 'dillon/46.8-warehouse-storage-charges-fixes' into development 2024-02-29 17:19:40 +08:00
Dillon Ngo 649e22cef0 Merge branch 'dillon/46.8-warehouse-storage-charges-fixes' into development 2024-02-29 16:36:46 +08:00
Dillon Ngo 873aaa8263 Merge branch 'dillon/46.6-warehouse-storage-charges-fixes' into development 2024-02-25 15:21:16 +08:00
Dillon Ngo 9148c9063d Merge branch 'dillon/46.6-warehouse-storage-charges-fixes' into development 2024-02-25 14:27:05 +08:00
Dillon Ngo 70688c4a4b Merge branch 'dillon/46.6-warehouse-storage-charges-fixes' into development 2024-02-25 14:04:31 +08:00
Dillon Ngo f9e8f4c852 Merge branch 'dillon/46.6-warehouse-storage-charges-fixes' into development 2024-02-25 13:52:38 +08:00
Dillon Ngo 476f5ba506 Merge branch 'dillon/46.7-warehouse-storage-charges-fixes' into development 2024-02-24 11:41:05 +08:00
Dillon Ngo 73dcc12b09 Merge branch 'dillon/46.7-warehouse-storage-charges-fixes' into development 2024-02-24 11:08:36 +08:00
Dillon Ngo ef934626d6 Merge branch 'dillon/46.7-warehouse-storage-charges-fixes' into development 2024-02-24 10:48:42 +08:00
Dillon Ngo 8fbf163d4b Merge branch 'dillon/46.5-warehouse-storage-charges-fixes' into development 2024-02-24 10:09:26 +08:00
Dillon Ngo 7236a80f68 Merge branch 'dillon/46.5-warehouse-storage-charges-fixes' into development 2024-02-23 11:09:53 +08:00
Dillon Ngo 014244f453 Merge branch 'dillon/46.5-warehouse-storage-charges-fixes' into development 2024-02-23 10:49:48 +08:00
Dillon Ngo a1eed0477f Merge branch 'dillon/46.5-warehouse-storage-charges-fixes' into development 2024-02-18 10:11:13 +08:00
Dillon Ngo d15c5d9bc9 Merge branch 'dillon/46.5-warehouse-storage-charges-fixes' into development 2024-02-18 10:00:57 +08:00
Dillon Ngo f052a95b4d Merge branch 'dillon/46.4-warehouse-storage-charges' into development 2024-02-15 21:21:19 +08:00
Dillon Ngo 6c12d4b436 Merge branch 'dillon/46.4-warehouse-storage-charges' into development 2024-02-15 21:18:11 +08:00
Dillon Ngo aad694ff2e Merge branch 'dillon/46.4-warehouse-storage-charges' into development 2024-02-15 21:02:15 +08:00
Dillon Ngo 1ad8f81080 Merge branch 'dillon/46.4-warehouse-storage-charges' into development 2024-02-15 20:45:56 +08:00
Dillon Ngo 27c990d903 Merge branch 'dillon/51.4-explore-multiple-queues' into development 2024-02-13 22:08:13 +08:00
Dillon Ngo 8d80669eb3 Merge branch 'dillon/51.3-vue-polling-experimental' into development 2024-02-13 22:07:58 +08:00
edmondlang bc4b34f0a9 Merge branch 'permits-reminder' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-02-06 10:56:03 +08:00
edmondlang 533977f353 Merge branch 'permits-reminder' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-30 12:42:24 +08:00
edmondlang b293f84c38 Merge branch 'permits-reminder' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-30 00:48:37 +08:00
edmondlang 1ceb2bd636 Merge branch 'permits-reminder' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-30 00:42:49 +08:00
edmondlang bc6a31d458 Merge branch 'permits-reminder' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-30 00:38:46 +08:00
edmondlang 687dc9f3fe Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-30 00:37:26 +08:00
edmondlang ee65e5fcd1 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	routes/web.php
2024-01-30 00:35:50 +08:00
Dillon Ngo bc0a0c64c4 Merge branch 'dillon/46.4-warehouse-storage-charges' into development 2024-01-24 07:40:25 +08:00
edmondlang 378434dac4 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-17 17:19:56 +08:00
edmondlang 28bba28034 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-17 17:07:32 +08:00
Dillon Ngo 7e1a0a1bc4 Merge branch 'dillon/46.3.1-warehouse-storage-charges-fixes' into development 2024-01-15 08:38:45 +08:00
Dillon Ngo e0e00ac962 Merge branch 'dillon/46.3-warehouse-storage-charges-fixes' into development 2024-01-14 09:39:14 +08:00
edmondlang 0d8d35ab25 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-11 17:50:57 +08:00
edmondlang a66c7990f0 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-11 17:37:16 +08:00
edmondlang b4f8519102 update logging code 2024-01-11 16:41:21 +08:00
edmondlang db8a1c0808 update logging 2024-01-11 16:27:57 +08:00
edmondlang ebc601b45e update testing logging 2024-01-11 16:22:13 +08:00
edmondlang ce86dda0b9 comment on route logs table 2024-01-11 15:52:45 +08:00
edmondlang c80c5965b1 add priceCbmLog 2024-01-11 15:48:47 +08:00
edmondlang f7ac3715d0 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2024-01-11 10:55:44 +08:00
Steve Ng 871dbcfc87 invoice date for shipping portal when export invoice to autocount 2024-01-10 19:12:49 +08:00
Dillon Ngo f3c8d65e03 Merge branch 'dillon/51-vue-polling-experimental-2' into development 2024-01-08 17:50:12 +08:00
Steve Ng b9aa18c705 change posting date to invoice date for shipping portal when export invoice to autocount 2024-01-05 12:01:48 +08:00
Dillon Ngo 071858b55c Merge branch 'dillon/51-vue-polling-experimental-2' into development 2024-01-04 13:52:37 +08:00
Dillon Ngo 359eba36e3 Laravel Vapor - Attempt to solve random downloading of 0KB pdf files when using docker 2024-01-04 03:38:32 +08:00
Dillon Ngo 8a99ceda4c Merge branch 'dillon/51-vue-polling-experimental-2' into dillon/34-jenkins-vapor 2024-01-04 03:03:17 +08:00
Dillon Ngo 7d6e342a79 Merge branch 'dillon/51-vue-polling-experimental-2' into development 2024-01-04 02:51:12 +08:00
Dillon Ngo 8f695401d2 Merge branch 'dillon/51-vue-polling-experimental-2' into development 2024-01-04 02:33:59 +08:00
Steve Ng 58c861b726 change posting date to invoice date for shipping portal when export invoice to autocount 2024-01-03 09:07:10 +08:00
Dillon Ngo c81863811e Merge branch 'dillon/51-vue-polling-experimental-2' into dillon/34-jenkins-vapor 2024-01-03 05:40:16 +08:00
Dillon Ngo bbf61b757d Laravel Vapor - Version 2 of Commands, fix syntax inaccurate 2024-01-02 03:07:04 +08:00
Dillon Ngo f05bd50991 Laravel Vapor - Change to use private repository with Amazon Elastic Container Registry 2024-01-01 05:00:21 +08:00
Dillon Ngo 4504bf5eb0 Laravel Vapor - Change to use private repository with Amazon Elastic Container Registry 2024-01-01 04:52:23 +08:00
Dillon Ngo 9ecf0e5c9e Laravel Vapor - Change to use private repository with Amazon Elastic Container Registry 2024-01-01 04:48:17 +08:00
Dillon Ngo 2c5b9e55c5 Laravel Vapor - Change to use private repository with Amazon Elastic Container Registry 2024-01-01 04:19:01 +08:00
Dillon Ngo 9b61470d95 Laravel Vapor - Change to use private repository with Amazon Elastic Container Registry 2024-01-01 04:14:24 +08:00
Dillon Ngo ac3f4ce71f Laravel Vapor - Test run command to do housekeeping as part of deployment process 2023-12-31 22:15:36 +08:00
Dillon Ngo 1c9ce1510d Laravel Vapor - Test run command to do housekeeping as part of deployment process 2023-12-31 21:48:29 +08:00
Dillon Ngo 318995e42b Laravel Vapor - Test run command to do housekeeping as part of deployment process 2023-12-31 21:28:05 +08:00
Dillon Ngo 5a3e015b6d Laravel Vapor - Test run command to do housekeeping as part of deployment process 2023-12-31 21:08:45 +08:00
edmondlang 68940e6b6d Merge branch 'api-response-time-logging' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-12-31 13:04:21 +08:00
edmondlang dbc57fdaac code update 2023-12-31 12:58:22 +08:00
Dillon Ngo 3021ed49cd Laravel Vapor - Test run command to do housekeeping as part of deployment process 2023-12-31 05:15:08 +08:00
Dillon Ngo 45151688c9 Laravel Vapor - Test run command to do housekeeping as part of deployment process 2023-12-31 05:04:47 +08:00
Dillon Ngo 97dc8d7b68 Laravel Vapor - Fix error 400 with any api call (long term solution) 2023-12-30 19:27:05 +08:00
Dillon Ngo bfa5cee44e Merge branch 'dillon/51-vue-polling-experimental-2' into dillon/34-jenkins-vapor 2023-12-30 19:14:02 +08:00
edmondlang 55f7637d9c Merge branch 'add-attached-timestamp' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-12-30 16:58:29 +08:00
edmondlang 1578085bab add attached timestamp 2023-12-30 16:55:45 +08:00
Dillon Ngo 6ad2427989 Laravel Vapor - Fix error 400 with any api call 2023-12-30 00:28:29 +08:00
Dillon Ngo 783b7d2b91 Laravel Vapor - Fix error 400 with any api call 2023-12-30 00:12:09 +08:00
Dillon Ngo e8f5a803a6 Laravel Vapor - Sync code from exchange, dynamic path upload of documents to S3 bucket 2023-12-29 23:15:59 +08:00
edmondlang 08090036fe Merge branch 'api-response-time-logging' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Http/Kernel.php
2023-12-28 23:05:01 +08:00
edmondlang 9c9cf0f96e api and web response time log 2023-12-28 23:04:16 +08:00
edmondlang 73f9418835 Merge branch 'api-response-time-logging' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Http/Kernel.php
2023-12-28 22:53:21 +08:00
edmondlang b645bae1b1 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-12-28 22:52:22 +08:00
edmondlang 8513309126 api response time logging 2023-12-28 22:50:19 +08:00
Dillon Ngo 6e3286c29a Laravel Vapor - Undo Api Gateway version 2 2023-12-28 15:06:11 +08:00
Dillon Ngo 6d029e3fde Laravel Vapor - Reinstate Api Gateway version 2 2023-12-28 14:58:26 +08:00
Dillon Ngo 3ab0224094 Laravel Vapor - Reinstate Api Gateway version 2 2023-12-28 14:41:34 +08:00
Dillon Ngo b0d40591b8 Laravel Vapor - Undo Api Gateway version 2 2023-12-28 14:06:53 +08:00
Dillon Ngo 5e2b011aca Laravel Vapor - Fix missing static images 2023-12-28 13:44:01 +08:00
Dillon Ngo 1facf73c05 Laravel Vapor - Fix missing static images 2023-12-28 13:13:37 +08:00
Dillon Ngo 9882f6f634 Version 2 of Commands for Laravel Vapor 2023-12-28 02:39:22 +08:00
Dillon Ngo 69c26af01b Version 2 of Commands for Laravel Vapor 2023-12-28 02:14:17 +08:00
Dillon Ngo 2ae3ac1c59 Version 2 of Commands for Laravel Vapor 2023-12-28 02:09:42 +08:00
Dillon Ngo 52acd4c69d Version 2 of Commands for Laravel Vapor 2023-12-28 01:58:49 +08:00
Dillon Ngo c80c59aadf testing schedule tasks 2023-12-26 19:39:47 +08:00
Dillon Ngo 921f500fcd Trigger deployment 2023-12-26 04:37:24 +08:00
Dillon Ngo 3880dbd616 Merge branch 'dillon/51-vue-polling-experimental-2' into dillon/34-jenkins-vapor 2023-12-26 04:22:11 +08:00
Dillon Ngo add6de3410 Merge branch 'dillon/51-vue-polling-experimental-2' into dillon/34-jenkins-vapor 2023-12-24 22:05:57 +08:00
Dillon Ngo 12da4b4e60 testing multiple queue in sqs 2023-12-23 03:40:16 +08:00
Dillon Ngo 0ab6d2f38e testing multiple queue in sqs 2023-12-23 03:30:34 +08:00
Dillon Ngo c0368bfd19 testing multiple queue in sqs 2023-12-23 03:20:32 +08:00
Dillon Ngo eab11fa7f2 testing multiple queue in sqs 2023-12-23 02:50:27 +08:00
Dillon Ngo 328d61d044 testing multiple queue in sqs 2023-12-23 02:25:06 +08:00
Dillon Ngo ce76544ac1 testing multiple queue in sqs 2023-12-23 02:10:08 +08:00
Dillon Ngo 1d49d25f98 testing multiple queue in sqs 2023-12-23 01:56:21 +08:00
Dillon Ngo 570b6e53cc testing multiple queue in sqs 2023-12-23 01:31:41 +08:00
Dillon Ngo 7b6da3d13a Set api gateway to version 2 to see if there is any performance improvement + new certificate for ap-southeast-1 2023-12-22 16:11:45 +08:00
Dillon Ngo 341fe0ff52 Merge branch 'dillon/46-warehouse-storage-charges-2-merge-conflict' into development 2023-12-20 23:59:27 +08:00
Dillon Ngo 888fe3b6d3 Merge branch 'dillon/46-warehouse-storage-charges-2-merge-conflict' into development 2023-12-20 20:52:44 +08:00
Dillon Ngo 28aabea1cf Set api gateway to version 2 to see if there is any performance improvement 2023-12-20 18:50:11 +08:00
Dillon Ngo a840c8b172 Increase memory to see if there is any performance improvement 2023-12-20 18:26:19 +08:00
Dillon Ngo 2bff13537d Increase memory to see if there is any performance improvement 2023-12-20 18:11:00 +08:00
Dillon Ngo b4477c5925 Increase memory to see if there is any performance improvement 2023-12-20 17:40:17 +08:00
Dillon Ngo ede9712513 Debug 2023-12-20 17:18:25 +08:00
Dillon Ngo 7157ce169a Fix typo 2023-12-20 16:22:28 +08:00
Dillon Ngo 937b70530c Merge branch 'dillon/51-vue-polling-experimental-1' into dillon/34-jenkins-vapor 2023-12-20 15:07:10 +08:00
Dillon Ngo 96796850b6 Merge branch 'dillon/51-vue-polling-experimental-1' into dillon/34-jenkins-vapor 2023-12-17 17:25:06 +08:00
Dillon Ngo 79d4b0b812 Merge branch 'dillon/34-jenkins-vapor' into vapor/development 2023-12-16 20:44:45 +08:00
Dillon Ngo bb79903eb9 Setup development.portal.izyim.com 2023-12-16 20:30:10 +08:00
Dillon Ngo 0d238d05e0 Resolve merge conflict 2023-12-16 20:25:24 +08:00
Dillon Ngo c7644b5f25 Setup dev.portal.izyim.com 2023-12-16 20:10:48 +08:00
Dillon Ngo 9f601a2ce1 Setup dev.portal.izyim.com 2023-12-16 20:03:10 +08:00
Dillon Ngo ffef6356f9 Setup dev.portal.izyim.com 2023-12-16 19:57:17 +08:00
edmondlang 1452cf2dee Merge branches 'development', 'development', 'master' and 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-12-13 19:08:59 +08:00
edmondlang 1e9af663ba Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-12-11 18:44:30 +08:00
Dillon Ngo ae7072b3e3 Merge branch 'dillon/45-air-shipment-2-update-with-master' into development 2023-12-11 15:26:41 +08:00
Dillon Ngo e74c26a2d4 Common method to generate signature + environment variables to store client id and secret 2023-12-11 15:24:43 +08:00
Dillon Ngo fe458f78a1 Merge branch 'dillon/34-jenkins-vapor' into vapor/production 2023-12-11 00:14:15 +08:00
Dillon Ngo 826d7288a0 Trigerring deployment 2023-12-10 23:39:42 +08:00
Dillon Ngo 54268b0683 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-12-10 22:59:59 +08:00
Dillon Ngo 3215638c87 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-12-10 22:56:24 +08:00
Dillon Ngo 4794251a0c Merge branch 'dillon/48-feedback-form-improvement' into development 2023-12-09 12:50:57 +08:00
Dillon Ngo bef2c05c06 Merge branch 'dillon/45-air-shipment-2-update-with-master' into development 2023-12-09 12:28:25 +08:00
Dillon Ngo 9384236294 Added new columns to handle multiple different kind of notification from WePost 2023-12-09 12:27:57 +08:00
Dillon Ngo 2b1100b3e9 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-12-07 17:30:35 +08:00
Dillon Ngo 34103f00cd Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-12-07 16:50:35 +08:00
Dillon Ngo a4de710b13 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-12-05 13:20:28 +08:00
Dillon Ngo 9b1ced0ade Merge branch 'dillon/45-air-shipment-update-with-master' into development 2023-12-04 01:35:45 +08:00
Dillon Ngo bc973c113c An api requested by WePost for air shipment for inbound notification - minor update on path 2023-12-04 01:35:28 +08:00
Dillon Ngo ee732eeb52 Merge branch 'dillon/45-air-shipment-update-with-master' into development 2023-12-03 00:58:01 +08:00
Dillon Ngo 77bd84f61b Implement authorization checking for external api user using api key 2023-12-03 00:56:42 +08:00
Dillon Ngo fcbb71de7e Merge branch 'master' into dillon/45-air-shipment-update-with-master 2023-12-02 23:59:55 +08:00
Dillon Ngo d4e0827600 Merge branch 'dillon/45-air-shipment' into development 2023-12-02 17:29:39 +08:00
Dillon Ngo 8532e73d26 An api requested by WePost for air shipment for inbound notification 2023-12-02 17:28:35 +08:00
Dillon Ngo efd26f9bcf Merge branch 'dillon/45-air-shipment' into development 2023-12-02 17:19:33 +08:00
Dillon Ngo 212e718377 An api requested by WePost for air shipment for inbound notification 2023-12-02 17:19:19 +08:00
Dillon Ngo c519f34bac Merge branch 'dillon/45-air-shipment' into development 2023-12-02 17:01:31 +08:00
Dillon Ngo 3098bc7d18 An api requested by WePost for air shipment for inbound notification 2023-12-02 16:59:54 +08:00
Dillon Ngo f9995d6b2d Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-30 19:33:21 +08:00
Dillon Ngo 5b5eb4b7c1 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-30 13:57:11 +08:00
Dillon Ngo c14a53a2c5 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-30 13:37:23 +08:00
Dillon Ngo 7a3610b58b Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-11-28 23:18:26 +08:00
Dillon Ngo 0bc15bf4ae Merge branch 'dillon/49-problem-with-new-registration-with-existing-credentials' into development 2023-11-28 23:18:05 +08:00
Dillon Ngo 19f0eb5e9b Try to solve a problem in user registration not working with saved credentials on Google Chrome 2023-11-28 23:17:50 +08:00
edmondlang 045dbf9d86 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-11-28 22:17:17 +08:00
Dillon Ngo 9bcf3ca343 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-27 19:29:38 +08:00
Dillon Ngo de9dc5892b Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-27 19:21:21 +08:00
Dillon Ngo 95ffac5c87 Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-11-27 19:15:55 +08:00
Dillon Ngo ab4eca6d01 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-27 19:14:48 +08:00
Dillon Ngo 4cf18d42ed Jenkinsfile update to cater for Multibranch deployment through Jenkins + staging.portal.izyim.com setup 2023-11-27 12:17:44 +08:00
Dillon Ngo 1f11ad0a09 Jenkinsfile update to cater for Multibranch deployment through Jenkins + staging.portal.izyim.com setup 2023-11-27 12:01:30 +08:00
Dillon Ngo c95b82520a Jenkinsfile update to cater for Multibranch deployment through Jenkins + staging.portal.izyim.com setup 2023-11-27 11:48:47 +08:00
Dillon Ngo 7435ad9c4a Jenkinsfile update to cater for Multibranch deployment through Jenkins + staging.portal.izyim.com setup 2023-11-27 11:46:21 +08:00
edmondlang d2b7cf3e1b Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-11-26 23:45:51 +08:00
edmondlang 1a1c40338c Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-11-26 22:21:20 +08:00
edmondlang 58a086ea46 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-11-26 22:01:36 +08:00
JiaSheng 8b8edeab36 Merge branch 'centralize-izyim-exchange' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Orders/ControllersLogic/CreateOrderLogic.php
2023-11-24 17:30:29 +08:00
Dillon Ngo 0783ccfb58 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-24 13:44:44 +08:00
Dillon Ngo 1e3a3db02e Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-24 02:29:52 +08:00
Dillon Ngo f47d579070 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-24 00:33:25 +08:00
JiaSheng 4c3dead6b7 -Merge branch 'master' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into centralize-izyim-exchange
-update for dev environment
2023-11-22 16:19:40 +08:00
Dillon Ngo f06019d2b5 Update domain to production.portal.izyim.com 2023-11-22 15:08:40 +08:00
Dillon Ngo d61aea9956 Merge branch 'dillon/48-feedback-form-improvement' into development 2023-11-22 03:25:05 +08:00
Dillon Ngo d8762bf0f2 Merge branch 'dillon/48-feedback-form-improvement' into development 2023-11-22 03:15:28 +08:00
Dillon Ngo 3c567f2161 Merge branch 'dillon/48-feedback-form-improvement' into development 2023-11-21 19:41:45 +08:00
Dillon Ngo acf7000580 Merge branch 'dillon/48-feedback-form-improvement' into development 2023-11-21 19:30:02 +08:00
Dillon Ngo 20de400c16 Merge branch 'dillon/48-feedback-form-improvement' into development 2023-11-21 16:37:44 +08:00
JiaSheng 575379adc0 centralize izyim exchange 2023-11-19 17:14:39 +08:00
Dillon Ngo ce2af28766 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-17 17:01:28 +08:00
Dillon Ngo 74f4cfda0c Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-16 23:05:18 +08:00
Dillon Ngo 16682965f9 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-09 08:34:58 +08:00
Dillon Ngo 96dc482422 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-04 17:12:52 +08:00
Dillon Ngo 0eb0f7805b Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-04 16:41:38 +08:00
Dillon Ngo e92cd13bf8 Merge branch 'dillon/46-warehouse-storage-charges' into development 2023-11-04 15:10:11 +08:00
edmondlang 1d3ab46cc7 Merge branch 'add-delivery-order-to-invoice' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-27 09:16:42 +08:00
edmondlang f54b451ac4 Merge branch 'add-delivery-order-to-invoice' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-27 08:56:09 +08:00
Dillon Ngo a59508087c Merge branch 'dillon/46-warehoue-storage-charges' into development 2023-10-27 04:19:30 +08:00
edmondlang 012ead1a8f Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/General/Eloquent/Filters/OwnerType.php
2023-10-24 01:06:26 +08:00
Dillon Ngo 52d9a6de14 Test deployment 2023-10-21 07:56:50 +08:00
Dillon Ngo 50c4ff7388 Fix error from Jenkins deployment 2023-10-21 07:18:56 +08:00
Dillon Ngo a50a0961bf Test deployment 2023-10-21 07:04:46 +08:00
edmondlang f865cd7180 Merge branch 'wallet-audit' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-20 16:26:37 +08:00
edmondlang 8d4f05cd50 Merge branches 'development' and 'wallet-audit' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-20 16:22:43 +08:00
edmondlang 40371a9225 Merge branch 'wallet-audit' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-20 16:02:21 +08:00
edmondlang 086f5f79ad test code 2023-10-20 15:44:47 +08:00
edmondlang 5bb6c44967 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-20 15:14:45 +08:00
edmondlang 15a4c8dc25 Merge branch 'wallet-audit' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-20 15:10:22 +08:00
edmondlang fcd7fa655c Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-19 22:55:05 +08:00
edmondlang bd4598fac0 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-19 13:24:13 +08:00
edmondlang 746f38a4f9 Merge branch 'wallet-audit' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Billplzs/ControllersLogic/CallbackBillplzLogic.php
2023-10-19 12:48:57 +08:00
Steve Ng ab4d01c728 Merge branch 'steve/aging-listing' into development 2023-10-18 08:50:01 +08:00
Dillon 4c47d88440 Merge branch 'dillon/44-quick-undo' into development 2023-10-16 13:26:16 +08:00
Dillon 7ef3580b1b Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-16 01:10:17 +08:00
Dillon 1b04d25a81 Merge branch 'dillon/44-customer-satisfaction-feedback-project-b' into development 2023-10-16 01:10:03 +08:00
edmondlang a8c54abdd9 Merge branch 'add-delivery-order-to-invoice' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-09 20:39:11 +08:00
edmondlang 14c2ed8d89 Merge branch 'add-delivery-order-to-invoice' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	routes/web.php
2023-10-09 20:32:46 +08:00
edmondlang d5143dfbe3 Merge branch 'add-delivery-order-to-invoice' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-08 22:07:53 +08:00
Dillon ad4675369e Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-08 18:59:00 +08:00
Dillon 4b4c953b36 Merge branch 'dillon/44-customer-satisfaction-feedback-project-b' into development 2023-10-08 17:24:13 +08:00
Dillon 2dbf05d0dc Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-08 16:56:51 +08:00
Dillon 55f18ebafc Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-08 05:26:11 +08:00
Dillon 9f25b49b8c Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-08 05:14:23 +08:00
Dillon 793cde03ac Merge branch 'dillon/44-customer-satisfaction-feedback-project-e' into development 2023-10-08 05:07:09 +08:00
Dillon 58daaa6095 Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-08 04:59:02 +08:00
Dillon dd82f624c5 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-08 04:58:46 +08:00
edmondlang 9f4cbd48f7 Merge branch 'add-delivery-order-to-invoice' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-07 17:57:43 +08:00
Dillon af34391b58 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-07 08:43:04 +08:00
Dillon 4680b2d634 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-07 08:13:05 +08:00
Dillon 0d3ae2941c Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-07 07:35:33 +08:00
Dillon e15c61e139 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-07 07:24:23 +08:00
Dillon 4907b8269e Merge branch 'dillon/44-customer-satisfaction-feedback-project-b' into development 2023-10-05 19:59:06 +08:00
Dillon f7124dc0e1 Merge branch 'dillon/44-customer-satisfaction-feedback-project-b' into development 2023-10-05 17:31:18 +08:00
Dillon 9e455f8fc7 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-05 16:41:36 +08:00
Dillon 3e72fb78d3 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-04 01:35:07 +08:00
Dillon 85a1605182 Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-10-04 01:05:26 +08:00
Dillon a17ed000e1 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-10-04 01:04:20 +08:00
omair saleh 3cc14e1e14 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into 'development'
change ui for feedback answers to use columns instead of rows

See merge request CIEFWorldwideSdnBhd/shipping-portal!173
2023-10-03 08:14:53 +00:00
omair saleh 40e074c57a Merge branch 'dillon/44-customer-satisfaction-feedback-project' into 'development'
change ui for feedback answers to use columns instead of rows

See merge request CIEFWorldwideSdnBhd/shipping-portal!172
2023-10-03 06:11:00 +00:00
omair saleh ab7a9bf144 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into 'development'
change ui for feedback answers to use columns instead of rows

See merge request CIEFWorldwideSdnBhd/shipping-portal!171
2023-10-03 05:55:50 +00:00
Dillon fd1a8447fc Merge branch 'dillon/44-customer-satisfaction-feedback-project-b' into development 2023-10-01 00:34:21 +08:00
Dillon efa7657125 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-30 18:45:49 +08:00
Dillon 941da8c68d Merge branch 'dillon/44-customer-satisfaction-feedback-project-a' into development 2023-09-30 17:06:53 +08:00
Dillon 35aa074c41 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-29 02:11:39 +08:00
Dillon 5208c654ad Jenkins Vapor initial commit 2023-09-26 20:35:53 +08:00
Dillon 883afbe04f Jenkins Vapor initial commit 2023-09-26 20:27:20 +08:00
Dillon 16c45a36d2 Jenkins Vapor initial commit 2023-09-26 20:24:15 +08:00
Dillon d3299aee60 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-25 10:56:05 +08:00
Dillon c90d994317 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-23 18:08:06 +08:00
Dillon 8dc6c4ebdc Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-23 16:53:28 +08:00
Dillon 4dce3a7915 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-23 16:48:15 +08:00
Dillon 3f07b410b9 Merge branch 'dillon/44-customer-satisfaction-feedback-project-a' into development 2023-09-21 21:31:38 +08:00
Dillon 7db02b7688 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-21 20:35:52 +08:00
Dillon 7f8e0b1712 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-21 08:04:45 +08:00
Dillon 973c0f0924 Merge branch 'dillon/44-customer-satisfaction-feedback-project' into development 2023-09-21 00:47:31 +08:00
edmondlang 7d156503fc Merge branch 'wallet-credit-note' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-09-15 18:42:49 +08:00
edmondlang f38ed3be84 Merge branch 'wallet-credit-note' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-09-15 18:37:24 +08:00
edmondlang 58dee4883b Merge branch 'wallet-credit-note' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-09-15 18:32:53 +08:00
edmondlang 0e83fba98c Merge branch 'wallet-credit-note' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-09-15 18:03:59 +08:00
edmondlang 1fbe8e61cb Merge branch 'wallet-credit-note' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Models/CompanyModule.php
2023-09-15 17:41:48 +08:00
Dillon 8307871aba Merge branch 'dillon/42-crm-code-sync-with-exchange-b' into development 2023-08-24 04:53:06 +08:00
Dillon 71ed6b9950 Merge branch 'dillon/42-crm-code-sync-with-exchange-a' into development 2023-08-20 15:58:13 +08:00
Dillon 3e3e19bed3 Merge branch 'dillon/42-crm-code-sync-with-exchange-a' into development 2023-08-20 05:31:12 +08:00
Dillon aff9e35623 Merge branch 'dillon/42-crm-code-sync-with-exchange-a' into development 2023-08-18 12:56:32 +08:00
Dillon 67e7f72f63 Merge branch 'dillon/42-crm-code-sync-with-exchange' into development 2023-08-17 21:49:56 +08:00
Dillon f55beaff5f Merge branch 'dillon/42-crm-code-sync-with-exchange' into development 2023-08-17 21:35:51 +08:00
edmondlang 52083ee48a Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-08-03 14:30:59 +08:00
edmondlang f4f652aa97 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Console/Kernel.php
2023-08-03 13:48:41 +08:00
edmondlang 43ccdd0700 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-07-18 12:55:36 +08:00
edmondlang c7ce382424 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-07-09 22:01:49 +08:00
edmondlang e9c3cf8f33 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-07-09 21:55:15 +08:00
edmondlang ffede58dde Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-06-29 14:50:07 +08:00
edmondlang 9ff00a3df2 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-06-22 13:42:11 +08:00
edmondlang 7b8eadd5d1 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Transactions/ControllersLogic/DeleteGroupLogic.php
2023-05-19 21:28:05 +08:00
Martin Maina Kiragu 9d130e1531 Merge branch 'dev' into 'development'
Dev

See merge request CIEFWorldwideSdnBhd/shipping-portal!165
2023-05-16 15:14:45 +00:00
Martin Kiragu 893d10c7f6 fix conflict issue 2023-05-16 17:47:05 +03:00
edmondlang 68257952ab Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-05-15 20:48:43 +08:00
edmondlang 07a7901844 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-05-10 23:01:50 +08:00
edmondlang 91fcb76863 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-05-10 13:39:27 +08:00
edmondlang cac02b8ebe Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-05-10 13:13:32 +08:00
edmondlang 4370ba2f9c Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-05-08 13:14:45 +08:00
Dillon 41db8f57f5 Merge branch 'dillon/crisp-help-menu-2' into development 2023-05-04 15:42:53 +08:00
Dillon 3497de9727 Merge branch 'dillon/crisp-help-menu' into development 2023-05-04 15:23:54 +08:00
Martin Maina Kiragu 14a4c37fee Merge branch 'feature/reddis' into 'dev'
reddis-predis config and remove the unit test action

See merge request CIEFWorldwideSdnBhd/shipping-portal!164
2023-05-02 05:19:17 +00:00
Martin Kiragu f27e0aa8c6 reddis-predis config and remove the unit test action 2023-05-02 08:17:06 +03:00
Martin Maina Kiragu 5c109d625c Merge branch 'system/transformers' into 'dev'
System/transformers

See merge request CIEFWorldwideSdnBhd/shipping-portal!163
2023-05-02 05:02:59 +00:00
edmondlang 965dfb3098 Merge branch 'multi-payment-final' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Billplzs/ControllersLogic/CallbackBillplzLogic.php
#	app/Classes/ValueObjects/Constants/TransactionType.php
#	routes/web.php
2023-04-28 18:26:33 +08:00
edmondlang d6fad96d4d add robot.txt 2023-04-28 00:17:00 +08:00
edmondlang 351447b1fc Merge branch 'list-order-v2' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-25 23:40:47 +08:00
Martin Kiragu a9910c5a12 GroupTransformer 2023-04-24 21:26:35 +03:00
Martin Kiragu 4bee415d2d DeliveryPackingListTransformer transformer updated 2023-04-24 21:08:29 +03:00
Martin Kiragu 02f7adb1e9 DeliveryOrderTransformer added 2023-04-24 21:02:39 +03:00
Martin Kiragu 039a6155ca addation of DeliverPackingListTransformer 2023-04-24 20:51:30 +03:00
Martin Kiragu c8d806a51d updated all resource transformers optionally required by the container transformer 2023-04-24 16:50:53 +03:00
Martin Kiragu 4dbaf6a5dc added ContainerTransformer and its optional relationships 2023-04-24 15:57:31 +03:00
Martin Kiragu fcc0135843 ContactResource with ContactTransformer 2023-04-24 14:35:22 +03:00
Martin Kiragu 4a922ac340 add company transformer with multiple optional relationship loader 2023-04-24 14:29:46 +03:00
Martin Kiragu c4d421db76 add a todo to delete the BookingResource not used anywhere 2023-04-24 14:01:36 +03:00
Martin Kiragu 2816e80bee Bank Account Transformer 2023-04-24 13:56:00 +03:00
Martin Kiragu 466e90a0af Build a AnnouncementTransformer for uniformity and future relationships updates 2023-04-24 13:50:20 +03:00
Martin Kiragu 5e6ae2a905 add backend conditional relationship loading on the AddressResource/AddressTransformer 2023-04-24 13:43:47 +03:00
edmondlang 3378d37ffb Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-19 12:53:50 +08:00
edmondlang fff3d948d0 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Orders/ControllersLogic/CreateOrderLogic.php
2023-04-18 23:44:36 +08:00
Dillon c181882145 Merge branch 'dillon/improvement-1' into development 2023-04-15 21:57:58 +08:00
edmondlang 2a333f7d19 Merge branch 'order-v2' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-13 16:09:37 +08:00
edmondlang 8f8622aa10 Merge branch 'order-v2' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-13 16:05:38 +08:00
edmondlang f88936c873 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-13 16:01:45 +08:00
Dillon 20f3004e22 Merge branch 'dillon/accounting-bank-mapping' into development 2023-04-06 22:59:39 +08:00
edmondlang fd4bbe5d4f Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-06 19:25:35 +08:00
edmondlang a630b49867 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-06 14:25:33 +08:00
edmondlang 75ce5bd752 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-06 00:08:24 +08:00
edmondlang abb7bc2e4c Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-04-05 23:50:22 +08:00
edmondlang 857003b25b update code conflict 2023-04-02 11:45:58 +08:00
edmondlang 551119e313 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/ValueObjects/Constants/TransactionType.php
#	routes/web.php
2023-04-02 11:41:55 +08:00
edmondlang b567f50711 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-31 00:42:03 +08:00
edmondlang 395b15af90 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	routes/api.php
2023-03-31 00:32:46 +08:00
edmondlang 833ffdab8d Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-30 15:18:00 +08:00
edmondlang 2f6a30a512 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-30 14:38:15 +08:00
edmondlang 4c433f74f1 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-30 12:53:00 +08:00
Dillon 852da05e24 Merge branch 'dillon/debug-and-fixes-2' into development 2023-03-30 06:00:12 +08:00
Dillon 1658b65484 A quick fix 2023-03-28 23:42:59 +08:00
Dillon 8e9ff0cad5 Merge branch 'dillon/crm-create-task-3-26' into development 2023-03-28 23:36:35 +08:00
edmondlang acee1a7884 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-28 16:17:14 +08:00
edmondlang 0079d745ba Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-26 22:48:42 +08:00
Dillon 0bd3464184 Merge branch 'dillon/crm-create-task-3-26' into development 2023-03-25 14:20:49 +08:00
Dillon 7ec1bc65a5 Merge branch 'dillon/crm-create-task-3-26' into development 2023-03-25 02:18:03 +08:00
Dillon c401d1e0d5 Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-24 15:15:32 +08:00
Dillon a2983ec9f1 Merge branch 'dillon/crm-create-task-3-26' into development 2023-03-24 15:15:15 +08:00
Martin Maina Kiragu 2421640c0a Merge branch 'feature/dashboard_optimization' into 'development'
Feature/dashboard optimization

See merge request CIEFWorldwideSdnBhd/shipping-portal!156
2023-03-24 03:48:40 +00:00
Martin Kiragu 7dae2228f6 fix ide-autospace formatting 2023-03-24 06:34:04 +03:00
Martin Kiragu 75039466ab fix ide-autospace formatting 2023-03-24 06:28:53 +03:00
Martin Kiragu f3df5fbe9f fix ide-autospace formatting 2023-03-24 06:13:35 +03:00
Martin Kiragu 362e47aaa0 fix ide-autospace formatting 2023-03-24 06:04:28 +03:00
Martin Kiragu ba26cda598 switched the Modal resources to Transformers for /document/lists endpoint 2023-03-24 05:51:32 +03:00
Dillon 8995a567d5 Merge branch 'dillon/crm-create-task-3-26' into development 2023-03-24 03:16:47 +08:00
Dillon 5eeec7806b Merge branch 'dillon/crm-create-task-3-26' into development 2023-03-23 04:31:47 +08:00
Dillon fd46a4fb7f Merge branch 'dillon/crm-create-task-3-26' into development 2023-03-23 04:18:38 +08:00
Dillon 1100267316 Merge branch 'dillon/crm-create-task-3-26' into development 2023-03-22 22:23:43 +08:00
edmondlang e133f1fab8 Merge branch 'multi-payment-final' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-21 17:38:35 +08:00
edmondlang 5d5892ce07 Merge branch 'multi-payment-final' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	routes/transaction.php
2023-03-21 14:13:20 +08:00
edmondlang b26700ea6f Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-20 18:08:50 +08:00
Dillon 589c2e01d9 Merge branch 'dillon/debug-and-fixes-1' into development 2023-03-19 22:32:53 +08:00
Dillon 9cf6058a65 Merge branch 'dillon/debug-and-fixes-1' into development 2023-03-19 17:34:52 +08:00
Dillon ff4d81966c Merge branch 'dillon/debug-and-fixes-1' into development 2023-03-19 16:39:40 +08:00
Martin Kiragu a4891aa0de added a debugber optional paramenter for addational resource on ListDocument resource 2023-03-19 06:31:44 +03:00
Martin Kiragu 05ba0ba6fd update fix conflicts 2023-03-19 04:41:40 +03:00
Martin Kiragu 9217970237 update helpers 2023-03-19 04:38:24 +03:00
Dillon 828f424cfd Merge branch 'dillon/crm-invoice-update-23' into development 2023-03-19 04:50:46 +08:00
Dillon 057ca8480b Merge branch 'dillon/crm-invoice-update-23' into development 2023-03-19 04:30:36 +08:00
edmondlang d07901f31b Merge branch 'multi-payment-final' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	app/Classes/Modules/Billplzs/ControllersLogic/CallbackBillplzLogic.php
#	routes/web.php
2023-03-18 23:36:37 +08:00
Dillon c22638b29e Merge branch 'dillon/debug-and-fixes-1' into development 2023-03-17 17:36:56 +08:00
Martin Kiragu c292bfd1e0 extract repeated queries on MonthlyReport Controller and Add a global Library helper.php file 2023-03-13 09:21:51 +03:00
edmondlang 85942eff1d Merge branch 'multi-payment-final' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-12 23:27:57 +08:00
edmondlang d69896f807 Merge branch 'multi-payment-final' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-12 23:13:58 +08:00
Dillon 2c5c97488f Merge branch 'dillon/crm-tasks-department' into development 2023-03-12 17:38:48 +08:00
Dillon 99e38b96ce Merge branch 'dillon/crm-create-task-2' into development 2023-03-11 16:34:04 +08:00
Dillon 81a00a8195 Merge branch 'dillon/crm-create-task-2' into development 2023-03-10 21:14:00 +08:00
Dillon dbab7a9f8c Merge branch 'dillon/crm-feed-improvement-1' into development 2023-03-10 17:59:34 +08:00
Dillon 046676d174 Merge branch 'dillon/crm-create-task-2' into development 2023-03-10 02:52:53 +08:00
edmondlang 2b4f1ad570 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-08 14:34:36 +08:00
Dillon bcb78f2392 undo debug logs 2023-03-06 16:00:58 +08:00
Dillon 345a62fec6 debug 2023-03-06 15:54:57 +08:00
Dillon 6257b11a6e Merge branch 'dillon/crm-create-invoice' into development 2023-03-06 15:13:17 +08:00
Dillon 4b124ca96d Merge branch 'dillon/crm-create-invoice' into development 2023-03-05 20:30:04 +08:00
Martin Kiragu 4b25764fb3 Merge branch 'development' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-03 06:29:16 +03:00
Martin Kiragu 422a0af465 move all UI related tests to codeception tets 2023-03-03 06:28:45 +03:00
edmondlang c73d65343b Merge branch 'update-create-dilivery-address' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-02 23:38:33 +08:00
edmondlang 9e5784b6ec update force create order delivery address 2023-03-02 23:38:12 +08:00
edmondlang 9a863e2143 Merge branch 'update-create-dilivery-address' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-02 23:18:12 +08:00
edmondlang 8024865d5d create order with force enter billing address 2023-03-02 23:17:42 +08:00
Martin Kiragu 66abe81e73 Merge remote-tracking branch 'origin/development' into development 2023-03-02 12:24:07 +03:00
Martin Kiragu ca178e1b31 add HasFactory facade to Users model 2023-03-02 12:23:49 +03:00
edmondlang e52a27aedb Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-02 17:06:55 +08:00
Martin Kiragu 6c2c28fb31 rerun UI build on the test job 2023-03-02 11:58:09 +03:00
Martin Kiragu 049da351ef Merge remote-tracking branch 'origin/development' into development 2023-03-02 11:28:03 +03:00
Martin Kiragu 0ce8709f70 reduplicate mysql service for unit test job 2023-03-02 11:27:25 +03:00
edmondlang 1e5609bb1b Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-02 16:26:11 +08:00
edmondlang 8e7970a925 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-03-02 16:16:23 +08:00
Martin Kiragu 06b2c5166d remove dependencies test and add reruns 2023-03-02 11:01:10 +03:00
Martin Kiragu 6ba3b873a2 add building assets and dependencies test 2023-03-02 10:47:45 +03:00
Martin Kiragu 623fb1609b switch dependencies with an installation rerun 2023-03-02 10:29:40 +03:00
Martin Kiragu 24be20a60d switch dependencies with an installation rerun 2023-03-02 10:17:30 +03:00
Martin Kiragu 3535201481 remove test dependency injection 2023-03-02 10:04:09 +03:00
Martin Kiragu cdefd48d26 remove pdo echo 2023-03-02 09:50:44 +03:00
Martin Kiragu 45fbcf1447 pdo addition 2023-03-02 09:42:49 +03:00
Martin Kiragu 53805f3608 add database test 2023-03-02 09:20:02 +03:00
Martin Kiragu 99e90ad357 update remove pdo and mysql extension 2023-03-02 09:03:28 +03:00
Martin Kiragu 5edb9b5cfe add node and gulp builds 2023-03-02 08:58:23 +03:00
Martin Kiragu 86a5a3b2d9 add migration and seeder 2023-03-02 08:37:38 +03:00
Martin Kiragu a6590e3b81 test set up on the set up job 2023-03-02 08:31:14 +03:00
Martin Kiragu b1bb2b9f33 add .env.example to the env file 2023-03-02 08:25:04 +03:00
Dillon 9318e7471f Merge branch 'dillon/crm-create-task' into development 2023-03-01 12:36:15 +08:00
Martin Maina Kiragu e19ba1c9f3 Merge branch 'feature/TDD' into 'development'
Feature/tdd

See merge request CIEFWorldwideSdnBhd/shipping-portal!140
2023-03-01 03:54:54 +00:00
edmondlang 8cffae079b test approve invoice 2023-02-28 14:46:04 +08:00
edmondlang 594b25b71b temporary disable all other cron on development server 2023-02-28 14:29:04 +08:00
edmondlang d142a86683 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-28 14:23:11 +08:00
edmondlang 935f3e9bf5 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-27 15:59:49 +08:00
edmondlang dedd6464f4 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-24 18:08:22 +08:00
edmondlang 38aba65178 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-23 14:53:41 +08:00
Dillon 091119c244 Merge branch 'dillon/crm-integration' into development 2023-02-22 18:09:51 +08:00
Dillon 4d095b5459 Merge branch 'development' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-22 17:10:08 +08:00
Dillon 1c50181132 Merge branch 'dillon/crm-integration' into development 2023-02-22 10:37:19 +08:00
edmondlang 9e26c470f5 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-21 23:54:08 +08:00
edmondlang 4c0bf164a0 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-21 23:43:18 +08:00
edmondlang 8ab7f72e90 reverse invoice search function 2023-02-21 23:42:00 +08:00
edmondlang 5772e30575 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-21 23:41:19 +08:00
edmondlang 4b2daa62d7 test auto generate invoice function 2023-02-21 17:32:20 +08:00
edmondlang 2bd8700a61 Merge branch 'auto-generate-invoice' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-21 16:50:42 +08:00
edmondlang ad7e77c169 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-21 15:01:09 +08:00
edmondlang e95c41bd3e Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-20 19:51:11 +08:00
edmondlang 903269e714 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-20 18:22:48 +08:00
edmondlang 4120a50559 commented on the web routes and api routes to test on the crm 2023-02-18 23:09:24 +08:00
Dillon 88b31f2d3f Merge branch 'dillon/crm-integration' into development 2023-02-18 21:08:08 +08:00
Dillon a2f9bf83ce Merge branch 'dillon/crm-integration' into development 2023-02-18 20:29:57 +08:00
Dillon dd2ac4c966 Merge branch 'dillon/crm-integration' into development 2023-02-18 20:09:08 +08:00
Dillon c88f6890d6 Merge branch 'dillon/crm-integration' into development 2023-02-17 09:24:38 +08:00
edmondlang bf4b3fa97f Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-16 23:13:22 +08:00
edmondlang 6bcea5a8f1 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-16 16:53:12 +08:00
Martin Maina Kiragu 2704ec1665 Merge branch 'feature/pipeline' into 'development'
Update .gitlab-ci.yml file

See merge request CIEFWorldwideSdnBhd/shipping-portal!144
2023-02-13 07:28:57 +00:00
Martin Maina Kiragu 0c636d2156 remove spaces on Export warehouse service 2023-02-13 05:17:03 +00:00
Martin Kiragu 1270ba3f43 delete the code ide-helper file 2023-02-13 08:08:06 +03:00
Martin Kiragu f2c32c5024 fix more spaces 2023-02-13 08:07:11 +03:00
Martin Kiragu ccb3bde260 clean up spaces on my branch 2023-02-13 08:01:23 +03:00
Martin Kiragu a7eb14c2b7 Merge branch 'feature/TDD' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into feature/TDD 2023-02-13 07:37:01 +03:00
Martin Kiragu abac96b1e5 revert all models changes 2023-02-13 07:36:40 +03:00
Martin Maina Kiragu ecb48c8897 Merge branch 'master' into 'feature/TDD'
# Conflicts:
#   config/app.php
2023-02-13 04:24:32 +00:00
Martin Maina Kiragu 2686229a0f Merge branch 'master' into 'feature/pipeline'
# Conflicts:
#   config/app.php
2023-02-13 04:12:19 +00:00
Martin Kiragu 558fa7ae52 remove migration and seeder 2023-02-13 06:49:08 +03:00
Martin Kiragu 88e2136c07 add cp .env 2023-02-13 06:47:58 +03:00
Martin Kiragu 70cdcded9b generate key, run migration and database seeder 2023-02-13 06:40:02 +03:00
Martin Kiragu 4022b640f9 test by rerunning the install 2023-02-13 06:31:05 +03:00
Martin Kiragu 0d780074b8 vender test to php 2023-02-13 06:23:53 +03:00
Martin Kiragu 078f675a7f add codeception and change vender test to php 2023-02-13 06:20:42 +03:00
Martin Kiragu 2b48a86f98 comment the Meneses\LaravelMpdf\LaravelMpdfServiceProvider 2023-02-13 06:11:41 +03:00
Martin Maina Kiragu 19f3aa18fc Update .gitlab-ci.yml file
add libzip
2023-02-13 03:07:34 +00:00
Martin Maina Kiragu 2b4c932fc8 Update .gitlab-ci.yml file
add libzip
2023-02-13 03:05:29 +00:00
Martin Maina Kiragu 89f0ca651a Update .gitlab-ci.yml file
add libzip
2023-02-13 03:01:07 +00:00
Martin Maina Kiragu c9fc5938c6 Update .gitlab-ci.yml file
add libzip
2023-02-13 02:55:41 +00:00
Martin Maina Kiragu 2ad8235c1b Update .gitlab-ci.yml file
add libzip
2023-02-13 02:53:22 +00:00
Martin Maina Kiragu dbf8301cb9 Update .gitlab-ci.yml file
add libzip
2023-02-13 02:49:27 +00:00
Martin Maina Kiragu 7d582c6bca Update .gitlab-ci.yml file
add libzip
2023-02-13 02:48:30 +00:00
Martin Maina Kiragu 3c4b6afcb2 Update .gitlab-ci.yml file
add zip
2023-02-13 02:46:21 +00:00
Martin Maina Kiragu e4bc56d188 Update .gitlab-ci.yml file 2023-02-13 02:44:10 +00:00
Martin Maina Kiragu 9a448d5a3d Update .gitlab-ci.yml file 2023-02-13 02:41:24 +00:00
Martin Maina Kiragu 5c1074b244 Update .gitlab-ci.yml file 2023-02-13 02:38:49 +00:00
Martin Maina Kiragu 49fcdfd89e Update .gitlab-ci.yml file 2023-02-13 02:36:51 +00:00
Martin Maina Kiragu c900759234 Update .gitlab-ci.yml file 2023-02-13 02:30:15 +00:00
Martin Maina Kiragu cd3b47ab1a Update .gitlab-ci.yml file 2023-02-13 02:26:31 +00:00
Martin Maina Kiragu c5f95cdf61 Update .gitlab-ci.yml file 2023-02-13 02:22:31 +00:00
Martin Maina Kiragu cc428a92b8 Update .gitlab-ci.yml file 2023-02-13 02:08:09 +00:00
Martin Maina Kiragu 97bac45612 Update .gitlab-ci.yml file 2023-02-13 02:03:30 +00:00
Martin Maina Kiragu 8048396a88 Update .gitlab-ci.yml file 2023-02-13 01:59:14 +00:00
Martin Maina Kiragu 400ec31235 Update .gitlab-ci.yml file 2023-02-13 01:54:53 +00:00
Martin Maina Kiragu 4d9346c62c Update .gitlab-ci.yml file 2023-02-13 01:49:47 +00:00
Martin Maina Kiragu 94fd2069e8 Update .gitlab-ci.yml file 2023-02-13 01:43:41 +00:00
Martin Maina Kiragu 1f401eb347 Update .gitlab-ci.yml file 2023-02-13 01:39:09 +00:00
Martin Maina Kiragu 80e282bda0 Update .gitlab-ci.yml file 2023-02-13 01:35:00 +00:00
Martin Maina Kiragu 65cd6aae3c Update .gitlab-ci.yml file 2023-02-13 01:33:05 +00:00
Martin Maina Kiragu eba2a30024 Update .gitlab-ci.yml file 2023-02-13 01:28:16 +00:00
Martin Maina Kiragu c103deb2a7 Update .gitlab-ci.yml file 2023-02-13 01:25:16 +00:00
Martin Maina Kiragu dcef782587 Update .gitlab-ci.yml file
--update to php 7.4
2023-02-13 01:22:54 +00:00
Martin Maina Kiragu 10e7da4673 Update .gitlab-ci.yml file 2023-02-13 01:15:20 +00:00
Martin Kiragu faff35f241 update the pipeline with master branch code 2023-02-13 04:07:33 +03:00
Martin Maina Kiragu e2c1562f19 Update .gitlab-ci.yml file 2023-02-13 00:57:12 +00:00
Martin Maina Kiragu df35ceb798 Update .gitlab-ci.yml file 2023-02-13 00:51:03 +00:00
Martin Maina Kiragu cdb81a0bf4 Update .gitlab-ci.yml file 2023-02-13 00:48:41 +00:00
Martin Maina Kiragu f1b1955190 Update .gitlab-ci.yml file 2023-02-13 00:42:05 +00:00
Martin Maina Kiragu 860632b7a3 Update .gitlab-ci.yml file 2023-02-13 00:39:49 +00:00
Martin Maina Kiragu bde7a61fb4 Update .gitlab-ci.yml file 2023-02-13 00:35:42 +00:00
edmondlang b6600c5168 Merge branch 'update-laravelmpdf' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-10 20:56:42 +08:00
edmondlang 25f38ef7fe Merge branches 'development' and 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-07 23:40:38 +08:00
edmondlang ddeb44b920 Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-07 23:32:35 +08:00
Martin Maina Kiragu 02be710203 Update .gitlab-ci.yml file try php 7.3 2023-02-06 16:14:50 +00:00
Martin Maina Kiragu 2ffbfc9f1c Update .gitlab-ci.yml file 2023-02-06 16:12:41 +00:00
Martin Maina Kiragu 7b34f8116c Update .gitlab-ci.yml file 2023-02-06 16:09:41 +00:00
Martin Maina Kiragu 8a9b6df255 Update .gitlab-ci.yml file 2023-02-06 16:04:42 +00:00
Martin Kiragu c881dd44d6 updated action file 2023-02-06 18:38:12 +03:00
Martin Kiragu 1cfaeaf8bb add triggers 2023-02-06 18:28:46 +03:00
Martin Kiragu 914f29184d simple pipeline configuration 2023-02-06 18:23:51 +03:00
edmondlang f510d57463 Merge branch 'change-company-ui' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-06 23:08:03 +08:00
edmondlang 7833c17938 Merge branch 'change-company-ui' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-06 23:02:43 +08:00
edmondlang 97fdffe6eb Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-06 22:46:53 +08:00
edmondlang b1f2900f1c Merge branch 'change-company-ui' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-06 22:25:33 +08:00
edmondlang ddf015dc71 Revert "work on combine invoices"
This reverts commit 2a9d4fd212.
2023-02-06 22:24:48 +08:00
Sheikh Ahmer 2a9d4fd212 work on combine invoices 2023-02-04 16:36:09 +05:00
Martin Kiragu 2cacc23a38 login acceptance test 2023-02-04 10:04:34 +03:00
Martin Kiragu a7fd5a038e Merge branch 'master' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into feature/TDD 2023-02-04 07:53:45 +03:00
edmondlang 626b31084f Merge branch 'wip-invoice-tab' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-02-03 16:11:48 +08:00
Martin Kiragu 4f3c25d5bd Merge branch 'master' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into feature/TDD 2023-01-29 10:51:30 +03:00
Martin Kiragu 8da942e41e updated list of all user, passwords and emails unit tests 2023-01-28 12:56:41 +03:00
edmondlang b599c8a151 Merge branch 'multi-invoice-combined-ui' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-01-20 17:15:25 +08:00
Martin Kiragu d41f796825 fix access_token issue 2023-01-20 10:39:39 +03:00
Martin Kiragu dd612e2660 fix issues 2023-01-19 12:12:54 +03:00
Martin Kiragu c503b5e677 acceptance test set up and demo 2023-01-19 12:03:09 +03:00
Martin Kiragu 0b433cfa18 ed debug 2023-01-19 09:39:16 +03:00
Martin Kiragu 75aba8c4ac remove password related tests on auth test class 2023-01-19 09:39:16 +03:00
Martin Kiragu 81c65874a3 added the Auth tdd and a modal property autogenerator helpers 2023-01-19 09:39:15 +03:00
Martin Kiragu 79d29d9c7b Authentication TDD 2023-01-19 09:39:15 +03:00
Martin Kiragu 1e558b93af set up testig env codeception laravela and phpunit 2023-01-19 09:39:15 +03:00
edmondlang 6d3d52639e Merge branch 'multi-invoice-combined-ui' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-01-19 00:33:37 +08:00
edmondlang a1d460aa6c Merge branch 'multi-invoice-combined-ui' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-01-19 00:20:38 +08:00
edmondlang 5a0bc7aaea Merge branch 'multi-invoice-combined-ui' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development
# Conflicts:
#	resources/views/pages/pdfs/shipping_invoices_combined.blade.php
2023-01-18 23:59:58 +08:00
Martin Kiragu c7962b4231 ed debug 2023-01-18 18:34:18 +03:00
Martin Kiragu d14bb39ae8 remove password related tests on auth test class 2023-01-18 09:11:30 +03:00
Martin Kiragu 5cc2f51c02 added the Auth tdd and a modal property autogenerator helpers 2023-01-18 08:17:05 +03:00
Martin Kiragu a185f73e8a Authentication TDD 2023-01-16 14:40:57 +03:00
edmondlang f9a9598210 Merge branch 'dillon/search-marking-by-email' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-01-15 14:20:38 +08:00
edmondlang 9976ccec41 Merge branch 'ChangeCompanie' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-01-11 22:39:58 +08:00
edmondlang 8bfb2d749a Merge branch 'dillon/multiple-invoices-combined' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into development 2023-01-11 18:25:28 +08:00
Martin Kiragu 7bf9a570a1 set up testig env codeception laravela and phpunit 2023-01-11 12:44:32 +03:00
edmondlang b38df170e8 Merge branch 'multiple-payment-ui' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into development 2023-01-09 22:58:10 +08:00
Dillon bf38ace70c Multiple invoices into one 2023-01-07 11:51:27 +08:00
edmondlang 66c008f97e Merge branch 'master' of gitlab.com:CIEFWorldwideSdnBhd/shipping-portal into development 2023-01-03 13:49:15 +08:00
edmondlang 0298eb946f Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal into activity-route-log-dev 2023-01-02 17:41:29 +08:00
edmondlang 70fb35e37c api and web route logs 2023-01-02 17:41:00 +08:00
edmondlang 1a30877ca9 activity route log dev 2022-12-31 11:53:41 +08:00
WAKOYA_KUMSA\waqo1 569a22c0db route activity log 2022-12-28 13:15:15 +03:00
573 changed files with 22362 additions and 1556 deletions
+13 -3
View File
@@ -10,9 +10,9 @@ LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_DATABASE=shpping_portal
DB_USERNAME=root
DB_PASSWORD=
DB_PASSWORD=root
BROADCAST_DRIVER=log
CACHE_DRIVER=file
@@ -39,7 +39,7 @@ MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_BUCKET=shipping-portal-localhost
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
@@ -56,10 +56,20 @@ MIX_EXCHANGE_URL="${EXCHANGE_URL}"
YD_API_CODE=''
JWT_SECRET=Btj63iMEleEaww6Bb2IBECkxWn7YHPhhPFluAkg9DfcQik0qDRy6QW75ABGmPT2h
PERFEXCRM_BASE_URL=""
PERFEXCRM_API_KEY=""
PERFEXCRM_IS_ENABLED="false"
WEPOST_BASE_URL=https://wepost-uat.90warehouse.com/api/router
WEPOST_CLIENT_ID=1234
WEPOST_CLIENT_SECRET=cief-secret-temp
WEPOST_IS_ENABLED=false
VAPOR_ENV=local
LARAVEL_VAPOR_ENABLED=false
COMMANDS_V2_ENABLED=false
STORAGE_FEE_LAUNCH_DATE="2023-12-11 00:00:00"
SST_START_DATE="2024-04-01 00:00:00"
+59
View File
@@ -0,0 +1,59 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:rIar2fvNeRzQdvKOgLUg03detGDMx6ym2SYFRjawrAc=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_LEVEL=debug
# DB_CONNECTION=mysql
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=shpping_portal
# DB_USERNAME=root
# DB_PASSWORD=P@ssw0rd
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
UNITY_APP_URL="https://unity.izyim.com"
EXCHANGE_URL=https://dev.exchange.cief-malaysia.com/
MIX_EXCHANGE_URL="${EXCHANGE_URL}"
YD_API_CODE=''
JWT_SECRET=Btj63iMEleEaww6Bb2IBECkxWn7YHPhhPFluAkg9DfcQik0qDRy6QW75ABGmPT2h
+6
View File
@@ -2,6 +2,8 @@
/public/hot
/public/storage
/storage/*.key
/tests/_output
/tests/_support
/vendor
**/.idea/
.env
@@ -25,3 +27,7 @@ package-lock.json
public/*
/public/*
storage/framework/laravel-excel/*
.vapor/
.env.production
.env.staging
.env.development
+129
View File
@@ -0,0 +1,129 @@
image: php:7.4
stages:
- service_build
- node
- building_assets
- database
- unit_test
- acceptance_test
- code_quality
# Variables
variables:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: mysql_password
MYSQL_PASSWORD: mysql_password
MYSQL_DATABASE: shpping_portal
DB_HOST: mysql
before_script:
- apt-get update -yqq
- apt-get install -yqq
- apt-get install -y libonig-dev
- apt-get install -y libxml2-dev
- apt-get install -y libzip-dev
- apt-get install -y libgd-dev
- apt-get install -y libgd-dev
# Install PDO MySQL extension
- docker-php-ext-install pdo_mysql
#install php dependencies
- docker-php-ext-install mbstring xml zip gd
# Install composer package manager
- curl --location --output /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
- chmod +x /usr/local/bin/composer
# Install MySQL client
- apt-get install -y default-mysql-client
#install node js
- apt-get update && apt-get install -y nodejs npm
#install gulp Js
- npm install -g gulp-cli
#jobs
#buld the backend
composer_php:
stage: service_build
script:
- composer install
- cp .env.example .env
- php artisan key:generate
rules:
- when: never
# rules:
# - if: '$CI_COMMIT_BRANCH =~ /.*/'
#build the UI
#node installation
npm:
stage: node
script:
- npm install # Install npm dependencies
rules:
- when: never
# rules:
# - if: '$CI_COMMIT_BRANCH =~ /.*/'
#building assets
building_assets:
stage: building_assets
# dependencies:
# - npm
script:
- npm install # Install npm dependencies
- gulp build # Build assets
rules:
- when: never
# rules:
# - if: '$CI_COMMIT_BRANCH =~ /.*/'
#mysql
database:
stage: database
services:
- name: mysql:8.0
command: [ "--default-authentication-plugin=mysql_native_password" ]
#dependencies:
# - composer_php
script:
- composer install
- cp .env.example .env
- php artisan key:generate
- php artisan migrate:fresh
- php artisan db:seed
rules:
- when: never
# rules:
# - if: '$CI_COMMIT_BRANCH =~ /.*/'
#mysql
#unit_test:
# stage: unit_test
# services:
# - name: mysql:8.0
# command: [ "--default-authentication-plugin=mysql_native_password" ]
#dependencies:
# - database
# script:
# - npm install # Install npm dependencies
# - gulp build # Build assets
# - composer install
# - cp .env.example .env
# - php artisan key:generate
# - php artisan migrate:fresh
# - php artisan db:seed
# - php artisan test
# rules:
# - if: '$CI_COMMIT_BRANCH =~ /.*/'
+30
View File
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Site Under Maintenance</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
text-align: center;
padding: 50px;
}
.content {
background: white;
padding: 20px;
border-radius: 10px;
display: inline-block;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="content">
<h1>We'll be back soon!</h1>
<p>Sorry for the inconvenience but we're performing some maintenance at the moment. We'll be back online shortly!</p>
<p>&mdash; CIEF IZYIM</p>
</div>
</body>
</html>
Vendored
+131
View File
@@ -0,0 +1,131 @@
// Webhook + Gitlab git pull + Vapor
// def payload = readJSON text: "${payload}"
// String userName = payload.user_name
// String userEmail = payload.user_email
// String httpUrl = payload.project.http_url
pipeline {
agent {
docker {
args '--group-add 992 -v /var/run/docker.sock:/var/run/docker.sock'
image '303644228504.dkr.ecr.ap-southeast-1.amazonaws.com/jenkins-pipeline-agent:latest'
registryCredentialsId "ecr:ap-southeast-1:aws-ec2-instance-iam-role"
registryUrl "https://303644228504.dkr.ecr.ap-southeast-1.amazonaws.com"
}
}
environment {
HOME = '.'
DB_CONNECTION = 'mysql'
DB_DATABASE = 'portal_development'
APP_ENV = 'testing'
}
stages {
stage('Download source code from Git') {
steps {
script{
currentBuild.description = 'Step 1 of 6 Completed'
println("GIT GIT_BRANCH: " + GIT_BRANCH)
switch(GIT_BRANCH) {
case "vapor/production":
case "vapor/staging":
case "vapor/development":
git(
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git',
credentialsId: 'gitlab-jenkins-localhost',
branch: GIT_BRANCH
)
break
case "origin/dillon/34-jenkins-vapor":
git(
url: 'https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git',
credentialsId: 'gitlab-jenkins-localhost',
branch: 'dillon/34-jenkins-vapor'
)
break
}
currentBuild.description = 'Step 2 of 6 Completed'
}
}
}
stage('Install') {
steps {
sh 'composer update'
script{
currentBuild.description = 'Step 3 of 6 Completed'
}
}
}
stage('Tests') {
steps {
//sh 'vendor/bin/phpunit tests/Unit'
withCredentials([
usernamePassword(
credentialsId: 'shipping-portal-dev-db-credential',
usernameVariable: 'DB_USERNAME',
passwordVariable: 'DB_PASSWORD'
),
string(credentialsId: 'shipping-portal-dev-db-host', variable: 'DB_HOST')
]) {
// sh 'vendor/bin/phpunit --filter ListOrderTrackingLogicTest'
}
script{
currentBuild.description = 'Step 4 of 6 Completed'
}
}
}
stage('Deploy') {
steps {
script{
String gitCommitMessage = getCommitMessage()
println("GIT CommitMessage: " + gitCommitMessage)
println("GIT GIT_BRANCH: " + GIT_BRANCH)
switch(GIT_BRANCH) {
case "vapor/production":
sh "vendor/bin/vapor deploy production --message='${gitCommitMessage}'"
break
case "vapor/staging":
sh "vendor/bin/vapor deploy staging --message='${gitCommitMessage}'"
break
case "vapor/development":
sh "vendor/bin/vapor deploy development --message='${gitCommitMessage}'"
break
case "origin/dillon/34-jenkins-vapor":
sh "vendor/bin/vapor deploy development --message='${gitCommitMessage}'"
break
}
currentBuild.description = 'Step 5 of 6 Completed'
}
}
}
stage('Cleanup') {
steps {
script {
try {
sh 'docker image prune -a -f'
} catch (Exception e) {
echo "Error during cleanup: ${e.message}"
}
currentBuild.description = 'Step 6 of 6 Completed'
}
}
}
}
}
@NonCPS
String getCommitMessage(){
commitMessage = " "
for ( changeLogSet in currentBuild.changeSets){
for (entry in changeLogSet.getItems()){
commitMessage = entry.msg
}
}
commitMessage = commitMessage.replace("'", "`")
return commitMessage
}
+20 -43
View File
@@ -1,62 +1,39 @@
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400"></a></p>
## Shipping portal documentation
<p align="center">
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>
simple documentation on how to install, run, test, commit and deploy application
## About Laravel
## creating and running unit tests
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
Required Tools
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
- Chromium Driver / selenium
- add running and setting selenium on all OS if possible
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Required Packages :
## Learning Laravel
- laravel/legacy-factories
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
- codeception/codeception
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
Or Simply Run
## Laravel Sponsors
``Composer install``
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
To create a unit test
### Premium Partners
``php artisan make test: Test Example --unit``
- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Cubet Techno Labs](https://cubettech.com)**
- **[Cyber-Duck](https://cyber-duck.co.uk)**
- **[Many](https://www.many.co.uk)**
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
- **[DevSquad](https://devsquad.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
- **[OP.GG](https://op.gg)**
Running the tests :
## Contributing
Running a single Test
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
`` php artisan test --filter Example``
## Code of Conduct
Running Unit tests -
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
`` php artisan test ``
## Security Vulnerabilities
Running Codeception tests -
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
``vendor/bin/codecept run``
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
+48
View File
@@ -0,0 +1,48 @@
<?php
namespace App\Classes\General;
use Illuminate\Support\Facades\Storage;
use Carbon\Carbon;
use Maatwebsite\Excel\Concerns\Exportable;
class AWSS3Helper
{
/**
* @param string $exportFileName
* @param Exportable $exportableObject
* @return string
*/
static function S3Exportable($exportFileName, $exportableObject){
//Step 1: Upload to S3
$filePathForS3 = 'temp/' . $exportFileName;
$exportableObject->store($filePathForS3, 's3');
//Step 2: Return temporary URL from S3
$temporaryUrl = Storage::disk('s3')->temporaryUrl(
$filePathForS3,
Carbon::now()->addMinutes(10)
);
return $temporaryUrl;
}
/**
* @param string $exportFileName
* @param string|resource $contents
* @return string
*/
static function S3PDF($exportFileName, $contents){
//Step 1: Upload to S3
$filePathForS3 = 'temp/' . $exportFileName;
Storage::disk('s3')->put($filePathForS3, $contents);
//Step 2: Return temporary URL from S3
$temporaryUrl = Storage::disk('s3')->temporaryUrl(
$filePathForS3,
Carbon::now()->addMinutes(10)
);
return $temporaryUrl;
}
}
@@ -16,6 +16,7 @@ use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Http\Resources\Json\ResourceCollection;
use Illuminate\Support\Facades\DB;
use App\Classes\Exceptions\JobResourceNotFoundException;
use App\Classes\General\LogHelper;
use Illuminate\Support\Facades\Log;
abstract class AbstractControllerLogic
@@ -64,22 +65,28 @@ abstract class AbstractControllerLogic
return $response;
} catch (ErrorException|GeneralExceptions|TypeError $exception){
if ($exception instanceof JobResourceNotFoundException) {
Log::channel('vue_polling')->info(sprintf(
"Uncaught exception '%s' with message '%s' in %s:%d",
get_class($exception),
$exception->getMessage(),
$exception->getTrace()[0]['file'],
$exception->getTrace()[0]['line']
));
}
else{
if ($request->has('isApiPub')) {
Log::error($exception);
}
return (new ApiResponseObject($this->getNotificationTitle().' failed', $exception->getMessage(),
return (new ApiResponseObject($this->getNotificationTitle().' failed', "Server Error",
!in_array($exception->getCode(), [0, 42000]) ? $exception->getCode() : HttpStatus::SERVER_ERROR))->handler();
} else {
if ($exception instanceof JobResourceNotFoundException) {
LogHelper::channel('vue_polling')->info(sprintf(
"Uncaught exception '%s' with message '%s' in %s:%d",
get_class($exception),
$exception->getMessage(),
$exception->getTrace()[0]['file'],
$exception->getTrace()[0]['line']
));
}
else{
Log::error($exception);
}
return (new ApiResponseObject($this->getNotificationTitle().' failed', $exception->getMessage(),
!in_array($exception->getCode(), [0, 42000]) ? $exception->getCode() : HttpStatus::SERVER_ERROR))->handler();
}
}
}
@@ -17,4 +17,4 @@ class HasInvoiceStatusIn implements Filter
$query->where('type', 1)->whereIn('status', $value);
});
}
}
}
@@ -0,0 +1,20 @@
<?php
namespace App\Classes\General\Eloquent\Filters;
use Illuminate\Database\Eloquent\Builder;
class OrderTrackingId implements Filter
{
/**
* @param Builder $builder
* @param $value
* @return Builder|mixed
*/
public static function apply(Builder $builder, $value)
{
return $builder->where('order_tracking_id', $value);
}
}
@@ -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
))');
@@ -0,0 +1,23 @@
<?php
namespace App\Classes\General\Eloquent\Filters;
use Illuminate\Database\Eloquent\Builder;
class TrackingNo implements Filter
{
/**
* @param Builder $builder
* @param $value
* @return Builder|mixed
*/
public static function apply(Builder $builder, $value)
{
return $builder->where('tracking_no', $value)
->where(function ($query) {
$query->whereNotNull('tracking_english')
->orWhereNotNull('remark_english');
});
}
}
+20 -4
View File
@@ -3,6 +3,8 @@ namespace App\Classes\General;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Storage;
use Carbon\Carbon;
class ExcelHandel
{
@@ -67,9 +69,23 @@ class ExcelHandel
public static function generateExcel($path = '', $exceldata = '', $filename = '', $extension = '')
{
$file_info = [];
$file = \Storage::disk('public')->put('excels/' . $path . '/' . $filename . '.' . $extension, $exceldata);
$file_info['original']['file'] = storage_path('app/public/excels/' . $path . '/' . $filename . '.' . $extension);
$filesystemDriver = Storage::getDefaultDriver();
if($filesystemDriver === 's3'){
$filePathForS3 = 'public/excels/' . $path . '/' . $filename . '.' . $extension;
Storage::disk('s3')->put($filePathForS3, $exceldata);
$temporaryUrl = Storage::disk('s3')->temporaryUrl(
$filePathForS3,
Carbon::now()->addMinutes(10)
);
$file_info['original']['file'] = $temporaryUrl; //REMINDER: This is a path to AWS S3 URL (HTTPS) as a public anonymous user, NOT an internal system path
}
else{
$file = Storage::disk('public')->put('excels/' . $path . '/' . $filename . '.' . $extension, $exceldata);
$file_info['original']['file'] = storage_path('app/public/excels/' . $path . '/' . $filename . '.' . $extension);
}
return $file_info;
}
@@ -84,4 +100,4 @@ class ExcelHandel
return true;
}
}
}
+8
View File
@@ -49,4 +49,12 @@ class Helper
static function collectionResponse(ResourceCollection $collection){
return json_decode($collection->response()->getContent(), true);
}
/**
* @param null|string $json
* @return array
*/
static function deserializeFilters(?string $json): array {
return $json !== null ? collect(json_decode($json))->toArray() : [];
}
}
@@ -0,0 +1,12 @@
<?php
namespace App\Classes\General\Interfaces;
use Illuminate\Database\Eloquent\Relations\MorphMany;
interface KeyValueInterface
{
public function attributes(): morphMany;
}
+66
View File
@@ -0,0 +1,66 @@
<?php
namespace App\Classes\General;
use Illuminate\Support\Facades\Log;
class LogHelper
{
private String $channelName;
public static function channel($channelName): self
{
$logHelper = new self;
$logHelper->channelName = $channelName;
return $logHelper;
}
public function info($message)
{
$envVar = env('LARAVEL_VAPOR_ENABLED');
$isLocal = env('VAPOR_ENV') === 'local';
if($envVar)
{
Log::info("Info: {$message} channelName {$this->channelName}, envVar {$envVar}");
}
if ($envVar && !$isLocal) {
Log::channel($this->channelName.'_vapor')->info($message);
}
else{
Log::channel($this->channelName)->info($message);
}
}
public function warning($message)
{
$envVar = env('LARAVEL_VAPOR_ENABLED');
$isLocal = env('VAPOR_ENV') === 'local';
if($envVar)
{
Log::info("Warning: {$message} channelName {$this->channelName}, envVar {$envVar}");
}
if ($envVar && !$isLocal) {
Log::channel($this->channelName . '_vapor')->warning($message);
} else {
Log::channel($this->channelName)->warning($message);
}
}
public function error($message)
{
$envVar = env('LARAVEL_VAPOR_ENABLED');
$isLocal = env('VAPOR_ENV') === 'local';
if($envVar)
{
Log::info("Error: {$message} channelName {$this->channelName}, envVar {$envVar}");
}
if ($envVar && !$isLocal) {
Log::channel($this->channelName . '_vapor')->error($message);
} else {
Log::channel($this->channelName)->error($message);
}
}
}
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Classes\General;
use Illuminate\Support\Facades\Route;
use Illuminate\Http\Request;
class UrlHelper {
public static function getRouteParametersFromUrl($url) {
$parsedUrl = parse_url($url);
$path = $parsedUrl['path'];
$routes = Route::getRoutes();
foreach ($routes as $route) {
$request = Request::create($path, 'GET');
$route->bind($request);
if ($route->matches($request)) {
return $route->parameters();
}
}
return [];
}
}
+42
View File
@@ -0,0 +1,42 @@
<?php
namespace App\Classes\General;
class WePostHelper
{
/**
* @param string $clientId
* @param string $clientSecrent
* @param string $type
* @return string
*/
static function generateSignature(string $clientId, string $clientSecrent, string $type){
// public parameters
$timestamp = 1234; //time();
$params = [
'client_id' => $clientId,
'type' => $type,
'timestamp' => $timestamp
];
// $businessParams = [
// 'test1' => '1',
// ];
ksort($params);
$str = '';
foreach ($params as $key => $value) {
if(is_array($value)) {
$str .= $key.json_encode($value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
continue;
}
$str .= $key. $value;
}
$str = $clientSecrent.$str.$clientSecrent;
$signature = strtoupper(md5($str));
return $signature;
}
}
@@ -0,0 +1,46 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
use App\Classes\Modules\Transactions\Processors\ApproveShippingInvoiceTransactionProcessor;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Transaction;
use Exception;
class ApproveInvoiceV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Approve Invoice Command.');
$start = new Carbon();
$invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->where('status', ApprovalStatus::PENDING_SUBMISSION)->get();
foreach ($invoices as $invoice) {
$packingList = $invoice->owner;
$order = $packingList->owner;
try {
(App()->make(ApproveShippingInvoiceTransactionProcessor::class))->execute($packingList);
Log::info('Invoice Approved for reference ' . $order->reference . '.');
} catch (Exception $exception) {
Log::info('Failed to Approve invoice for reference ' . $order->reference . '. Exception: ' . $exception->getMessage());
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Approve Invoice Command. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,53 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\PaymentMethodType;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Transaction;
use Illuminate\Support\Facades\Log;
class AuditBillplzInvoiceV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Audit Billplz Invoice.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
$transactions = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->where('status', ApprovalStatus::COMPLETED)->whereHas('transactions', function($query){
return $query->where('type', TransactionType::PAYMENT)->where('payment_method', PaymentMethodType::PAYMENT_GATEWAY)->where('status', ApprovalStatus::REJECTED);
})->get();
$totalTransactions = count($transactions);
$counter = 1;
$totalAmount = 0;
foreach ($transactions as $transaction){
$payment_transaction = $transaction->transactions->sortByDesc('created_at')->first();
if ($payment_transaction->status === ApprovalStatus::REJECTED) {
Log::info($counter . ' of ' . $totalTransactions . '. Order Marking: '. $payment_transaction->owner->owner->owner->reference . '. Transaction Id: '. $payment_transaction->id . '. Invoice Id: '. $transaction->id . ' - Date: '.$payment_transaction->created_at->format('d-m-Y').' - Amount: '. $payment_transaction->amount);
$totalAmount += $transaction->amount;
$counter++;
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Audit Billplz Invoice. ElapsedTime: ' . $elapsedTime . '. Total: ' . $totalAmount);
}
}
@@ -0,0 +1,55 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\PaymentMethodType;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Transaction;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class AuditBillplzPaymentV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Audit Billplz Payment.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
$transactions = Transaction::where('type', TransactionType::PAYMENT)->where('payment_method', PaymentMethodType::PAYMENT_GATEWAY)->whereIn('status', [ApprovalStatus::COMPLETED, ApprovalStatus::APPROVED])->get();
$totalTransactions = count($transactions);
$counter = 1;
$totalAmount = 0;
foreach ($transactions as $transaction){
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->get(config('billplz.base_url').'/api/v3/bills/'.$transaction->payment_reference);
if($response->successful()){
$data = $response->json();
if($data['paid']){
} else {
$totalAmount += $transaction->amount;
Log::info($counter . ' of ' . $totalTransactions . '. Order: '. $transaction->owner->owner->owner->reference . ' - Date: '.$transaction->owner->created_at->format('d-m-Y').' - Amount: '. $transaction->amount);
}
}else{
Log::info("billplz error</br>");
}
$counter++;
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Audit Billplz Payment. ElapsedTime: ' . $elapsedTime . '. Total: ' . $totalAmount);
}
}
@@ -0,0 +1,64 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\PackingLists\Services\ListsPackingLists;
use App\Classes\Modules\Transactions\Processors\CreateInvoiceTransactionProcessor;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Models\Order;
use Exception;
use Illuminate\Support\Facades\Log;
class AutoGenerateInvoiceV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Auto generate invoice.');
$start = new Carbon();
$packingLists = (App()->make(ListsPackingLists::class))->execute(['does_not_have_transaction_type' => 1, 'type' => 2]);
if (count($packingLists)) {
foreach ($packingLists as $packingList) {
$order = $packingList->owner;
if (!($order instanceof Order)) {
Log::info('Failed to generate invoice for reference' . $order->reference . '. It is not an instance of Order.');
continue;
}
$companyModule = $order->companyModule;
$billingAddress = $companyModule->addresses()->where('type', \App\Classes\ValueObjects\Constants\AddressType::BILLING)->first();
$deliveryAddress = $order->addresses()->where('status', ApprovalStatus::APPROVED)->first();
$postCodes = \App\Models\SegmentConstant::whereIn('reference', ['CENTER_POSTCODE', 'OUTSTATION_POSTCODE'])->get()->pluck('value')->flatten();
if (!!$billingAddress && in_array($deliveryAddress->postcode, $postCodes->toArray())) {
try {
(App()->make(CreateInvoiceTransactionProcessor::class))->execute($packingList);
Log::info('Invoice generated for reference ' . $order->reference . '.');
} catch (Exception $exception) {
Log::info('Failed to generate invoice for reference ' . $order->reference . '. Exception: ' . $exception->getMessage());
}
}
else{
Log::info('Failed to generate invoice for reference ' . $order->reference . '. Billing Address is not defined / Postcode area is not defined.');
}
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Auto generate invoice. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,63 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\ValueObjects\Constants\PaymentMethodType;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Transaction;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class CheckDeletedInvoiceButPaidV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Check all deleted invoice but has completed payment.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
$totalAmount = 0;
$softDeletedTransactions = Transaction::onlyTrashed()->where('type', TransactionType::SHIPPING_INVOICE)->whereHas('transactions', function (Builder $query) {
$query->where('type', TransactionType::PAYMENT)->where('payment_method', PaymentMethodType::PAYMENT_GATEWAY);
})->get();
foreach ($softDeletedTransactions as $invoice) {
$invoice_payments = $invoice->transactions()->payments()->get();
foreach($invoice_payments as $invoice_payment) {
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->get(config('billplz.base_url').'/api/v3/bills/'.$invoice_payment->payment_reference);
if($response->successful()){
$data = $response->json();
$orderReference = $invoice->owner->owner->reference ?? null;
if($data['paid']){
Log::info('Invoice id: ' . $invoice->id. '. Payment id: ' . $invoice_payment->id . '. Order: ' . $orderReference);
} else {
}
}else{
Log::info("billplz error</br>");
}
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Check all deleted invoice but has completed payment. ElapsedTime: ' . $elapsedTime . '. Total: ' . $totalAmount);
}
}
@@ -0,0 +1,48 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Transactions\Services\ListsGroups;
use App\Classes\Modules\Transactions\Processors\CheckStorageInvoiceTransactionProcessor;
use App\Models\Order;
use Illuminate\Support\Facades\Log;
class CheckStorageInvoicesGroupTransactionsV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Check all pending group payment with storage invoice is valid.');
$start = new Carbon();
$newfilters['order_by_updated_at_desc'] = true;
$newfilters['status_in'] = [0, 1];
$groups = (App()->make(ListsGroups::class))->execute($newfilters);
foreach ($groups as $group){
Log::info('CheckForStorageInvoiceByTransactions group: '.json_encode($group));
foreach ($group->groupTransactions as $groupTransaction) {
$invoice = $groupTransaction->transaction;
$packingList = $invoice->owner()->first();
if($packingList){
$order = $packingList->owner()->first();
if($order instanceof Order){
$storages = (App()->make(CheckStorageInvoiceTransactionProcessor::class))->executeOrder($order);
}
}
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Check all pending group payment with storage invoice is valid. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,45 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Orders\Services\ListsOrders;
use App\Classes\Modules\Transactions\Processors\CheckStorageInvoiceTransactionProcessor;
use App\Classes\ValueObjects\Constants\OrderType;
use Illuminate\Support\Facades\Log;
class CheckStorageInvoicesOrdersV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Check all orders for storage invoice.');
$start = new Carbon();
$orders = (App()->make(ListsOrders::class))->execute(['with_parcels' => true, 'type_in' => [OrderType::SHARED_CONTAINER, OrderType::DEDICATED_CONTAINER]]);
$count = 0;
foreach ($orders as $order){
try{
$storages = (App()->make(CheckStorageInvoiceTransactionProcessor::class))->executeOrder($order);
$count = $count + 1;
Log::info('Order '.$count);
}
catch(\Exception $ex){
Log::info('Exception '.$ex->getMessage());
break;
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Check all orders for storage invoice. ElapsedTime: ' . $elapsedTime . '.');
}
}
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class DummyJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Dummy.');
$start = new Carbon();
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Dummy. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,70 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Billplzs\Processors\CallbackBillplzProcessor;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Models\Group;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class FixApprovedPaymentFailedGroupV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Fix all payment is approved or completed but group failed to be updated.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
// $this->outputArray = [];
$groups = Group::whereNotIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
->whereHas('payment', function ($query) {
$query->whereIn('status', [2, 3]);
})->get();
foreach ($groups as $group) {
$transaction = $group->payment;
$response = Http::withBasicAuth(config('billplz.api_key') . ':', '')->get(config('billplz.base_url') . '/api/v3/bills/' . $transaction->payment_reference);
dump($transaction->payment_reference);
if ($response->successful()) {
$data = $response->json();
if ($data['paid']) {
$status = ApprovalStatus::PENDING_VERIFICATION;
if ($data['state'] === 'paid') {
$status = ApprovalStatus::APPROVED;
}
Log::info(Carbon::now() . ' : Fixing ' . $transaction->payment_reference);
(App()->make(CallbackBillplzProcessor::class))->execute($transaction, $status);
}
} else {
Log::info("billplz error");
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
// if ($groups) {
// $this->info(Carbon::now() . ' : Done . ElapsedTime: ' . $elapsedTime);
// }
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Fix all payment is approved or completed but group failed to be updated. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,67 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Billplzs\Processors\CallbackBillplzProcessor;
use App\Classes\Modules\Billplzs\Services\GetBillplzBill;
use App\Classes\Modules\Orders\Processors\UpdateDoFromVTPortalProcessor;
use App\Classes\Modules\Orders\Processors\UpdateDoFromYDPortalProcessor;
use App\Classes\Modules\Transactions\Services\FetchesTransaction;
use App\Classes\Modules\Transactions\Services\UpdatesTransactionStatus;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\PaymentMethodType;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Transaction;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class FixBillplzFailedCallbackPaymentV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $transactionId;
public function __construct(int $transactionId)
{
$this->transactionId = $transactionId;
}
public function handle()
{
Log::info(Carbon::now() . ': Start job - Fix failled callback from billplz.');
$start = new Carbon();
$transaction = Transaction::where('id', $this->transactionId)->first();
Log::info('Billplz Url: '.config('billplz.base_url').'/api/v3/bills/'.$transaction->payment_reference);
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->get(config('billplz.base_url').'/api/v3/bills/'.$transaction->payment_reference);
if($response->successful()){
$data = $response->json();
if($data['paid']) {
$status = ApprovalStatus::PENDING_VERIFICATION;
if($data['state'] === 'paid') {
$status = ApprovalStatus::APPROVED;
}
Log::info(Carbon::now() . ' : Fixing ' . $transaction->payment_reference);
(App()->make(CallbackBillplzProcessor::class))->execute($transaction, $status);
}
}
else{
Log::info("billplz error");
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Fix failled callback from billplz. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,56 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Models\Container;
use App\Models\ContainerPackingList;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
class FixDuplicateContainerReferenceV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Fix Duplicate Container Reference.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
$duplicatedContainers = Container::select('reference', DB::raw('COUNT(reference) as count'))
->groupBy('reference')
->having('count', '>', 1)
->get();
foreach ($duplicatedContainers as $duplicatedContainer) {
$containers = Container::where('reference', $duplicatedContainer->reference)->get();
$containers = $containers->sortByDesc(function ($container) {
return $container->packingLists->count();
});
$firstContainer = $containers->shift();
foreach ($containers as $container) {
$firstContainer->packingLists()->syncWithoutDetaching($container->packingLists);
$container->packingLists()->detach();
Log::info('Deleted container ' . $container->id);
$container->delete();
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Fix Duplicate Container Reference. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,52 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Orders\Services\FetchesOrder;
use App\Classes\Modules\Transactions\Processors\CreateStorageInvoiceDocTransactionFixProcessor;
use Illuminate\Support\Facades\Log;
class FixGroupPaymentProblemV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Fix Group Payment Problem.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
/*
$group = $this->fetchesGroup->execute(['id' => 325]);
$this->info('FixGroupPaymentProblem group: '.json_encode($group));
if ($group) {
foreach ($group->groupTransactions as $groupTransaction) {
$invoice = $groupTransaction->transaction;
$this->info('FixGroupPaymentProblem group: '.json_encode($invoice));
$pL = $invoice->owner;
$this->releaseGoodsToCustomerProcessor->execute($pL, $invoice);
}
}
*/
$order = (App()->make(FetchesOrder::class))->execute(['reference' => '729251424']);
$packingLists = $order->destinationWarehousePackages;
foreach ($packingLists as $packingList){
(App()->make(CreateStorageInvoiceDocTransactionFixProcessor::class))->execute($packingList, true);
dd(json_encode($packingList));
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Fix Group Payment Problem. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,85 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Documents\DataTransferObjects\DocumentObject;
use App\Classes\Modules\Documents\Services\CreatesDocument;
use App\Classes\Modules\Documents\Services\CreatesFiles;
use App\Classes\Modules\Jobs\DataTransferObjects\FixInvoiceV2CommandObject;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\DocumentType;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\CompanyConnection;
use App\Models\Order;
use Mccarlosen\LaravelMpdf\Facades\LaravelMpdf;
use Illuminate\Support\Facades\Log;
class FixInvoiceV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** @var FixInvoiceV2CommandObject*/
private $fixInvoiceV2CommandObject;
/**
* FixInvoiceV2CommandJob constructor.
* @param FixInvoiceV2CommandObject $fixInvoiceV2CommandObject
*/
public function __construct(FixInvoiceV2CommandObject $fixInvoiceV2CommandObject)
{
$this->fixInvoiceV2CommandObject = $fixInvoiceV2CommandObject;
}
public function handle()
{
Log::info(Carbon::now() . ': Start job - Fix invoice.');
$start = new Carbon();
$connection = CompanyConnection::where('invitee_reference', $this->fixInvoiceV2CommandObject->getMarking())->first();
$company_module_id = $connection->invitee->id;
$orders = Order::where('company_module_id', $company_module_id)->get();
foreach ($orders as $order){
$invoices = $order->transactions()->where('transactions.type', TransactionType::SHIPPING_INVOICE)->get();
foreach ($invoices as $invoice){
dump($invoice->id);
$invoice->documents()->delete();
$view = 'pages.pdfs.shipping_invoice';
$dateToCompare = Carbon::parse(env('SST_START_DATE', '2024-04-01 00:00:00'));
$shippingInvoiceTransactionCreatedDate = Carbon::parse($invoice->created_at);
if ($shippingInvoiceTransactionCreatedDate->isAfter($dateToCompare) && $invoice->tax > 0) {
$view = 'pages.pdfs.shipping_invoice_sst';
}
$transaction_invoice_pdf = LaravelMpdf::loadView($view, ['invoice_transaction' => $invoice]);
$document_object = new DocumentObject(
DocumentType::SHIPPING_INVOICE,
[chunk_split('data:application/pdf;base64,'.base64_encode($transaction_invoice_pdf->output()))],
'',
ApprovalStatus::COMPLETED,
'shipping_invoice'
);
/** @var Document $document */
$document = (App()->make(CreatesDocument::class))->execute($invoice, $document_object);
(App()->make(CreatesFiles::class))->execute($document, $document_object);
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Fix invoice. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,40 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\PackingLists\Processors\FetchPackingListsFromYdPortalProcessor;
use Illuminate\Support\Facades\Log;
class FixMissingPackingListV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Fix Missing PackingList.');
$start = new Carbon();
$start_date = '2024-05-05';
$end_date = '2024-05-05';
$start = $start_date ? Carbon::parse($start_date) : null;
$end = $end_date ? Carbon::parse($end_date) : null;
if (!$start || !$end) {
return;
}
(App()->make(FetchPackingListsFromYdPortalProcessor::class))->execute($start, $end);
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Fix Missing PackingList. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,68 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Models\PackingList;
use Illuminate\Support\Facades\Log;
class FixPackingListV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Fix PackingList.');
$start = new Carbon();
$packingLists = PackingList::whereDoesntHave('packages')->get();
if ($packingLists->isNotEmpty()) {
$restoredPackagesCount = 0;
$restoredPackagesIds = [];
// Eager loading packages for all packing lists
$packingLists->load(['packages' => function ($query) {
$query->onlyTrashed();
}]);
foreach ($packingLists as $packingList) {
$deletedPackages = $packingList->packages->filter(function ($package) use ($restoredPackagesIds) {
// Filter out packages that have already been restored
return !in_array($package->id, $restoredPackagesIds);
});
if ($deletedPackages->isNotEmpty()) {
$groupedPackages = $deletedPackages->groupBy(function ($item) {
return $item->only(['type', 'description', 'width', 'height', 'length', 'weight', 'quantity']);
});
foreach ($groupedPackages as $group) {
$latestPackage = $group->sortByDesc('created_at')->first();
// Check if the package ID is already restored before attempting to restore it
if (!in_array($latestPackage->id, $restoredPackagesIds)) {
$latestPackage->restore();
Log::info('Package ID: ' . $latestPackage->id . ' has been restored');
$restoredPackagesCount++;
$restoredPackagesIds[] = $latestPackage->id;
}
}
}
}
Log::info('Restored Packages Count: ' . $restoredPackagesCount);
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Fix PackingList. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,61 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Billplzs\Processors\CallbackBillplzProcessor;
use App\Classes\Modules\Documents\Services\ApprovesDocument;
use App\Classes\Modules\Documents\Services\RejectsDocument;
use App\Classes\Modules\Transactions\Services\FetchesTransaction;
use App\Classes\Modules\Transactions\Services\UpdatesTransactionStatus;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Models\Group;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class FixPaymentApprovalTimedOutErrorV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Fix payment approval timed out error (status 504: Endpoint request timed out).');
$start = new Carbon();
$status= 'approve';
$transactionId = 23160;
$transaction = (App()->make(FetchesTransaction::class))->execute(['id' => $transactionId]);
$document = $transaction->documents()
->where('status', ApprovalStatus::PENDING_VERIFICATION)
->first();
Log::info("FixApprovedPaymentFailedGroupV2CommandJob document: ".json_encode($document));
if($status === 'approve') {
// (App()->make(ApprovesDocument::class))->execute($document);
$document->status = ApprovalStatus::APPROVED;
// $document->approver = Auth()->user()->id;
$document->approval_date = Carbon::now();
$document->save();
}
else {
(App()->make(RejectsDocument::class))->execute($document);
}
(App()->make(UpdatesTransactionStatus::class))->execute($transaction, $status === 'approve' ? ApprovalStatus::APPROVED : ApprovalStatus::REJECTED);
if ($status === 'approve') {
(App()->make(CallbackBillplzProcessor::class))->execute($transaction, ApprovalStatus::APPROVED);
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Fix payment approval timed out error (status 504: Endpoint request timed out). ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,52 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;
class HouseKeepingS3FilesV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Housekeeping temporary files in S3 Bucket.');
$start = new Carbon();
$s3 = Storage::disk('s3');
$directories = [
'temp',
];
foreach ($directories as $directory) {
$startInner = Carbon::now();
Log::info(Carbon::now() . ' [HouseKeepingS3FilesV2] Start cleaning - ' . $directory);
$objects = $s3->allFiles($directory);
foreach ($objects as $object) {
$s3->delete($object);
Log::info('[HouseKeepingS3FilesV2] Deleted object: ' . $object);
}
Log::info('[HouseKeepingS3FilesV2] All files have been deleted.');
$endInner = Carbon::now();
$elapsedTime = $startInner->diff($endInner)->format('%H:%I:%S');
Log::info(Carbon::now() . ' [HouseKeepingS3FilesV2] Process ended. ElapsedTime: ' . $elapsedTime);
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Housekeeping temporary files in S3 Bucket. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,38 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use App\Classes\Modules\Accounts\Services\ExpiresEmailVerificationAttempt;
use App\Models\UserEmailVerification;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class NewUserRegistrationExpireCheckV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - New user email verification expiration check.');
$start = new Carbon();
$attempts = UserEmailVerification::active()->twoDaysOld()->get();
Log::info('NewUser Carbon now()->subHours(48): '. Carbon::now()->subHours(48));
Log::info('NewUser Attempts count: '.count($attempts));
foreach ($attempts as $attempt){
(new ExpiresEmailVerificationAttempt())->execute($attempt);
Log::info('NewUser Expired: '.$attempt->id.', '.$attempt->created_at);
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - New user email verification expiration check. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,45 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Billplzs\Processors\CallbackBillplzProcessor;
use App\Classes\Modules\Billplzs\Processors\CallbackBillplzDataPatchProcessor;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Models\Transaction;
use Illuminate\Support\Facades\Log;
class OneTimeTransactionFixBillplzFailedCbV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - One time fix failled callback from billplz cron ended.');
$start = new Carbon();
//Transaction fix with this one time fix command: 15205, 16803, 17310, 22008, 6770
//This transaction, 16803 has approve payment but not its owner, shipping invoice
$transactions = Transaction::whereIn('id', [22008, 6770])->get();
Log::info(Carbon::now() . ' : One time fix failled callback from billplz started.');
foreach ($transactions as $transaction){
if($transaction){
Log::info(Carbon::now() . ' : '.$transaction->id);
$status = ApprovalStatus::APPROVED;
(App()->make(CallbackBillplzProcessor::class))->execute($transaction, $status);
// (App()->make(CallbackBillplzDataPatchProcessor::class))->execute($transaction, $status);
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - One time fix failled callback from billplz cron ended. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,38 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use App\Classes\Modules\Accounts\Services\ExpiresPasswordReset;
use App\Models\PasswordReset;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class PasswordResetTokenExpirationV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Password reset token expiration check.');
$start = new Carbon();
$attempts = PasswordReset::active()->oneDayOld()->get();
Log::info('PasswordReset Carbon now()->subHours(24): '. Carbon::now()->subHours(24));
Log::info('PasswordReset Attempts count: '.count($attempts));
foreach ($attempts as $attempt){
(new ExpiresPasswordReset())->execute($attempt);
Log::info('PasswordReset Expired: '.$attempt->id.', '.$attempt->created_at);
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Password reset token expiration check. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,44 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Notifications\ShipmentDepartureEmail;
use App\Models\Order;
use App\Models\Container;
use Illuminate\Support\Facades\Log;
class SendContainerDepartureEmailV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Send Container Departure Email.');
$start = new Carbon();
$containers = Container::whereHas('transports', function ($transport){
return $transport->whereDate('dispatch_date', '=', Carbon::today());
})->get();
foreach ($containers as $container){
foreach ($container->packingLists as $packingList){
if(!($packingList->owner instanceof Order)) continue;
$user = $packingList->owner->companyModule->employees()->first();
if(app()->environment(['production'])) {
$user->notify(new ShipmentDepartureEmail($user, $packingList));
}
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Send Container Departure Email. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,68 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Notifications\PermitsReminderEmail;
use App\Models\PermitsReminder;
use App\Models\User;
use Illuminate\Support\Facades\Log;
class SendPermitsReminderEmailsV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Send Permits Reminders Email.');
$start = new Carbon();
$currentDateTime = now();
$startRange = $currentDateTime->subDays(3)->startOfDay();
$endRange = $currentDateTime->copy()->addDays(6)->endOfDay();
$reminders = PermitsReminder::whereDate('reminder_date', '>=', $startRange)
->whereDate('reminder_date', '<=', $endRange)
->orWhere('reminder_date', '<', now())
->pluck('model');
if ($reminders->isEmpty()) {
Log::info('No reminders expiring within the specified range.');
return;
}
Log::info($this->getTimeStamp() . 'Reminders: ' . $reminders->toJson());
$users = User::whereIn('email', $this->getEmailList())->get();
foreach ($users as $user) {
Log::info($this->getTimeStamp() . 'Reminder email sent to ' . $user->email);
if (app()->environment('production')) {
$user->notify(new PermitsReminderEmail($user, $reminders));
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Send Permits Reminders Email. ElapsedTime: ' . $elapsedTime . '.');
}
public function getTimeStamp()
{
return '[' . Carbon::now()->format('Y-m-d H:i:s') . '] - ';
}
protected function getEmailList(): array
{
return [
// 'edmond.wuiming2021@gmail.com',
'anithagurl96@gmail.com'
];
}
}
@@ -0,0 +1,57 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use App\Classes\Modules\Jobs\DataTransferObjects\ShowBillplzPaymentStatusV2CommandObject;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class ShowBillplzPaymentStatusV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** @var ShowBillplzPaymentStatusV2CommandObject*/
private $showBillplzPaymentStatusV2CommandObject;
/**
* ShowBillplzPaymentStatusV2CommandJob constructor.
* @param ShowBillplzPaymentStatusV2CommandObject $showBillplzPaymentStatusV2CommandObject
*/
public function __construct(ShowBillplzPaymentStatusV2CommandObject $showBillplzPaymentStatusV2CommandObject)
{
$this->showBillplzPaymentStatusV2CommandObject = $showBillplzPaymentStatusV2CommandObject;
}
public function handle()
{
Log::info(Carbon::now() . ': Start job - Show Billplz payment status.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
$billplz_id = $this->showBillplzPaymentStatusV2CommandObject->getBillplzId();
$billplz_id = explode(",", $billplz_id);
foreach ($billplz_id as $payment) {
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->get(config('billplz.base_url').'/api/v3/bills/'.$payment);
if($response->successful()){
$data = $response->json();
dump($data);
}else{
Log::info("billplz error</br>");
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Show Billplz payment status. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,63 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\PaymentMethodType;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Transaction;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class ShowFailediBllplzCallbackV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Show all failled callback from billplz.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
$transactions = Transaction::whereIn('type', [TransactionType::PAYMENT, TransactionType::TOP_UP, TransactionType::GROUP_PAYMENT])->where('payment_method', PaymentMethodType::PAYMENT_GATEWAY)->whereNotIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get();
$totalTransactions = count($transactions);
if ($totalTransactions) {
Log::info(Carbon::now() . ' totalTransactions : ' . $totalTransactions);
}
$counter = 1;
$totalAmount = 0;
foreach ($transactions as $transaction){
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->get(config('billplz.base_url').'/api/v3/bills/'.$transaction->payment_reference);
if($response->successful()){
$data = $response->json();
if($data['paid']){
dump($transaction->payment_reference);
dump($transaction->id);
}
}else{
Log::info("billplz error</br>");
}
$counter++;
}
// if ($totalTransactions) {
// Log::info(Carbon::now() . ' : Done Billplz Failled Callback. ElapsedTime: ' . $elapsedTime . '. Total: ' . $totalAmount);
// }
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Show all failled callback from billplz. ElapsedTime: ' . $elapsedTime . '. Total: ' . $totalAmount);
}
}
@@ -0,0 +1,82 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\PaymentMethodType;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Order;
use App\Models\Transaction;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class ShowFixBillplzFailedCallbackPaymentV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Show Billplz Failled Callback.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
// $this->outputArray = [];
$approvalStatusArray = ApprovalStatus::APPROVAL_STATUS_ID;
$transactions = Transaction::where('type', TransactionType::PAYMENT)->where('payment_method', PaymentMethodType::PAYMENT_GATEWAY)->whereNotIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get();
$totalTransactions = count($transactions);
$counter = 1;
$totalAmount = 0;
foreach ($transactions as $transaction){
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->get(config('billplz.base_url').'/api/v3/bills/'.$transaction->payment_reference);
if($response->successful()){
$data = $response->json();
if($data['paid']){
$totalAmount += $transaction->amount;
$invoiceStatus = null;
switch($transaction->owner->status) {
case 3:
$invoiceStatus = 'Payment Completed';
break;
case 5:
$invoiceStatus = 'Dispute in progress';
break;
case 6:
$invoiceStatus = 'Cancelled Invoice';
break;
default:
$invoiceStatus = 'Pending Payment';
}
$order = $transaction->owner->owner->owner;
if(!$order instanceof Order) {
Log::info("Error transaction id:" . $transaction->id . 'Type: ' . get_class($order));
} else {
Log::info($counter . ' of ' . $totalTransactions . '. Order: '. $order->reference . ' - Date: '.$transaction->owner->created_at->format('d-m-Y').' - Amount: '. $transaction->amount . '. Status: ' . $approvalStatusArray[$transaction->status] . '. Invoice Status: ' . $invoiceStatus);
}
} else {
// $totalAmount += $transaction->amount;
// $this->appendToOutput($counter . ' of ' . $totalTransactions . '. Order: '. $transaction->owner->owner->owner->reference . ' - Date: '.$transaction->owner->created_at->format('d-m-Y').' - Amount: '. $transaction->amount);
}
}else{
Log::info("billplz error</br>");
}
$counter++;
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Show Billplz Failled Callback. ElapsedTime: ' . $elapsedTime . '. Total: ' . $totalAmount);
}
}
@@ -0,0 +1,88 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use App\Classes\Modules\Billplzs\Services\GetBillplzBill;
use App\Classes\Modules\Orders\Processors\UpdateDoFromVTPortalProcessor;
use App\Classes\Modules\Orders\Processors\UpdateDoFromYDPortalProcessor;
use App\Classes\Modules\Transactions\Services\FetchesTransaction;
use App\Classes\Modules\Transactions\Services\UpdatesTransactionStatus;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\PaymentMethodType;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Transaction;
use Illuminate\Support\Facades\Log;
class SuccessUpdatePaymentStatusV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Success Updated Payment Status.');
$start = new Carbon();
// ini_set('memory_limit', '-1');
// $this->outputArray = [];
$approvalStatusArray = ApprovalStatus::APPROVAL_STATUS_ID;
$transactions = Transaction::where('type', TransactionType::PAYMENT)
->where('payment_method', PaymentMethodType::PAYMENT_GATEWAY)
->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
->get();
foreach ($transactions as $payment) {
$invoice = $payment->owner ?? null;
if (!$invoice) {
Log::info('Payment has no owner. Payment ID: ' . $payment->id);
continue;
}
$packingList = $invoice->owner ?? null;
if (!$packingList) {
Log::info('Invoice has no owner. Invoice ID: ' . $invoice->id);
continue;
}
$order = $packingList->owner;
if (!$invoice) {
Log::info('PackingList has no owner. PackingList ID: ' . $packingList->id);
continue;
}
if ($invoice->status == ApprovalStatus::APPROVED) {
$totalPaidAmount = $invoice->transactions->where('type', TransactionType::PAYMENT)->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->sum('amount');
if(($invoice->amount - $totalPaidAmount) < 0.01) {
(App()->make(UpdatesTransactionStatus::class))->execute($invoice, ApprovalStatus::COMPLETED);
$packingList->status = ApprovalStatus::APPROVED;
$packingList->save();
if(app()->environment('production')){
(App()->make(UpdateDoFromVTPortalProcessor::class))->execute($packingList);
(App()->make(UpdateDoFromYDPortalProcessor::class))->execute($packingList);
}
dump('Updated invoice ' . $invoice->id . '. Order: '. $order->reference);
} else {
Log::info('Failed Update invoice ' . $invoice->id . ' because payment not enough. Invoice Amount: ' . $invoice->amount . ' . Paid Amount: ' . $totalPaidAmount . ' . Order: '. $order->reference);
}
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Success Updated Payment Status. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,59 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
use App\Models\Container;
use App\Models\Order;
use App\Models\User;
use App\Classes\Notifications\ShipmentDepartureEmail;
class TestAttachingS3FileAndSendEmailV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Test to attach a file from S3 bucket and trigger an email send.');
$start = new Carbon();
$containers = Container::whereHas('transports', function ($transport){
return $transport->whereDate('dispatch_date', '<', Carbon::today())->whereDate('dispatch_date', '>', Carbon::now()->subdays(30));
})->get();
Log::info("[TESTING] total containers: " . count($containers));
$sent = false;
foreach ($containers as $container){
if($sent){
break;
}
foreach ($container->packingLists as $packingList){
if($sent){
break;
}
if(!($packingList->owner instanceof Order)) continue;
$user = $packingList->owner->companyModule->employees()->first();
$user = User::where('email', 'dillonngoweijoon@gmail.com')->first();
Log::info("[TESTING] user: " . json_encode($user));
Log::info("[TESTING] packingList: " . json_encode($packingList));
$user->notify(new ShipmentDepartureEmail($user, $packingList));
$sent = true;
}
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Test to attach a file from S3 bucket and trigger an email send. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,82 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
use App\Classes\Modules\Exports\Services\ExportsNullDebtors;
use Illuminate\Support\Facades\Storage;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\BusinessType;
use App\Models\Company;
class TestExportExcelToS3BucketV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Test Export Excel File to S3 Bucket.');
$start = new Carbon();
Log::info('company 0');
$company = Company::where(function($query){
$query->whereNull('debtor')->orWhere('debtor', '');
})->get();
Log::info('company 1: ' . json_encode($company));
$company = Company::where(function($query){
$query->whereNull('debtor')->orWhere('debtor', '');
})->whereHas('companyModules', function($query){
$query->where('type', BusinessType::IMPORTER);
})->get();
Log::info('company 2: ' . json_encode($company));
$company = Company::where(function($query){
$query->whereNull('debtor')->orWhere('debtor', '');
})->whereHas('companyModules', function($query){
$query->where('type', BusinessType::IMPORTER);
})->whereHas('parcels', function ($query) {
$query->where('packages.status', ApprovalStatus::APPROVED);
})
->with(['companyModules', 'parcels'])
->get();
Log::info('company 3: ' . json_encode($company));
$company = Company::where(function($query){
$query->whereNull('debtor')->orWhere('debtor', '');
})->whereHas('companyModules', function($query){
$query->where('type', BusinessType::IMPORTER);
})->whereHas('parcels')->where('status', ApprovalStatus::APPROVED)->get();
Log::info('company 4: ' . json_encode($company));
$export = new ExportsNullDebtors();
$filesystemDriver = Storage::getDefaultDriver();
if ($filesystemDriver === 's3') {
$filePathForS3 = 'temp/nullDebtor.xlsx'; //documents/exports
$excelFile = $export->store($filePathForS3, 's3');
$temporaryUrl = Storage::disk('s3')->temporaryUrl(
$filePathForS3,
Carbon::now()->addMinutes(10)
);
Log::info('temporaryUrl: ' . $temporaryUrl);
}
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Test Export Excel File to S3 Bucket. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,30 @@
<?php
namespace App\Classes\Jobs\Commands\V2;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
use App\Classes\Modules\PackingLists\Processors\TestFetchPackingListsFromYdPortalProcessor;
class TestReadDataFromYDAPIV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
Log::info(Carbon::now() . ': Start job - Test to read data from YD API.');
$start = new Carbon();
(App()->make(TestFetchPackingListsFromYdPortalProcessor::class))->execute();
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
Log::info(Carbon::now() . ': End job - Test to read data from YD API. ElapsedTime: ' . $elapsedTime . '.');
}
}
@@ -0,0 +1,37 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use App\Classes\Modules\PackingLists\Processors\V2\FetchContainersFromYdPortalV2Processor;
use App\Classes\Modules\PackingLists\Processors\FetchContainersUpdatesFromYdPortalProcessor;
use App\Classes\Modules\PackingLists\Processors\FetchDeliveryUpdatesFromYdPortalProcessor;
use App\Classes\Modules\PackingLists\Processors\FetchOrderListsFromYdPortalProcessor;
use App\Models\PackingList;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchContainersFromYdPortalV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $packingList;
public function __construct(PackingList $packingList)
{
$this->packingList = $packingList;
}
public function handle()
{
Log::info('Processing FetchContainersFromYdPortalV2CommandJob');
$processor = app(FetchContainersFromYdPortalV2Processor::class);
$processor->execute($this->packingList);
}
}
@@ -0,0 +1,36 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use App\Classes\Modules\PackingLists\Processors\FetchContainersFromYdPortalProcessor;
use App\Classes\Modules\PackingLists\Processors\V2\FetchContainersUpdatesFromYdPortalV2Processor;
use App\Classes\Modules\PackingLists\Processors\FetchDeliveryUpdatesFromYdPortalProcessor;
use App\Classes\Modules\PackingLists\Processors\FetchOrderListsFromYdPortalProcessor;
use App\Models\Container;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchContainersUpdatesFromYdPortalV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $container;
public function __construct(Container $container)
{
$this->container = $container;
}
public function handle()
{
Log::info('Processing FetchContainersUpdatesFromYdPortalV2CommandJob');
$processor = app(FetchContainersUpdatesFromYdPortalV2Processor::class);
$processor->execute($this->container);
}
}
@@ -0,0 +1,36 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use App\Classes\Modules\PackingLists\Processors\FetchContainersFromYdPortalProcessor;
use App\Classes\Modules\PackingLists\Processors\FetchContainersUpdatesFromYdPortalProcessor;
use App\Classes\Modules\PackingLists\Processors\V2\FetchDeliveryUpdatesFromYdPortalV2Processor;
use App\Classes\Modules\PackingLists\Processors\FetchOrderListsFromYdPortalProcessor;
use App\Models\PackingList;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchDeliveryUpdatesFromYdPortalV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $packingListId;
public function __construct(int $packingListId)
{
$this->packingListId = $packingListId;
}
public function handle()
{
Log::info('Processing FetchDeliveryUpdatesFromYdPortalV2CommandJob');
$processor = app(FetchDeliveryUpdatesFromYdPortalV2Processor::class);
$processor->execute($this->packingListId);
}
}
@@ -0,0 +1,34 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use App\Classes\Modules\PackingLists\Processors\V2\FetchOrderListsFromYdPortalV2Processor;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchOrderListsFromYdPortalV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $startDate;
protected $endDate;
public function __construct(?Carbon $startDate, ?Carbon $endDate)
{
$this->startDate = $startDate;
$this->endDate = $endDate;
}
public function handle()
{
Log::info('Processing FetchOrderListsFromYdPortalV2CommandJob for start date: ' . $this->startDate. ', and end date: ' . $this->endDate);
$processor = app(FetchOrderListsFromYdPortalV2Processor::class);
$processor->execute($this->startDate, $this->endDate);
}
}
@@ -0,0 +1,34 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use App\Classes\Modules\PackingLists\Processors\V2\FetchPackingListsFromYdPortalV2Processor;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchPackingListsFromYdPortalV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $startDate;
protected $endDate;
public function __construct(?Carbon $startDate, ?Carbon $endDate)
{
$this->startDate = $startDate;
$this->endDate = $endDate;
}
public function handle()
{
Log::info('Processing FetchPackingListsFromYdPortalV2CommandJob for start date: ' . $this->startDate. ', and end date: ' . $this->endDate);
$processor = app(FetchPackingListsFromYdPortalV2Processor::class);
$processor->execute($this->startDate, $this->endDate);
}
}
@@ -0,0 +1,31 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use App\Classes\Modules\PackingLists\Processors\V2\FetchByTrakingNoYdPortalV2Processor;
use App\Models\PackingList;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchTrakingInfoYDByPackingListV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $packingList;
public function __construct(PackingList $packingList)
{
$this->packingList = $packingList;
}
public function handle()
{
Log::info('Processing FetchTrakingInfoYDByPackingListV2CommandJob');
$processor = app(FetchByTrakingNoYdPortalV2Processor::class);
$processor->execute($this->packingList);
}
}
@@ -0,0 +1,30 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use App\Classes\Modules\PackingLists\Processors\V2\FetchByTrakingNoYdPortalV2Processor;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchTrakingInfoYDByTrackingNoV2CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $trackingNo;
public function __construct(string $trackingNo)
{
$this->trackingNo = $trackingNo;
}
public function handle()
{
Log::info('Processing FetchTrakingInfoYDByTrackingNoV2CommandJob');
$processor = app(FetchByTrakingNoYdPortalV2Processor::class);
$processor->processTrackingNo($this->trackingNo);
}
}
@@ -0,0 +1,30 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Artisan;
class ProcessYDByTrakingNoDataV2Job implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $trackingNo;
public function __construct($trackingNo)
{
$this->trackingNo = $trackingNo;
}
public function handle()
{
Artisan::call('process-yd-by-traking-no-data-command', [
'trackingNo' => $this->trackingNo
]);
}
}
@@ -0,0 +1,33 @@
<?php
namespace App\Classes\Jobs\Commands\V2\YD;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Artisan;
class ProcessYDPortalDataV2Job implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $start;
protected $end;
public function __construct($start, $end)
{
$this->start = $start;
$this->end = $end;
}
public function handle()
{
Artisan::call('process-yd-portal-data-command', [
'start_date' => $this->start,
'end_date' => $this->end
]);
}
}
@@ -0,0 +1,32 @@
<?php
namespace App\Classes\Jobs\Commands\V3\YD;
use App\Classes\Modules\PackingLists\Processors\V3\FetchContainersUpdatesYdPortalV3Processor;
use App\Models\Container;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchContainersUpdatesYdPortalV3CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $container;
public function __construct(Container $container)
{
$this->container = $container;
}
public function handle()
{
Log::info('Processing FetchContainersUpdatesYdPortalV3CommandJob');
$processor = app(FetchContainersUpdatesYdPortalV3Processor::class);
$processor->execute($this->container);
}
}
@@ -0,0 +1,32 @@
<?php
namespace App\Classes\Jobs\Commands\V3\YD;
use App\Classes\Modules\PackingLists\Processors\V3\FetchContainersYdPortalV3Processor;
use App\Models\PackingList;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class FetchContainersYdPortalV3CommandJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $packingList;
public function __construct(PackingList $packingList)
{
$this->packingList = $packingList;
}
public function handle()
{
Log::info('Processing FetchContainersYdPortalV3CommandJob');
$processor = app(FetchContainersYdPortalV3Processor::class);
$processor->execute($this->packingList);
}
}
+9 -9
View File
@@ -3,7 +3,7 @@
namespace App\Classes\Jobs;
use App\Classes\Modules\PackingLists\Processors\ListPackingListsJobProcessor;
use App\Classes\Modules\Jobs\DataTransferObjects\ListGenericJobObject;
use App\Classes\Modules\Jobs\DataTransferObjects\JobSubmissionObject;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
@@ -17,29 +17,29 @@ class ListPackingListsJob implements ShouldQueue
public $timeout = 900;
/** @var ListGenericJobObject */
private $listGenericJobObject;
/** @var JobSubmissionObject */
private $jobSubmissionObject;
/**
* ListPackingListsJob constructor.
* @param ListGenericJobObject $listGenericJobObject
* @param JobSubmissionObject $JobSubmissionObject
*/
public function __construct(ListGenericJobObject $listGenericJobObject)
public function __construct(JobSubmissionObject $jobSubmissionObject)
{
$this->listGenericJobObject = $listGenericJobObject;
$this->jobSubmissionObject = $jobSubmissionObject;
}
public function handle()
{
$rawPayload = $this->job->payload();
if(isset($rawPayload['data']['commandName'])){
$this->listGenericJobObject->setJobCommandName($rawPayload['data']['commandName']);
$this->jobSubmissionObject->setJobCommandName($rawPayload['data']['commandName']);
}
if(isset($rawPayload['data']['command'])){
$this->listGenericJobObject->setJobCommand($rawPayload['data']['command']);
$this->jobSubmissionObject->setJobCommand($rawPayload['data']['command']);
}
$result = (App()->make(ListPackingListsJobProcessor::class))->execute($this->listGenericJobObject);
$result = (App()->make(ListPackingListsJobProcessor::class))->execute($this->jobSubmissionObject);
}
}
+45
View File
@@ -0,0 +1,45 @@
<?php
namespace App\Classes\Jobs;
use App\Classes\Modules\Reports\Processors\MonthlyReportJobProcessor;
use App\Classes\Modules\Jobs\DataTransferObjects\JobSubmissionObject;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class MonthlyReportJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public $timeout = 900;
/** @var JobSubmissionObject */
private $jobSubmissionObject;
/**
* MonthlyReportJob constructor.
* @param JobSubmissionObject $jobSubmissionObject
*/
public function __construct(JobSubmissionObject $jobSubmissionObject)
{
$this->jobSubmissionObject = $jobSubmissionObject;
}
public function handle()
{
$rawPayload = $this->job->payload();
if(isset($rawPayload['data']['commandName'])){
$this->jobSubmissionObject->setJobCommandName($rawPayload['data']['commandName']);
}
if(isset($rawPayload['data']['command'])){
$this->jobSubmissionObject->setJobCommand($rawPayload['data']['command']);
}
$result = (App()->make(MonthlyReportJobProcessor::class))->execute($this->jobSubmissionObject);
}
}
+6 -3
View File
@@ -11,15 +11,18 @@ use App\Classes\Modules\PerfexCRM\Services\UpdatesPerfexCRMInvoice;
use App\Classes\Modules\PerfexCRM\DataTransferObjects\UpdatePerfexCRMInvoiceObject;
use App\Classes\Modules\PerfexCRM\DataTransferObjects\InvoicePaymentPerfexCRMObject;
use App\Classes\ValueObjects\Constants\PerfexCRMInvoiceStatus;
use App\Models\PackingList;
use App\Models\Transaction;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Carbon\Carbon;
use Illuminate\Support\Facades\Log;
use Carbon\Carbon;
use App\Classes\General\Helper;
use App\Classes\General\LogHelper;
class UpdatePerfexCRMInvoice implements ShouldQueue
{
@@ -47,7 +50,7 @@ class UpdatePerfexCRMInvoice implements ShouldQueue
$invoiceId = 0;
$invoiceStatus = 0;
$invoice = (App()->make(FetchesPerfexCRMInvoice::class))->execute($customer->userid,"INV-", $transaction->owner->bill_no);
Log::channel('perfex_crm')->info('UpdatePerfexCRMInvoice debug bill_no: ' . $transaction->owner->bill_no . ', Project Id: ' . $this->updatePerfexCRMInvoiceObject->getProjectId());
LogHelper::channel('perfex_crm')->info('UpdatePerfexCRMInvoice debug bill_no: ' . $transaction->owner->bill_no . ', Project Id: ' . $this->updatePerfexCRMInvoiceObject->getProjectId());
if(is_null($invoice)){
$result = (App()->make(CreatePerfexCRMInvoiceProcessor::class))->execute($transaction->owner, $this->updatePerfexCRMInvoiceObject->getIsPaid());
@@ -55,7 +58,7 @@ class UpdatePerfexCRMInvoice implements ShouldQueue
$invoiceId = $result->payload['id'];
} else {
// Log::error(json_encode('UpdatePerfexCRMInvoice CreatePerfexCRMInvoiceProcessor failed'));
Log::channel('perfex_crm')->info('UpdatePerfexCRMInvoice CreatePerfexCRMInvoiceProcessor failed');
LogHelper::channel('perfex_crm')->info('UpdatePerfexCRMInvoice CreatePerfexCRMInvoiceProcessor failed');
}
}
else{
+8 -2
View File
@@ -32,12 +32,12 @@ class UpdatePerfexCRMPrelude implements ShouldQueue
/**
* UpdatePerfexCRMPrelude constructor.
* @param $packingList
* @param PackingList $packingList
* @param Transaction $transaction
* @param UpdatePerfexCRMObject $updatePerfexCRMObject
* @param bool|null $shouldCreateInvoice
*/
public function __construct($packingList, $transaction, UpdatePerfexCRMObject $updatePerfexCRMObject, ?bool $shouldCreateInvoice = false)
public function __construct(?PackingList $packingList, $transaction, UpdatePerfexCRMObject $updatePerfexCRMObject, ?bool $shouldCreateInvoice = false)
{
$this->packingList = $packingList;
$this->transaction = $transaction;
@@ -47,6 +47,12 @@ class UpdatePerfexCRMPrelude implements ShouldQueue
public function handle()
{
Log::info('UpdatePerfexCRMPrelude packingList: ' . json_encode($this->packingList));
if(env('APP_ENV') !== 'production'){
return;
}
if(is_null($this->packingList)){
$this->packingList = $this->transaction->owner->owner;
}
@@ -0,0 +1,87 @@
<?php
namespace App\Classes\Modules\Accounts\ControllersLogic;
use App\Classes\Exceptions\ResourceConflictException;
use App\Classes\Exceptions\ResourceNotFoundException;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Accounts\Processors\GenerateEmailVerificationAttemptProcessor;
use App\Classes\Modules\Companies\DataTransferObjects\EmploymentObject;
use App\Classes\Modules\Companies\Processors\AssignEmployeeProcessor;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Http\Resources\UserResource;
use App\Models\User;
use Illuminate\Database\QueryException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class AdminAddNewMemberLogic extends AbstractControllerLogic
{
public function notification(): array
{
return [
'title' => 'Admin Updated Email',
'message' => 'Successfully updated email'
];
}
/**
* @var AssignEmployeeProcessor
*/
private $assignEmployeeProcessor;
/**
* @var GenerateEmailVerificationAttemptProcessor
*/
private $generateEmailVerificationAttemptProcessor;
/**
* AddNewMemberLogic constructor.
* @param AssignEmployeeProcessor $assignEmployeeProcessor
* @param GenerateEmailVerificationAttemptProcessor $generateEmailVerificationAttemptProcessor
*/
public function __construct(AssignEmployeeProcessor $assignEmployeeProcessor, GenerateEmailVerificationAttemptProcessor $generateEmailVerificationAttemptProcessor)
{
$this->assignEmployeeProcessor = $assignEmployeeProcessor;
$this->generateEmailVerificationAttemptProcessor = $generateEmailVerificationAttemptProcessor;
}
/**
* @param Request $request
* @return JsonResponse
* @throws ResourceConflictException
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
public function logic(Request $request): JsonResponse
{
Log::info($request->input('employeeId'));
try {
if (!$authUser = User::find($request->input('employeeId'))) {
throw new ResourceNotFoundException('User not found.');
}
$user = $authUser->replicate();
$user->email = $request->input('email');
$user->status = ApprovalStatus::PENDING_VERIFICATION;
$user->save();
} catch (QueryException $e) {
throw new ResourceConflictException('Email already exists.');
}
Log::info($request->input('email'));
if ($company = $authUser->companyModule()->first()) {
$this->assignEmployeeProcessor->execute(new EmploymentObject($company, $user));
}
$this->generateEmailVerificationAttemptProcessor->execute($user);
return $this->resourceResponse(new UserResource($user));
}
}
@@ -3,7 +3,7 @@
namespace App\Classes\Modules\Accounts\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\General\LogHelper;
use App\Classes\General\Services\GeneratesInitials;
use App\Classes\Modules\Accounts\Processors\AuthenticationProcessor;
use App\Classes\Modules\Accounts\Processors\CreateUserProcessor;
@@ -28,7 +28,8 @@ use App\Classes\ValueObjects\Constants\CompanyType;
use App\Classes\ValueObjects\Constants\RoleTypes;
use App\Classes\Jobs\CreatePerfexCRMCustomer;
use App\Classes\Modules\Accounts\Processors\RegisterOnExchangeProcessor;
use App\Classes\Modules\Companies\Services\ConnectCompanyModuleToExchangeCompany;
use App\Models\Company;
use App\Models\CompanyModule;
use App\Models\User;
@@ -89,6 +90,12 @@ class CreateCustomerLogic extends AbstractControllerLogic
/** @var CreatePerfexCRMLeadProcessor */
private $createPerfexCRMLeadProcessor;
/** @var RegisterOnExchangeProcessor */
private $registerOnExchangeProcessor;
/** @var ConnectCompanyModuleToExchangeCompany */
private $connectCompanyModuleToExchangeCompany;
/**
* CreateCustomerLogic constructor.
* @param CreateUserProcessor $createUserProcessor
@@ -103,8 +110,10 @@ class CreateCustomerLogic extends AbstractControllerLogic
* @param GenerateEmailVerificationAttemptProcessor $generateEmailVerificationAttemptProcessor
* @param FetchesCompanyModule $fetchesCompanyModule
* @param CreatePerfexCRMLeadProcessor $createPerfexCRMLeadProcessor
* @param RegisterOnExchangeProcessor $registerOnExchangeProcessor
* @param ConnectCompanyModuleToExchangeCompany $connectCompanyModuleToExchangeCompany
*/
public function __construct(CreateUserProcessor $createUserProcessor, CreateCompanyProcessor $createCompanyProcessor, CreateCompanyModuleProcessor $createCompanyModuleProcessor, CreateContactProcessor $createContactProcessor, CreatesCompanyConnection $createsCompanyConnection, ApprovesCompanyConnection $approvesCompanyConnection, AssignEmployeeProcessor $assignEmployeeProcessor, UploadIdentityDocumentProcessor $uploadIdentityDocumentProcessor, AuthenticationProcessor $authenticationProcessor, GenerateEmailVerificationAttemptProcessor $generateEmailVerificationAttemptProcessor, FetchesCompanyModule $fetchesCompanyModule, CreatePerfexCRMLeadProcessor $createPerfexCRMLeadProcessor)
public function __construct(CreateUserProcessor $createUserProcessor, CreateCompanyProcessor $createCompanyProcessor, CreateCompanyModuleProcessor $createCompanyModuleProcessor, CreateContactProcessor $createContactProcessor, CreatesCompanyConnection $createsCompanyConnection, ApprovesCompanyConnection $approvesCompanyConnection, AssignEmployeeProcessor $assignEmployeeProcessor, UploadIdentityDocumentProcessor $uploadIdentityDocumentProcessor, AuthenticationProcessor $authenticationProcessor, GenerateEmailVerificationAttemptProcessor $generateEmailVerificationAttemptProcessor, FetchesCompanyModule $fetchesCompanyModule, CreatePerfexCRMLeadProcessor $createPerfexCRMLeadProcessor, RegisterOnExchangeProcessor $registerOnExchangeProcessor, ConnectCompanyModuleToExchangeCompany $connectCompanyModuleToExchangeCompany)
{
$this->createUserProcessor = $createUserProcessor;
$this->createCompanyProcessor = $createCompanyProcessor;
@@ -118,6 +127,8 @@ class CreateCustomerLogic extends AbstractControllerLogic
$this->generateEmailVerificationAttemptProcessor = $generateEmailVerificationAttemptProcessor;
$this->fetchesCompanyModule = $fetchesCompanyModule;
$this->createPerfexCRMLeadProcessor = $createPerfexCRMLeadProcessor;
$this->registerOnExchangeProcessor = $registerOnExchangeProcessor;
$this->connectCompanyModuleToExchangeCompany = $connectCompanyModuleToExchangeCompany;
}
/**
@@ -155,7 +166,7 @@ class CreateCustomerLogic extends AbstractControllerLogic
$this->assignEmployeeProcessor->execute($Object);
$this->uploadIdentityDocumentProcessor->execute($request, $company);
// $this->uploadIdentityDocumentProcessor->execute($request, $company);
if(config('perfexcrm.is_enabled') == 'true'){
// $this->createPerfexCRMLeadProcessor->execute($request);
@@ -179,11 +190,24 @@ class CreateCustomerLogic extends AbstractControllerLogic
'portal' => 'izyim'
];
$response = Http::post($url, $payload);
Log::channel('wac_webhook')->info('Register Account: ' . json_encode($response));
LogHelper::channel('wac_webhook')->info('Register Account: ' . json_encode($response));
}
// $this->generateEmailVerificationAttemptProcessor->execute($user);
$exchangeCompanyId = null;
if ($request->input('exchange_company_id')) {
$exchangeCompanyId = $request->input('exchange_company_id');
} else {
// register account on exchange portal if this registration not coming from exchange
$exchangeCompanyId = $this->registerOnExchangeProcessor->execute($request, $companyModule->id);
}
if ($exchangeCompanyId) {
// create exchange company connection
$this->connectCompanyModuleToExchangeCompany->execute($companyModule, $exchangeCompanyId);
}
return $this->response($this->authenticationProcessor->execute($request));
}
}
@@ -77,11 +77,11 @@ class GeneratePasswordResetLogic extends AbstractControllerLogic
$attempt = $this->generatesPasswordReset->execute($user);
$this->passwordResetTokenExpiration::dispatch($attempt)->delay(now()->addHours(24));
// $this->passwordResetTokenExpiration::dispatch($attempt)->delay(now()->addHours(24)); //converted to schedule task
$this->sendResetPasswordEmail::dispatch($user, $attempt);
return $this->response(['email' => $object->getEmail()]);
}
}
}
}
@@ -0,0 +1,83 @@
<?php
namespace App\Classes\Modules\Accounts\ControllersLogic;
use App\Classes\Exceptions\AccessUnauthorisedException;
use App\Classes\Modules\Accounts\Processors\AuthenticationProcessor;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Accounts\Services\GeneratesAuthenticationToken;
use App\Classes\Modules\Accounts\Services\GeneratesAuthenticationTokenWithExchangeBookingId;
use App\Models\ExchangeCompanyConnection;
use App\Models\Order;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class LoginThroughExchangeLogic extends AbstractControllerLogic
{
protected function notification():array {
return [
'title' => 'Authentication',
'message' => 'You have successfully logged in to your account'
];
}
/** @var AuthenticationProcessor */
private $authenticationProcessor;
/** @var GeneratesAuthenticationToken */
private $generatesAuthenticationToken;
/** @var GeneratesAuthenticationTokenWithExchangeBookingId */
private $generatesAuthenticationTokenWithExchangeBookingId;
/**
* LoginThroughExchangeLogic constructor.
* @param AuthenticationProcessor $authenticationProcessor
* @param GeneratesAuthenticationToken $generatesAuthenticationToken
* @param GeneratesAuthenticationTokenWithExchangeBookingId $generatesAuthenticationTokenWithExchangeBookingId
*/
public function __construct(GeneratesAuthenticationToken $generatesAuthenticationToken, GeneratesAuthenticationTokenWithExchangeBookingId $generatesAuthenticationTokenWithExchangeBookingId)
{
$this->generatesAuthenticationToken = $generatesAuthenticationToken;
$this->generatesAuthenticationTokenWithExchangeBookingId = $generatesAuthenticationTokenWithExchangeBookingId;
}
/**
* @param Request $request
* @return JsonResponse
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\AccessUnauthorisedException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
protected function logic(Request $request): JsonResponse {
$token = explode('.', $request->input("exchangeToken"))[1];
$decodedToken = base64_decode($token);
$exchangeUser = json_decode($decodedToken, true)['user'];
$exchangeCompanyId = $exchangeUser['company_id'];
$connection = ExchangeCompanyConnection::where("exchange_company_id", $exchangeCompanyId)->first();
if (!$connection) {
throw new AccessUnauthorisedException('These credentials do not match our records.');
}
$companyModule = $connection->companyModule;
$user = $companyModule->employees->last();
$exchangeBookingId = null;
if (isset($exchangeUser['booking_id']) && $exchangeUser['booking_id']) {
$exchangeBookingId = $exchangeUser['booking_id'];
$token = $this->generatesAuthenticationTokenWithExchangeBookingId->execute($user, $exchangeBookingId);
return $this->response(['access_token' => $token, 'redirect_url' => route('dashboard') . "?createOrder=true"]);
} else {
$token = $this->generatesAuthenticationToken->execute($user);
$order = Order::where('id', $request->input("orderId"))->first();
return $this->response(['access_token' => $token, 'redirect_url' => route('order.show' , $order->reference)]);
}
}
}
@@ -0,0 +1,44 @@
<?php
namespace App\Classes\Modules\Accounts\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
class KeyValuePairObject implements DataTransferObject
{
/** @var string */
private $key;
/** @var string */
private $value;
/**
* KeyValuePairObject constructor.
* @param string $key
* @param string $value
*/
public function __construct(string $key, string $value)
{
$this->key = $key;
$this->value = $value;
}
/**
* @return string
*/
public function getKey(): string
{
return $this->key;
}
/**
* @return string
*/
public function getValue(): string
{
return $this->value;
}
}
@@ -50,7 +50,7 @@ class GenerateEmailVerificationAttemptProcessor
$attempt = $this->generatesEmailVerificationAttempt->execute($user);
$this->emailVerificationAttemptExpiration::dispatch($attempt)->delay(now()->addHours(48));
//$this->emailVerificationAttemptExpiration::dispatch($attempt)->delay(now()->addHours(48)); //converted to schedule task
$this->sendUserVerificationEmail::dispatch($user, $attempt);
@@ -0,0 +1,45 @@
<?php
namespace App\Classes\Modules\Accounts\Processors;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Log;
class RegisterOnExchangeProcessor
{
/**
* @param Request $request
* @return string
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
public function execute(Request $request, $companyModuleId) {
if (App::environment(['production'])) {
dd("Delete this line before push to production");
$url = 'https://exchange.cief-malaysia.com/api/v1/account/registration/registration';
} else if (App::environment(['local'])) {
$url = 'http://127.0.0.1:8000/api/v1/account/registration/registration';
} else {
$url = 'https://dev.exchange.cief-malaysia.com/api/v1/account/registration/registration';
}
try {
$client = new \GuzzleHttp\Client(['verify' => false]);
$formParams = $request->toArray();
$formParams['shipping_company_module_id'] = $companyModuleId;
$response = $client->request('POST', $url, ['form_params' => $formParams]);
$body = $response->getBody();
$contents = json_decode($body, true);
$payload = $contents['payload'];
$token = explode('.', $payload['access_token'])[1];
$decodedToken = base64_decode($token);
$exchangeUser = json_decode($decodedToken, true)['user'];
return $exchangeUser['company_id'];
} catch(\GuzzleHttp\Exception\RequestException $exception){
Log::error($exception->getResponse()->getBody()->getContents());
}
}
}
@@ -0,0 +1,28 @@
<?php
namespace App\Classes\Modules\Accounts\Services;
use App\Classes\General\Eloquent\AbstractUpdateRelationshipRecord;
use App\Classes\General\Interfaces\KeyValueInterface;
use App\Classes\Modules\Accounts\DataTransferObjects\KeyValuePairObject;
use App\Models\KeyValuePair;
class CreatesKeyValuePair extends AbstractUpdateRelationshipRecord
{
/**
* @param KeyValueInterface $kv
* @param KeyValuePairObject $object
* @return \Illuminate\Database\Eloquent\Model
* @throws \App\Classes\Exceptions\MalformedRequestException
*/
public function execute(KeyValueInterface $kv, KeyValuePairObject $object) {
$model = new KeyValuePair();
$model->key = $object->getKey();
$model->value = $object->getValue();
return $this->handler($kv->attributes(), $model);
}
}
@@ -0,0 +1,81 @@
<?php
namespace App\Classes\Modules\Accounts\Services;
use App\Classes\Exceptions\InternalServerErrorException;
use App\Classes\ValueObjects\Constants\OrderRoleTypes;
use App\Classes\ValueObjects\Constants\RoleTypes;
use App\Models\Company;
use App\Models\Role;
use App\Models\User;
use Carbon\Carbon;
use Tymon\JWTAuth\JWT;
class GeneratesAuthenticationTokenWithExchangeBookingId {
/** @var JWT */
private $builder;
/**
* GeneratesAuthenticationTokenWithExchangeBookingId constructor.
* @param JWT $builder
*/
public function __construct(JWT $builder) {
$this->builder = $builder;
}
/**
* @param User $user
* @param bool $rememberUser
* @return string
*/
public function execute(User $user, $bookingId): string {
$this->builder->manager()->setBlacklistEnabled(false);
// generate token for the customer
$this->builder->factory()->setTTL(Carbon::now()->addDay()->timestamp);
// set the claim based on the object
$this->setTokenClaims($user, $bookingId);
return $this->builder->fromUser($user);
}
/**
* @param User $user
*/
private function setTokenClaims(User $user, $bookingId): void {
$claims = [
'id' => $user->id,
'name' => $user->name,
'email' => $user->email,
'type' => $user->type,
'status' => $user->status
];
if($user->type === RoleTypes::USER) {
/** @var Company $companyModule */
$companyModule = $user->companyModule()->first();
$claims = array_merge($claims, [
'company_id' => $companyModule->company_id,
'company_module_id' => $companyModule->id,
'company_module_type' => $companyModule->type,
'company_name' => $companyModule->name,
'company_marking' => $companyModule->type !== 8 ? $companyModule->inviters()->withPivot('invitee_reference')->first()->pivot->invitee_reference : 'HWT',
'exchange_booking_id' => $bookingId
]);
}
$this->builder->factory()->customClaims(['user' => $claims]);
$this->builder->factory()->buildClaimsCollection();
}
}
@@ -3,6 +3,9 @@
namespace App\Classes\Modules\Addresses\ControllersLogic;
use App\Classes\Exceptions\AccessForbiddenException;
use App\Classes\Exceptions\MalformedRequestException;
use App\Classes\Exceptions\RequestValidationException;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\General\Interfaces\Contactable;
use App\Classes\Modules\Addresses\Services\CreatesAddress;
@@ -15,8 +18,11 @@ use App\Classes\Modules\Contacts\Processors\CreateContactProcessor;
use App\Classes\Modules\Remarks\DataTransferObjects\RemarkObject;
use App\Classes\Modules\Remarks\Processors\CreateRemarkProcessor;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\RemarkTypes;
use App\Http\Resources\AddressResource;
use App\Models\Address;
use App\Transformers\AddressTransformer;
use Carbon\Carbon;
use ErrorException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -27,7 +33,8 @@ class CreateAddressLogic extends AbstractControllerLogic
/**
* @return array
*/
protected function notification():array {
protected function notification(): array
{
return [
'title' => 'Created Address',
'message' => 'You have successfully created a new Address'
@@ -74,11 +81,11 @@ class CreateAddressLogic extends AbstractControllerLogic
/**
* @param Request $request
* @return JsonResponse
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
* @throws AccessForbiddenException
* @throws MalformedRequestException
* @throws RequestValidationException
*/
public function logic(Request $request) : JsonResponse
public function logic(Request $request): JsonResponse
{
$district = $this->fetchesDistrict->execute(['id' => $request->input('district_id')]);
@@ -90,16 +97,39 @@ class CreateAddressLogic extends AbstractControllerLogic
/** @var Address $address */
$address = $this->createsAddress->execute($this->fetchesCompanyModule->execute(['id' => $request->input('company_module_id')]), $object);
if($request->input('phone')){
if ($request->input('phone')) {
$contactObject = new ContactObject($request->input('person_in_charge'), $request->input('phone'), '', '');
$this->createContactProcessor->execute($contactObject, $address);
}
if($request->input('remark')){
if ($request->input('remark')) {
$remarkObject = new RemarkObject($request->input('remark'), Auth()->user()->id);
$this->createRemarkProcessor->execute($address, $remarkObject);
}
/* return fractal()
->item($address, new AddressTransformer())
->parseIncludes('remark')
->respond(200, [], JSON_PRETTY_PRINT);*/
if ($request->input('pickup_time_to') <= $request->input('pickup_time_from')) {
$pickupTimeFrom = Carbon::parse($request->input('pickup_time_from'));
$request->merge([
'pickup_time_to' => $pickupTimeFrom->addHour()->format('H:i') // Format to hh:mm
]);
}
$addressExtraFields = [
'property_type' => $request->input('property_type'),
'receive_goods_working_hours' => $request->input('receive_goods_working_hours'),
'receive_goods_after_hours' => $request->input('receive_goods_after_hours'),
'receive_goods_on_saturday' => $request->input('receive_goods_on_saturday'),
];
$address->addressExtraFields()->delete();
$addressExtraFieldsObject = new RemarkObject(json_encode($addressExtraFields), Auth()->user()->id, RemarkTypes::ADDRESS_EXTRA_COLUMNS);
$remark = $this->createRemarkProcessor->execute($address, $addressExtraFieldsObject);
return $this->resourceResponse(new AddressResource($address));
}
@@ -3,6 +3,9 @@
namespace App\Classes\Modules\Addresses\ControllersLogic;
use App\Classes\Exceptions\AccessForbiddenException;
use App\Classes\Exceptions\MalformedRequestException;
use App\Classes\Exceptions\RequestValidationException;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Addresses\Services\CreatesAddress;
use App\Classes\Modules\Addresses\Standards\Rules\CanCreateAddress;
@@ -14,6 +17,7 @@ use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Http\Resources\AddressResource;
use App\Models\Address;
use App\Models\CompanyModule;
use App\Transformers\AddressTransformer;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -23,7 +27,8 @@ class CreateBillingAddressLogic extends AbstractControllerLogic
/**
* @return array
*/
protected function notification():array {
protected function notification(): array
{
return [
'title' => 'Created Billing Address',
'message' => 'You have successfully created a new Billing Address'
@@ -60,27 +65,35 @@ class CreateBillingAddressLogic extends AbstractControllerLogic
/**
* @param Request $request
* @return JsonResponse
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
* @throws AccessForbiddenException
* @throws MalformedRequestException
* @throws RequestValidationException
*/
public function logic(Request $request) : JsonResponse
public function logic(Request $request): JsonResponse
{
$companyModule = $this->fetchesCompanyModule->execute(['id' => $request->input('company_module_id')]);
$address = $this->fetchesAddress->execute(['id' => $request->input('billing_address_id')]);
if ($address->type !== AddressType::BILLING || $address->id !== $companyModule->addresses->where('type', AddressType::BILLING)->first()->id) {
$billingAddressInputed = $this->fetchesAddress->execute(['id' => $request->input('billing_address_id')]);
if ($billingAddressInputed->type !== AddressType::BILLING || $billingAddressInputed->id !== $companyModule->addresses->where('type', AddressType::BILLING)->first()->id) {
// delete all current billing address
Address::where('owner_type', CompanyModule::class)->where('owner_id', $request->input('company_module_id'))->where('type', AddressType::BILLING)->delete();
// create addrress
$billingAddress = new AddressObject($address->street_one, $address->street_two, $address->country_id, $address->state_id, $address->district_id, $address->postcode, AddressType::BILLING, ApprovalStatus::APPROVED, $address->reference);
// create new billing addrress
$billingAddress = new AddressObject($billingAddressInputed->street_one, $billingAddressInputed->street_two, $billingAddressInputed->country_id, $billingAddressInputed->state_id, $billingAddressInputed->district_id, $billingAddressInputed->postcode, AddressType::BILLING, ApprovalStatus::APPROVED, $billingAddressInputed->reference);
$this->canCreateAddress->passes($billingAddress);
$this->createsAddress->execute($companyModule, $billingAddress);
}
return $this->resourceResponse(new AddressResource($address));
//load address with only owner address
/* return fractal()
->item($billingAddressInputed, new AddressTransformer())
->parseIncludes('Owner_address')
->respond(200, [], JSON_PRETTY_PRINT);*/
return $this->resourceResponse(new AddressResource($billingAddressInputed));
}
}
@@ -3,6 +3,8 @@
namespace App\Classes\Modules\Addresses\ControllersLogic;
use App\Classes\Exceptions\AccessForbiddenException;
use App\Classes\Exceptions\RequestValidationException;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Addresses\Services\FetchesAddress;
use App\Classes\Modules\Addresses\Standards\Rules\CanFetchAddress;
@@ -17,7 +19,8 @@ class FetchAddressLogic extends AbstractControllerLogic
/**
* @return array
*/
protected function notification():array {
protected function notification(): array
{
return [
'title' => 'Retrieved Address',
'message' => 'You have successfully retrieved a Address'
@@ -45,15 +48,22 @@ class FetchAddressLogic extends AbstractControllerLogic
/**
* @param Request $request
* @return JsonResponse
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\RequestValidationException
* @throws AccessForbiddenException
* @throws RequestValidationException
*/
public function logic(Request $request) : JsonResponse
public function logic(Request $request): JsonResponse
{
$this->canFetchAddress->passes();
$query = $this->fetchesAddress->execute(['id' => $request->route('id')]);
//load address with no relationships
/* return fractal()
->item($address, new AddressTransformer())
->respond(200, [], JSON_PRETTY_PRINT);*/
return $this->resourceResponse(new AddressResource($query));
}
@@ -3,10 +3,14 @@
namespace App\Classes\Modules\Addresses\ControllersLogic;
use App\Classes\Exceptions\AccessForbiddenException;
use App\Classes\Exceptions\MalformedRequestException;
use App\Classes\Exceptions\RequestValidationException;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Addresses\Services\ListsAddresses;
use App\Classes\Modules\Addresses\Standards\Rules\CanListAddresses;
use App\Http\Resources\AddressResource;
use App\Transformers\AddressTransformer;
use ErrorException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -17,7 +21,8 @@ class ListAddressesLogic extends AbstractControllerLogic
/**
* @return array
*/
protected function notification():array {
protected function notification(): array
{
return [
'title' => 'Retrieved Addresses',
'message' => 'You have successfully retrieved a list of Addresses'
@@ -45,17 +50,25 @@ class ListAddressesLogic extends AbstractControllerLogic
/**
* @param Request $request
* @return JsonResponse
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
* @throws AccessForbiddenException
* @throws MalformedRequestException
* @throws RequestValidationException
*/
public function logic(Request $request) : JsonResponse
public function logic(Request $request): JsonResponse
{
$this->canListAddresses->passes();
$query = $this->listsAddresses->execute($this->listsAddresses->deserializeFilters($request->input('filters')));
//a collection of addresses with all incluides
/* return fractal()
->collection($query, new AddressTransformer)
->parseIncludes('Owner_address')
->parseIncludes('remark')
->parseIncludes('contact')
->respond(200, [], JSON_PRETTY_PRINT);*/
return $this->collectionResponse(AddressResource::collection($query));
}
@@ -7,7 +7,6 @@ use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Addresses\Services\ListsAddresses;
use App\Classes\Modules\Addresses\Services\ListsDistricts;
use App\Classes\Modules\Addresses\Standards\Rules\CanListAddresses;
use App\Http\Resources\AddressResource;
use App\Http\Resources\DistrictResource;
use ErrorException;
use Illuminate\Http\JsonResponse;
@@ -7,7 +7,6 @@ use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Addresses\Services\ListsAddresses;
use App\Classes\Modules\Addresses\Services\ListsStates;
use App\Classes\Modules\Addresses\Standards\Rules\CanListAddresses;
use App\Http\Resources\AddressResource;
use App\Http\Resources\StateResource;
use ErrorException;
use Illuminate\Http\JsonResponse;
@@ -9,6 +9,7 @@ use App\Classes\Modules\Addresses\Services\FetchesAddress;
use App\Classes\Modules\Addresses\Services\ResetsAddressesDefault;
use App\Classes\Modules\Addresses\Services\SetsAddressToDefault;
use App\Models\Address;
use App\Transformers\AddressTransformer;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -33,7 +34,7 @@ class SetAddressToDefaultLogic extends AbstractControllerLogic
/** @var ResetsAddressesDefault */
private $resetsAddressesDefault;
/** @var SetsAddressToDefault*/
/** @var SetsAddressToDefault */
private $setsAddressToDefault;
@@ -64,7 +65,15 @@ class SetAddressToDefaultLogic extends AbstractControllerLogic
$this->resetsAddressesDefault->execute($address->owner, $address->type);
return $this->resourceResponse(new AddressResource($this->setsAddressToDefault->execute($address)));
$setAddress = $this->setsAddressToDefault->execute($address);
//no relationships needed
/* return fractal()
->item($setAddress, new AddressTransformer())
->respond(200, [], JSON_PRETTY_PRINT);*/
return $this->resourceResponse(new AddressResource($address));
}
}
@@ -15,10 +15,13 @@ use App\Classes\Modules\Remarks\DataTransferObjects\RemarkObject;
use App\Classes\Modules\Remarks\Processors\CreateRemarkProcessor;
use App\Classes\ValueObjects\Constants\AddressType;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\RemarkTypes;
use App\Http\Resources\AddressResource;
use App\Models\Address;
use App\Transformers\AddressTransformer;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Carbon\Carbon;
class UpdateAddressLogic extends AbstractControllerLogic
{
@@ -26,7 +29,8 @@ class UpdateAddressLogic extends AbstractControllerLogic
/**
* @return array
*/
protected function notification():array {
protected function notification(): array
{
return [
'title' => 'Updated Address',
'message' => 'You have successfully updated the Address'
@@ -77,7 +81,7 @@ class UpdateAddressLogic extends AbstractControllerLogic
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
public function logic(Request $request) : JsonResponse
public function logic(Request $request): JsonResponse
{
$district = $this->fetchesDistrict->execute(['id' => $request->input('district_id')]);
@@ -90,18 +94,45 @@ class UpdateAddressLogic extends AbstractControllerLogic
/** @var Address $address */
$address = $this->updatesAddress->execute($address, $object);
$address->contacts()->delete(); $address->remarks()->delete();
$address->contacts()->delete();
$address->remarks()->delete();
if($request->input('phone')){
if ($request->input('phone')) {
$contactObject = new ContactObject($request->input('person_in_charge'), $request->input('phone'), '', '');
$this->createContactProcessor->execute($contactObject, $address);
}
if($request->input('remark')){
if ($request->input('remark')) {
$remarkObject = new RemarkObject($request->input('remark'), Auth()->user()->id);
$this->createRemarkProcessor->execute($address, $remarkObject);
}
//only remark relationship needed
/* return fractal()
->item($address, new AddressTransformer())
->parseIncludes('remark')
->respond(200, [], JSON_PRETTY_PRINT);*/
if ($request->input('pickup_time_to') <= $request->input('pickup_time_from')) {
$pickupTimeFrom = Carbon::parse($request->input('pickup_time_from'));
$request->merge([
'pickup_time_to' => $pickupTimeFrom->addHour()->format('H:i') // Format to hh:mm
]);
}
$addressExtraFields = [
'property_type' => $request->input('property_type'),
'additional_request' => $request->input('additional_request'),
'receive_goods_working_hours' => $request->input('receive_goods_working_hours'),
'receive_goods_after_hours' => $request->input('receive_goods_after_hours'),
'receive_goods_on_saturday' => $request->input('receive_goods_on_saturday'),
];
$address->addressExtraFields()->delete();
$addressExtraFieldsObject = new RemarkObject(json_encode($addressExtraFields), Auth()->user()->id, RemarkTypes::ADDRESS_EXTRA_COLUMNS);
$this->createRemarkProcessor->execute($address, $addressExtraFieldsObject);
$remark = $this->createRemarkProcessor->execute($address, $addressExtraFieldsObject);
return $this->resourceResponse(new AddressResource($address));
}
@@ -20,7 +20,7 @@ class AssignsAnnouncementToSegment extends AbstractUpdateRecord
{
try {
$announcement->segments()->attach($segment);
$announcement->segments()->attach($segment, ['created_at' => now(), 'updated_at' => now()]);
return $announcement;
@@ -88,14 +88,14 @@ class CallbackBillplzDataPatchProcessor
$invoice = $groupTransaction->transaction;
Log::info('CallbackBillplzDataPatchProcessor 3: '.json_encode($invoice));
//if($invoice->status !== ApprovalStatus::COMPLETED){
// $paymentTransaction = $this->createPaymentTransactionProcessor->execute($invoice, PaymentMethodType::WALLET, null, false);
if($invoice->status !== ApprovalStatus::COMPLETED){
$paymentTransaction = $this->createPaymentTransactionProcessor->execute($invoice, PaymentMethodType::WALLET, null, false);
// if($paymentTransaction && $paymentTransaction->status == ApprovalStatus::APPROVED){
if($paymentTransaction && $paymentTransaction->status == ApprovalStatus::APPROVED){
$pL = $invoice->owner;
$this->releaseGoodsToCustomerProcessor->execute($pL, $invoice, true);
//}
//}
}
}
}
$group->status = $status;
@@ -130,8 +130,8 @@ class CallbackBillplzDataPatchProcessor
}
else{
Log::channel('storage_invoices')->info('Total amount from current transaction: '.$totalAmountToBePaid); //cief todo: to be removed
Log::channel('storage_invoices')->info('Total amount from paid transaction: '.$transaction->amount); //cief todo: to be removed
Log::channel('storage_invoices')->info('Total amount from current transaction: '.$totalAmountToBePaid);
Log::channel('storage_invoices')->info('Total amount from paid transaction: '.$transaction->amount);
return false;
}
}
@@ -2,6 +2,7 @@
namespace App\Classes\Modules\Billplzs\Processors;
use App\Classes\General\LogHelper;
use Illuminate\Http\Request;
use App\Models\Wallet;
use App\Models\Group;
@@ -121,8 +122,8 @@ class CallbackBillplzProcessor
}
else{
Log::channel('storage_invoices')->info('Total amount from current transaction: '.$totalAmountToBePaid); //cief todo: to be removed
Log::channel('storage_invoices')->info('Total amount from paid transaction: '.$transaction->amount); //cief todo: to be removed
LogHelper::channel('storage_invoices')->info('Total amount from current transaction: '.$totalAmountToBePaid);
LogHelper::channel('storage_invoices')->info('Total amount from paid transaction: '.$transaction->amount);
return false;
}
}
@@ -4,6 +4,7 @@ namespace App\Classes\Modules\Billplzs\Services;
use Illuminate\Support\Facades\Http;
use App\Classes\Exceptions\MalformedRequestException;
use App\Classes\General\LogHelper;
use Illuminate\Support\Facades\Log;
class DeletesBillplzBill
@@ -16,7 +17,7 @@ class DeletesBillplzBill
public function execute(string $billID) {
try{
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->delete(config('billplz.base_url').'/api/v3/bills/'.$billID);
Log::channel('storage_invoices')->info('DeletesBillplzBill response: '.json_encode($response));
LogHelper::channel('storage_invoices')->info('DeletesBillplzBill response: '.json_encode($response));
if($response->successful()){
$data = $response->json();
@@ -8,18 +8,19 @@ use App\Classes\Modules\Documents\Standards\Rules\CanApproveDocument;
use App\Classes\Modules\Orders\Services\UpdatesOrdersStatus;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Http\Resources\DocumentResource;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Companies\Processors\ApproveIdentificationDocumentOnExchangeProcessor;
use App\Classes\Modules\Documents\Services\FetchesDocument;
use App\Classes\Modules\Documents\Services\ApprovesDocument;
use App\Classes\Modules\Documents\Services\PendingVerificationDocument;
use App\Classes\Modules\Notifications\DataTransferObjects\NotificationObject;
Use App\Classes\Modules\Notifications\Processors\CreateNotificationProcessor;
use App\Classes\Modules\Notifications\Processors\CreateNotificationProcessor;
use App\Classes\ValueObjects\Constants\DocumentType;
use App\Models\Document;
use App\Models\ExchangeCompanyConnection;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class ApproveIdentificationDocumentLogic extends AbstractControllerLogic
{
@@ -27,10 +28,11 @@ class ApproveIdentificationDocumentLogic extends AbstractControllerLogic
/**
* @return array
*/
protected function notification():array {
protected function notification(): array
{
return [
'title' => 'Approve Document',
'message' => 'You have successfully approved the Document'
'title' => 'Update Document Status',
'message' => 'You have successfully updated the Document Status'
];
}
@@ -43,6 +45,9 @@ class ApproveIdentificationDocumentLogic extends AbstractControllerLogic
/** @var RejectsDocument */
private $rejectsDocument;
/** @var PendingVerificationDocument */
private $pendingVerificationDocument;
/** @var FetchesDocument */
private $fetchesDocument;
@@ -55,17 +60,22 @@ class ApproveIdentificationDocumentLogic extends AbstractControllerLogic
/** @var CreateNotificationProcessor */
private $createNotificationProcessor;
/** @var ApproveIdentificationDocumentOnExchangeProcessor */
private $approveIdentificationDocumentOnExchangeProcessor;
/**
* ApproveIdentificationDocumentLogic constructor.
* @param CanApproveDocument $canApproveDocument
* @param ApprovesDocument $approvesDocument
* @param RejectsDocument $rejectsDocument
* @param FetchesDocument $fetchesDocument
* @param PendingVerificationDocument $pendingVerificationDocument
* @param UpdatesCompanyStatus $updatesCompanyStatus
* @param UpdatesOrdersStatus $updatesOrdersStatus
* @param CreateNotificationProcessor $createNotificationProcessor
* @param ApproveIdentificationDocumentOnExchangeProcessor $approveIdentificationDocumentOnExchangeProcessor
*/
public function __construct(CanApproveDocument $canApproveDocument, ApprovesDocument $approvesDocument, RejectsDocument $rejectsDocument, FetchesDocument $fetchesDocument, UpdatesCompanyStatus $updatesCompanyStatus, UpdatesOrdersStatus $updatesOrdersStatus, CreateNotificationProcessor $createNotificationProcessor)
public function __construct(CanApproveDocument $canApproveDocument, ApprovesDocument $approvesDocument, RejectsDocument $rejectsDocument, FetchesDocument $fetchesDocument, UpdatesCompanyStatus $updatesCompanyStatus, UpdatesOrdersStatus $updatesOrdersStatus, CreateNotificationProcessor $createNotificationProcessor, ApproveIdentificationDocumentOnExchangeProcessor $approveIdentificationDocumentOnExchangeProcessor, PendingVerificationDocument $pendingVerificationDocument)
{
$this->canApproveDocument = $canApproveDocument;
$this->approvesDocument = $approvesDocument;
@@ -74,6 +84,8 @@ class ApproveIdentificationDocumentLogic extends AbstractControllerLogic
$this->updatesCompanyStatus = $updatesCompanyStatus;
$this->updatesOrdersStatus = $updatesOrdersStatus;
$this->createNotificationProcessor = $createNotificationProcessor;
$this->pendingVerificationDocument = $pendingVerificationDocument;
$this->approveIdentificationDocumentOnExchangeProcessor = $approveIdentificationDocumentOnExchangeProcessor;
}
/**
@@ -83,37 +95,50 @@ class ApproveIdentificationDocumentLogic extends AbstractControllerLogic
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
public function logic(Request $request) : JsonResponse
public function logic(Request $request): JsonResponse
{
$documentId = $request->route('document_id');
if ($request->route('exchange_company_id')) {
$companyModule = ExchangeCompanyConnection::where('exchange_company_id', $request->route('exchange_company_id'))->first()->companyModule;
$company = $companyModule->company;
$documentId = $company->documents()->whereIn('document_type', DocumentType::IDENTIFICATION_DOCUMENTS)->where('status', ApprovalStatus::PENDING_VERIFICATION)->first()->id;
}
$status = $request->route('status');
/** @var Document $document */
$document = $this->fetchesDocument->execute(['id' => $request->route('document_id')]);
$this->canApproveDocument->passes();
$document = $status === 'approve' ? $this->approvesDocument->execute($document) : $this->rejectsDocument->execute($document);
$this->updatesCompanyStatus->execute($document->owner, $status === 'approve' ? ApprovalStatus::APPROVED : ApprovalStatus::REJECTED);
// $object = new NotificationObject(
// 'ID Verification ' . ( $status === 'approve' ? 'Approved' : 'Rejected' ),
// ( $status === 'approve' ? 'Dear user, congratulations that your ' : 'Dear user, we are sorry to inform you that your ' ) . ( $document->type === 'IDENTITY_CARD' ? 'IC' : 'SSM' ) . ( $status === 'approve' ? ' has been approved. Start your first order now!' : ' has been rejected due to ' . ( $request->input('rejectRemark') ?? '' ) . ', please resubmit it for further action.' ),
// $document->owner,
// $document->owner->companyModules()->first()->employees()->first(),
// $document,
// );
//
// $this->createNotificationProcessor->execute($object);
if($status === 'approve'){
$orders = $this->updatesOrdersStatus->execute($document->owner, ApprovalStatus::APPROVED);
if ($status === 'approve') {
$document = $this->approvesDocument->execute($document);
$this->updatesCompanyStatus->execute($document->owner, ApprovalStatus::APPROVED);
$this->updatesOrdersStatus->execute($document->owner, ApprovalStatus::APPROVED);
} elseif ($status === 'reject') {
$document = $this->rejectsDocument->execute($document);
$this->updatesCompanyStatus->execute($document->owner, ApprovalStatus::REJECTED);
} elseif ($status === 'pending') {
$document = $this->pendingVerificationDocument->execute($document);
$this->updatesCompanyStatus->execute($document->owner, ApprovalStatus::PENDING_VERIFICATION);
}
// $object = new NotificationObject(
// 'ID Verification ' . ( $status === 'approve' ? 'Approved' : 'Rejected' ),
// ( $status === 'approve' ? 'Dear user, congratulations that your ' : 'Dear user, we are sorry to inform you that your ' ) . ( $document->type === 'IDENTITY_CARD' ? 'IC' : 'SSM' ) . ( $status === 'approve' ? ' has been approved. Start your first order now!' : ' has been rejected due to ' . ( $request->input('rejectRemark') ?? '' ) . ', please resubmit it for further action.' ),
// $document->owner,
// $document->owner->companyModules()->first()->employees()->first(),
// $document,
// );
// $this->createNotificationProcessor->execute($object);
// if this request is not calling from exchange portal, then approve the document on exchange portal for this user
$companyModule = $document->owner->companyModules()->first();
if (!$request->route('exchange_company_id') && $companyModule->exchangeCompanyConnection()->first()) {
$this->approveIdentificationDocumentOnExchangeProcessor->execute($request, $companyModule->id, $status);
}
return $this->resourceResponse(new DocumentResource($document));
}
}
@@ -0,0 +1,74 @@
<?php
namespace App\Classes\Modules\Companies\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Contacts\DataTransferObjects\ContactObject;
use App\Classes\Modules\Companies\Services\FetchesCompany;
use App\Classes\Modules\Contacts\Services\CreatesContact;
use App\Http\Resources\ContactResource;
use ErrorException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use App\Classes\Modules\Contacts\Processors\CreateContactProcessor;
use App\Http\Resources\CompanyResource;
class CreateCompanyContactNumberLogic extends AbstractControllerLogic
{
/**
* @return array
*/
protected function notification():array {
return [
'title' => 'Created Company Contact Number',
'message' => 'You have successfully created the Company Contact Number'
];
}
/** @var FetchesCompany */
private $fetchesCompany;
/** @var CreatesContact */
private $createsContact;
/** @var CreateContactProcessor */
private $createContactProcessor;
/**
* UpdateCompanyControllersLogic constructor.
* @param FetchesCompany $fetchesCompany
* @param CreatesContact $createsContact
* @param CreateContactProcessor $createContactProcessor
*/
public function __construct(FetchesCompany $fetchesCompany, CreatesContact $createsContact, CreateContactProcessor $createContactProcessor)
{
$this->fetchesCompany = $fetchesCompany;
$this->createsContact = $createsContact;
$this->createContactProcessor = $createContactProcessor;
}
/**
* @param Request $request
* @return JsonResponse
* @throws ErrorException
*/
public function logic(Request $request) : JsonResponse
{
$company = $this->fetchesCompany->execute(['id' => $request->input('companyId')]);
$contact = new ContactObject(
$company->reference,
$request->input('contactNumber'),
$company->email,
$company->wechat_id
);
$this->createContactProcessor->execute($contact, $company);
return $this->resourceResponse(new CompanyResource($company));
}
}
@@ -4,6 +4,7 @@ namespace App\Classes\Modules\Companies\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Companies\Processors\CreateIdentificationDocumentOnExchangeProcessor;
use App\Classes\Modules\Companies\Services\FetchesCompany;
use App\Classes\Modules\Companies\Services\UpdatesCompanyStatus;
use App\Classes\Modules\Documents\DataTransferObjects\DocumentObject;
@@ -14,6 +15,7 @@ use App\Classes\ValueObjects\Constants\CompanyType;
use App\Classes\ValueObjects\Constants\DocumentType;
use App\Models\Company;
use App\Models\Document;
use App\Models\ExchangeCompanyConnection;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -42,6 +44,9 @@ class CreateIdentificationDocumentLogic extends AbstractControllerLogic
/** @var UpdatesCompanyStatus */
private $updatesCompanyStatus;
/** @var CreateIdentificationDocumentOnExchangeProcessor */
private $createIdentificationDocumentOnExchangeProcessor;
/**
* CreateIdentificationDocumentLogic constructor.
@@ -49,13 +54,15 @@ class CreateIdentificationDocumentLogic extends AbstractControllerLogic
* @param CreatesDocument $createsDocument
* @param CreatesFiles $createsFile
* @param UpdatesCompanyStatus $updatesCompanyStatus
* @param CreateIdentificationDocumentOnExchangeProcessor $createIdentificationDocumentOnExchangeProcessor
*/
public function __construct(FetchesCompany $fetchesCompany, CreatesDocument $createsDocument, CreatesFiles $createsFile, UpdatesCompanyStatus $updatesCompanyStatus)
public function __construct(FetchesCompany $fetchesCompany, CreatesDocument $createsDocument, CreatesFiles $createsFile, UpdatesCompanyStatus $updatesCompanyStatus, CreateIdentificationDocumentOnExchangeProcessor $createIdentificationDocumentOnExchangeProcessor)
{
$this->fetchesCompany = $fetchesCompany;
$this->createsDocument = $createsDocument;
$this->createsFile = $createsFile;
$this->updatesCompanyStatus = $updatesCompanyStatus;
$this->createIdentificationDocumentOnExchangeProcessor = $createIdentificationDocumentOnExchangeProcessor;
}
/**
@@ -66,8 +73,15 @@ class CreateIdentificationDocumentLogic extends AbstractControllerLogic
public function logic(Request $request) : JsonResponse
{
if ($request->route('exchange_company_id')) {
$companyModule = ExchangeCompanyConnection::where('exchange_company_id', $request->route('exchange_company_id'))->first()->companyModule;
$companyId = $companyModule->company_id;
} else {
$companyId = $request->route('id');
}
/** @var Company $company */
$company = $this->fetchesCompany->execute(['id' => $request->route('id')]);
$company = $this->fetchesCompany->execute(['id' => $companyId]);
$object = new DocumentObject($company->type === CompanyType::COMPANY_BUSINESS ?
DocumentType::SSM_REGISTRATION : DocumentType::IDENTITY_CARD, $request->input('files'),
$request->input('identification_no'), ApprovalStatus::PENDING_VERIFICATION, 'identifications');
@@ -78,6 +92,12 @@ class CreateIdentificationDocumentLogic extends AbstractControllerLogic
$this->updatesCompanyStatus->execute($company, ApprovalStatus::PENDING_VERIFICATION);
// create identification on exchange if this request not coming from exchange
$companyModule = $company->companyModules()->first();
if (!$request->route('exchange_company_id') && $companyModule->exchangeCompanyConnection()->first()) {
$this->createIdentificationDocumentOnExchangeProcessor->execute($request, $companyModule->id);
}
return $this->response([]);
}
@@ -0,0 +1,45 @@
<?php
namespace App\Classes\Modules\Companies\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Companies\Processors\LinkExchangeCompanyProcessor;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class LinkExchangeCompanyLogic extends AbstractControllerLogic
{
protected function notification():array {
return [
'title' => 'Connect Exchange with Izyim Account',
'message' => 'You have successfully connect your exchange account to Izyim Account'
];
}
/** @var LinkExchangeCompanyProcessor */
private $linkExchangeCompanyProcessor;
/**
* LinkExchangeCompanyLogic constructor.
* @param LinkExchangeCompanyProcessor $linkExchangeCompanyProcessor
*/
public function __construct(LinkExchangeCompanyProcessor $linkExchangeCompanyProcessor)
{
$this->linkExchangeCompanyProcessor = $linkExchangeCompanyProcessor;
}
/**
* @param Request $request
* @return JsonResponse
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\AccessUnauthorisedException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
protected function logic(Request $request): JsonResponse {
return $this->response($this->linkExchangeCompanyProcessor->execute($request));
}
}
@@ -3,10 +3,14 @@
namespace App\Classes\Modules\Companies\ControllersLogic;
use App\Classes\Exceptions\AccessForbiddenException;
use App\Classes\Exceptions\MalformedRequestException;
use App\Classes\Exceptions\RequestValidationException;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Companies\Services\ListsCompanyModules;
use App\Classes\Modules\Companies\Standards\Rules\CanListCompanies;
use App\Http\Resources\CompanyModuleResource;
use App\Transformers\CompanyTransformer;
use ErrorException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -17,7 +21,8 @@ class ListCompanyModulesLogic extends AbstractControllerLogic
/**
* @return array
*/
protected function notification():array {
protected function notification(): array
{
return [
'title' => 'Retrieved Company Moduels',
'message' => 'You have successfully retrieved a list of Companies'
@@ -45,15 +50,26 @@ class ListCompanyModulesLogic extends AbstractControllerLogic
/**
* @param Request $request
* @return JsonResponse
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
* @throws AccessForbiddenException
* @throws MalformedRequestException
* @throws RequestValidationException
*/
public function logic(Request $request) : JsonResponse
public function logic(Request $request): JsonResponse
{
$this->canListCompanies->passes();
$query = $this->listsCompanyModules->execute($this->listsCompanyModules->deserializeFilters($request->input('filters')));
/*include all relationships*/
/* return fractal()
->collection($query, new CompanyTransformer)
->parseIncludes('company')
->parseIncludes('contact')
->parseIncludes('remarks')
->parseIncludes('address')
->parseIncludes('billingAddress')
->respond(200, [], JSON_PRETTY_PRINT);*/
return $this->collectionResponse(CompanyModuleResource::collection($query));
}
@@ -0,0 +1,67 @@
<?php
namespace App\Classes\Modules\Companies\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Contacts\DataTransferObjects\ContactObject;
use App\Classes\Modules\Contacts\Services\FetchesContact;
use App\Classes\Modules\Contacts\Services\UpdatesContact;
use App\Http\Resources\ContactResource;
use ErrorException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class UpdateCompanyContactNumberLogic extends AbstractControllerLogic
{
/**
* @return array
*/
protected function notification():array {
return [
'title' => 'Updated Company Contact Number',
'message' => 'You have successfully updated the Company Contact Number'
];
}
/** @var FetchesContact */
private $fetchesContact;
/** @var UpdatesContact */
private $updatesContact;
/**
* UpdateCompanyControllersLogic constructor.
* @param FetchesContact $fetchesContact
* @param UpdatesContact $updatesContact
*/
public function __construct(FetchesContact $fetchesContact, UpdatesContact $updatesContact)
{
$this->fetchesContact = $fetchesContact;
$this->updatesContact = $updatesContact;
}
/**
* @param Request $request
* @return JsonResponse
* @throws ErrorException
*/
public function logic(Request $request) : JsonResponse
{
$query = $this->fetchesContact->execute(['id' => $request->input('id')]);
$contact = new ContactObject(
$query->reference,
$request->input('contactNumber'),
$query->email,
$query->wechat_id
);
$this->updatesContact->execute($query, $contact);
return $this->resourceResponse(new ContactResource($query));
}
}
@@ -0,0 +1,48 @@
<?php
namespace App\Classes\Modules\Companies\Processors;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Log;
class ApproveIdentificationDocumentOnExchangeProcessor
{
/**
* @param Request $request
* @return string
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
public function execute(Request $request, $companyModuleId, $status) {
if (App::environment(['production'])) {
dd("Delete this line before push to production");
$url = "https://exchange.cief-malaysia.com/api/v1/shipping/company/{$companyModuleId}/identification/approval/{$status}";
} else if (App::environment(['local'])) {
$url = "http://127.0.0.1:8000/api/v1/shipping/company/{$companyModuleId}/identification/approval/{$status}";
} else {
$url = "https://dev.exchange.cief-malaysia.com/api/v1/shipping/company/{$companyModuleId}/identification/approval/{$status}";
}
try {
$client = new \GuzzleHttp\Client(['verify' => false]);
$token = $request->bearerToken();
$headers = [
'Authorization' => 'Bearer ' . $token,
'Accept' => 'application/json',
];
$formParams = $request->toArray();
$response = $client->request('PUT', $url, [
'headers' => $headers,
'form_params' => $formParams
]);
$body = $response->getBody();
$contents = json_decode($body, true);
return $contents;
} catch(\GuzzleHttp\Exception\RequestException $exception){
Log::error($exception->getResponse()->getBody()->getContents());
}
}
}
@@ -0,0 +1,48 @@
<?php
namespace App\Classes\Modules\Companies\Processors;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Log;
class CreateIdentificationDocumentOnExchangeProcessor
{
/**
* @param Request $request
* @return string
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\MalformedRequestException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
public function execute(Request $request, $companyModuleId) {
if (App::environment(['production'])) {
dd("Delete this line before push to production");
$url = "https://exchange.cief-malaysia.com/api/v1/shipping/company/{$companyModuleId}/identification/create";
} else if (App::environment(['local'])) {
$url = "http://127.0.0.1:8000/api/v1/shipping/company/{$companyModuleId}/identification/create";
} else {
$url = "https://dev.exchange.cief-malaysia.com/api/v1/shipping/company/{$companyModuleId}/identification/create";
}
try {
$client = new \GuzzleHttp\Client(['verify' => false]);
$token = $request->bearerToken();
$headers = [
'Authorization' => 'Bearer ' . $token,
'Accept' => 'application/json',
];
$formParams = $request->toArray();
$response = $client->request('POST', $url, [
'headers' => $headers,
'form_params' => $formParams
]);
$body = $response->getBody();
$contents = json_decode($body, true);
return $contents;
} catch(\GuzzleHttp\Exception\RequestException $exception){
Log::error($exception->getResponse()->getBody()->getContents());
}
}
}
@@ -0,0 +1,80 @@
<?php
namespace App\Classes\Modules\Companies\Processors;
use App\Classes\Modules\Accounts\DataTransferObjects\AuthenticationCredentialsObject;
use App\Classes\Modules\Accounts\Services\AuthenticatesUser;
use App\Classes\Modules\Accounts\Services\AuthenticationRedirect;
use App\Classes\Modules\Accounts\Services\FetchesUser;
use App\Classes\Modules\Accounts\Services\GeneratesAuthenticationToken;
use App\Classes\Modules\Accounts\Standards\Rules\CanAuthenticateUser;
use App\Classes\Modules\Companies\Services\ConnectCompanyModuleToExchangeCompany;
use Illuminate\Http\Request;
class LinkExchangeCompanyProcessor
{
/** @var CanAuthenticateUser */
private $canAuthenticateUser;
/** @var AuthenticatesUser */
private $authenticatesUser;
/** @var GeneratesAuthenticationToken */
private $generatesAuthenticationToken;
/** @var FetchesUser */
private $fetchesUser;
/** @var AuthenticationRedirect */
private $authenticationRedirect;
/** @var ConnectCompanyModuleToExchangeCompany */
private $connectCompanyModuleToExchangeCompany;
/**
* AuthenticationProcessor constructor.
* @param CanAuthenticateUser $canAuthenticateUser
* @param AuthenticatesUser $authenticatesUser
* @param GeneratesAuthenticationToken $generatesAuthenticationToken
* @param FetchesUser $fetchesUser
* @param AuthenticationRedirect $authenticationRedirect
* @param ConnectCompanyModuleToExchangeCompany $connectCompanyModuleToExchangeCompany
*/
public function __construct(CanAuthenticateUser $canAuthenticateUser, AuthenticatesUser $authenticatesUser, GeneratesAuthenticationToken $generatesAuthenticationToken, FetchesUser $fetchesUser, AuthenticationRedirect $authenticationRedirect, ConnectCompanyModuleToExchangeCompany $connectCompanyModuleToExchangeCompany)
{
$this->canAuthenticateUser = $canAuthenticateUser;
$this->authenticatesUser = $authenticatesUser;
$this->generatesAuthenticationToken = $generatesAuthenticationToken;
$this->fetchesUser = $fetchesUser;
$this->authenticationRedirect = $authenticationRedirect;
$this->connectCompanyModuleToExchangeCompany = $connectCompanyModuleToExchangeCompany;
}
/**
* @param Request $request
* @return array
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\AccessUnauthorisedException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
public function execute(Request $request): array {
$object = new AuthenticationCredentialsObject($request->input('email'), $request->input('password'));
$this->canAuthenticateUser->passes($object);
$this->authenticatesUser->execute($object);
$user = $this->fetchesUser->execute(['email' => $object->getEmail()]);
$companyModule = $user->companyModule()->first();
$this->connectCompanyModuleToExchangeCompany->execute($companyModule, $request->route('exchange_company_id'));
return ['shipping_company_module_id' => $companyModule->id];
}
}
@@ -20,7 +20,7 @@ class AssignsCompanyConnectionToConnectionSegment extends AbstractUpdateRecord
{
try {
$companyConnection->segments()->attach($segment);
$companyConnection->segments()->attach($segment, ['created_at' => now(), 'updated_at' => now()]);
return $companyConnection;
@@ -22,7 +22,7 @@ class AssignsCompanyToSegment extends AbstractUpdateRecord
try {
$companyModule = $company->companyModules()->where('type', BusinessType::IMPORTER)->first();
$connection = $companyModule->connections()->where('inviter_reference', 'CIEF');
$connection->segments()->attach($segment);
$connection->segments()->attach($segment, ['created_at' => now(), 'updated_at' => now()]);
return $company;
@@ -18,7 +18,7 @@ class AssignsEmployee extends AbstractUpdateRecord
{
try {
$object->getCompanyModule()->employees()->attach($object->getUser(), ['status' => $object->getStatus(),'role_id' => $object->getRoleId()]);
$object->getCompanyModule()->employees()->attach($object->getUser(), ['status' => $object->getStatus(), 'role_id' => $object->getRoleId(), 'created_at' => now(), 'updated_at' => now()]);
return $object->getCompanyModule();
@@ -0,0 +1,25 @@
<?php
namespace App\Classes\Modules\Companies\Services;
use App\Classes\Exceptions\MalformedRequestException;
use App\Classes\General\Eloquent\AbstractUpdateRecord;
use App\Models\CompanyModule;
use App\Models\ExchangeCompanyConnection;
class ConnectCompanyModuleToExchangeCompany extends AbstractUpdateRecord
{
/**
* @param Company $company
* @return \Illuminate\Database\Eloquent\Model
* @throws MalformedRequestException
*/
public function execute(CompanyModule $companyModule, $exchangeCompanyId)
{
$model = new ExchangeCompanyConnection();
$model->company_module_id = $companyModule->id;
$model->exchange_company_id = $exchangeCompanyId;
return $this->handler($model);
}
}
@@ -8,6 +8,7 @@ use App\Classes\Modules\Contacts\Services\UpdatesContact;
use App\Classes\Modules\Contacts\DataTransferObjects\ContactObject;
use App\Classes\Modules\Contacts\Services\FetchesContact;
use App\Http\Resources\ContactResource;
use App\Transformers\ContactTransformer;
use ErrorException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -63,6 +64,13 @@ class UpdateContactLogic extends AbstractControllerLogic
$query = $this->updatesContact->execute($query, $object);
/*uniformity*/
/* return fractal()
->item($query, new ContactTransformer())
->parseIncludes('remark')
->respond(200, [], JSON_PRETTY_PRINT);*/
return $this->resourceResponse(new ContactResource($query));
}
@@ -7,6 +7,7 @@ use App\Classes\Modules\Orders\Services\CancelsOrder;
use App\Classes\Modules\Orders\Services\FetchesOrder;
use App\Http\Resources\DeliveryOrderResource;
use App\Models\Order;
use App\Transformers\DeliveryOrderTransformer;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
@@ -52,6 +53,14 @@ class CancelDeliveryOrderLogic extends AbstractControllerLogic
/** @var Order $order */
$order = $this->fetchesOrder->execute(['id' => $request->route('id')]);
$order = $this->cancelsOrder->execute($order);
//no relationship needed
/* return fractal()
->item($order, new DeliveryOrderTransformer())
->respond(200, [], JSON_PRETTY_PRINT);*/
return $this->resourceResponse(new DeliveryOrderResource($this->cancelsOrder->execute($order)));
}
@@ -172,6 +172,12 @@ class CreateDeliveryOrderLogic extends AbstractControllerLogic
$packageObject = new PackageObject($request->input('packing_list.type'), $request->input('packing_list.description'), (float) 1, (float) 1, (float) 1, $request->input('packing_list.weight'), (float) $request->input('packing_list.quantity'), ApprovalStatus::APPROVED);
$this->createsPackage->execute($packageObject, $packingList);
//add relationship to order
/* return fractal()
->item($order, new DeliveryOrderTransformer())
->parseIncludes(['sender_address', 'delivery_address', 'sender_address.contacts', 'delivery_address.contacts', 'sender_address.remarks', 'delivery_address.remarks', 'packing_list', 'packing_list.packages'])
->respond(200, [], JSON_PRETTY_PRINT);*/
return $this->resourceResponse(new DeliveryOrderResource($order));
}

Some files were not shown because too many files have changed in this diff Show More