Commit graph

250 commits

Author SHA1 Message Date
Korina Cordero
c3ffbb20ff Add hub filtering code. #575 2021-06-02 10:00:35 +00:00
Korina Cordero
3d89199fd8 Improve flow for cleaning contact numbers. #572 2021-06-01 03:06:30 +00:00
bfc86abd6a Refactor entire car club import command #572 2021-06-01 01:10:38 +08:00
5830ad0c09 Fix issue by removing entity manager clear #572 2021-05-31 20:43:21 +08:00
Korina Cordero
6a075bd46b Fix issues found. #572 2021-05-31 10:36:45 +00:00
Korina Cordero
7d99eab2cc Add writing to file actions done. #572 2021-05-31 09:44:42 +00:00
Korina Cordero
be48ecdb82 Added cleaning of contact numbers. #572 2021-05-31 05:39:20 +00:00
Korina Cordero
079c8a033a Add command to create customer from car club file. #572 2021-05-28 10:06:18 +00:00
Korina Cordero
66e1a71890 Apply branch 551 changes. #567 2021-05-19 08:10:18 +00:00
Korina Cordero
b7c722d8e9 Remove the unused date code. #539 2021-03-02 02:37:17 +00:00
Korina Cordero
643bc61bf9 Remove commented out code. #539 2021-03-02 02:31:11 +00:00
Korina Cordero
8f839674b5 Add headers to csv file. #539 2021-03-02 01:49:03 +00:00
fd8845118e Change customer source report generation to use raw sql #539 2021-03-01 23:16:29 +08:00
Korina Cordero
59a77c945c Add command to get all customers for report. #539 2021-03-01 11:09:43 +00:00
Korina Cordero
f5f321b506 Add checking if date schedule is more than 24 hours before adding to cache. Add advance orders to cache when refreshing. #535 2021-02-10 07:59:32 +00:00
Korina Cordero
eaac08e84a Change time period to refresh cache to 5 hours. #535 2021-02-09 05:26:33 +00:00
Korina Cordero
b730e9b43a Added logs for cache refresh. #535 2021-02-09 02:58:22 +00:00
Korina Cordero
1101e025a5 Add command to clear and repopulate the latest job order cache. #535 2021-02-08 09:12:39 +00:00
Korina Cordero
28025a5735 Add checking for empty row and empty columns. #523 2020-10-20 03:55:40 +00:00
Korina Cordero
7107c57eb6 Create command to import SAP information. #504 2020-09-25 09:58:07 +00:00
Korina Cordero
beee87c3b4 Modify the ImportSAPDeltaCommand to make import checking easier. #504 2020-09-23 04:47:15 +00:00
Korina Cordero
7c49bd9f0a Add ImportSAPDeltaCommand. #504 2020-09-22 11:17:25 +00:00
Korina Cordero
df950006c1 Revert "Merge branch '457-cmb-add-telephone-number-to-search' into 'master'"
This reverts merge request !536
2020-08-05 10:17:40 +00:00
Korina Cordero
0f06ca7339 Add saving of JOs. #427 2020-06-18 04:38:08 +00:00
Korina Cordero
9833a2709a Add command to add test JO data 2020-06-18 03:47:46 +00:00
Korina Cordero
0a06a7ad31 Add command to copy the config and messages files. #426 2020-06-17 08:49:52 +00:00
Korina Cordero
78136cc281 Add output file for existing warranties and invalid plate numbers. #400 2020-05-08 05:30:27 +00:00
Korina Cordero
24d297b48f Add error log if JO fulfillment cannot created the warranty. Fix for warranty creation issues when creating warranty from existing JO. #400 2020-05-07 11:13:43 +00:00
Korina Cordero
258a379b68 Add filter for 9900000000 number. #398 2020-05-05 03:07:08 +00:00
e123008061 Activate actual sending of warranty SMS and change configuration to point to live DR URL #394 2020-05-04 18:34:42 +08:00
46da9b6bfd Add details to message #394 2020-05-04 18:04:56 +08:00
1a78320ca9 Fix when date is not speicifed in warranty:sms command #394 2020-05-04 11:34:34 +08:00
e8446cd181 Merge branch '394-warranty-expiration-sms-reminder' of gitlab.com:jankstudio/resq into 394-warranty-expiration-sms-reminder 2020-05-04 11:31:00 +08:00
82baef50ee Make checks for mobile number format #394 2020-05-04 11:30:43 +08:00
Korina Cordero
81f8bf84d3 Made date an optional argument to command. #394 2020-05-04 03:23:04 +00:00
cb95705848 Add command for sending warranty SMS #394 2020-05-04 11:05:28 +08:00
434cedf206 Merge branch '384-make-map-tile-server-configurable' of gitlab.com:jankstudio/resq into 394-warranty-expiration-sms-reminder 2020-05-01 14:05:57 +08:00
ff6b4da4df Save records of sms messages when sending #384 2020-05-01 14:03:27 +08:00
Korina Cordero
2a2cde8a2d Modify the message for clarity. #390 2020-04-29 08:24:07 +00:00
Korina Cordero
615b5a3390 Merge branch 'master' of gitlab.com:jankstudio/resq into 329-transition-branch-for-cmb-and-resq-merging 2020-04-03 02:32:07 +00:00
Korina Cordero
c38eb147c8 Add logging of duplicate entries when importing SAP batteries. #371 2020-04-01 08:33:25 +00:00
Korina Cordero
1829e9112e Add error_logging in case of duplicate SAP battery. #371 2020-04-01 04:30:08 +00:00
fb76cb0445 Replace ObjectManager with EntityManagerInterface #335 2020-02-11 20:31:28 +08:00
Korina Cordero
10ecd6298a Merge branch '270-final-cmb-fixes' of gitlab.com:jankstudio/resq into 318-error_log-cleanup 2020-01-30 04:03:44 +00:00
Korina Cordero
dab8986ad1 Remove or comment out error_logs meant for debugging purposes. #318 2020-01-30 00:31:01 +00:00
f350b3ebb8 Make command to load active job order cache #299 2020-01-26 02:06:30 +08:00
Korina Cordero
d6015978ae Merge branch '270-final-cmb-fixes' of gitlab.com:jankstudio/resq into 307-cmb-fix-customer-hard-coded-country-code 2020-01-22 04:54:01 +00:00
Korina Cordero
c224b1773d Modify query to find customer vehicle using plate number. #302 2020-01-20 06:37:29 +00:00
Korina Cordero
f5899f618d Fix for command that computes the expiration date of existing warranties. #301 2020-01-20 03:21:51 +00:00
Korina Cordero
eea64645b5 Move updating of customer vehicle out of the command and into the warranty service. #290 2019-12-23 03:54:01 +00:00
Korina Cordero
10d9e6e5ae Update customer vehicle warranty information when warranty is uploaded. #290 2019-12-23 02:04:48 +00:00
Korina Cordero
5544d99a98 Modify the updating of customer vehicle. #290 2019-12-20 10:17:31 +00:00
Korina Cordero
ff56db09b0 Add command to update customer vehicle from warranty data. #290 2019-12-20 07:30:08 +00:00
Korina Cordero
a10ef2b5d9 Fix testing issues found for warranty handler. #286 2019-12-18 07:57:39 +00:00
Korina Cordero
a02c364c1f Fix testing issues with command. #286 2019-12-16 09:58:40 +00:00
Korina Cordero
7da009f673 Move getWarrantyPeriod into the WarrantyHandler. #286 2019-12-16 09:49:48 +00:00
Korina Cordero
bd2ea5fba3 Add the WarrantyHandler service. Move the computeDateExpire to the service. #286 2019-12-16 07:29:25 +00:00
Korina Cordero
c1203368c0 Use SKU to find the battery first. #280 2019-12-12 08:33:29 +00:00
Korina Cordero
243d238ad7 Finish command to compute expiration date for existing warranties. #280 2019-12-11 08:43:15 +00:00
Korina Cordero
6daba0d305 Add command to compute expiry date for warranty. #280 2019-11-29 03:41:34 +00:00
Korina Cordero
0372dc5a5a Remove dotenv implementation from customer creation from warranty. #275 2019-11-22 04:01:54 +00:00
Korina Cordero
e462570d9d Remove dotenv implementation from setting of customer privacy policy. #275 2019-11-22 03:27:16 +00:00
Korina Cordero
f914fce20f Add report of added customers and customer vehicles as output. #274 2019-11-21 02:39:31 +00:00
2b21db6c01 Filter valid phone numbers and convert the 09XXXXXXXXX format to 9XXXXXXXXX #274 2019-11-21 10:20:07 +08:00
fba5d9cb86 Add method for getting default vehicle because of em->clear #274 2019-11-21 09:27:35 +08:00
9a4ead6ab9 Return the customer and customer vehicle saving #274 2019-11-21 09:18:31 +08:00
575bf21639 Fix blank phone number issue #274 2019-11-21 09:10:58 +08:00
142e34ba31 Refactor to use bulk processing best practice based on doctrine docs #274
Reference: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/batch-processing.html
2019-11-21 08:53:48 +08:00
d094b5e8d9 Refactor create customer from warranty command #274 2019-11-21 00:02:44 +08:00
Korina Cordero
737dd4e22a Add ids to env.dist. #274 2019-11-20 11:36:56 +00:00
Korina Cordero
98c5bdc670 Add clean plate number function. #274 2019-11-20 08:41:27 +00:00
Korina Cordero
041d5b408b Modify the customer hash. #274 2019-11-20 08:00:12 +00:00
Korina Cordero
9b0bd63723 Add csv file for warranties that have no phone number. #274 2019-11-20 06:40:37 +00:00
Korina Cordero
a8f069781d Fix issues found during testing. #274 2019-11-20 03:53:34 +00:00
Korina Cordero
6bde277fef Fix syntax errors. #274 2019-11-20 02:01:41 +00:00
Korina Cordero
515bb84c13 Remove Assert NotBlank from color and model year. #274 2019-11-20 01:40:07 +00:00
Korina Cordero
9c4db034d0 Add command to create customer and customer vehicle from warranty. #274 2019-11-19 08:35:58 +00:00
Korina Cordero
934afecee2 Remove unnecessary comments from command. #270 2019-10-30 02:20:32 +00:00
Korina Cordero
c3195418b1 Add command to seed current rider sessions to redis cache. #270 2019-10-30 01:24:54 +00:00
Korina Cordero
906cf2b6af Add normalize name method to process special cases for battery size. #270 2019-10-13 08:04:54 +00:00
Korina Cordero
6d0af26981 Redo the import tradein price command. #270 2019-10-11 09:13:30 +00:00
Korina Cordero
02b88bca64 Redo the battery vehicle compatibility command. #270 2019-10-11 09:03:51 +00:00
Korina Cordero
c0d363dd25 Redo the import battery data command. #270 2019-10-11 05:40:22 +00:00
Korina Cordero
7adcb5244e Add command to add tradein prices to battery sizes using a csv file. #270 2019-10-10 07:37:08 +00:00
Korina Cordero
111bb55a50 Add command to add prices to batteries using a csv file. #270 2019-10-10 06:59:46 +00:00
Korina Cordero
547c13d73b Fix the adding of compatible batteries for a vehicle. #270 2019-10-03 05:39:02 +00:00
Korina Cordero
dcd34f6f73 Fix adding of compatible batteries to vehicles. #270 2019-10-03 04:12:12 +00:00
Korina Cordero
2b48c702d4 Fix for fatal error in command. #270 2019-10-03 03:44:45 +00:00
Korina Cordero
5ab7cd6e4c Add vehicle and vehicle manufacturers in the import command. #270 2019-10-02 12:56:22 +00:00
Korina Cordero
54c9871189 merge import batter commands under one command. #270 2019-10-02 11:27:10 +00:00
Korina Cordero
a29ea8756b Add command to add batteries. #270 2019-10-02 07:41:19 +00:00
Korina Cordero
5348d2c51c Add command to add battery sizes from given csv file. #270 2019-10-02 05:36:38 +00:00
Korina Cordero
987668ffbc Add command to add battery models from given csv file. #270 2019-10-02 05:04:36 +00:00
Korina Cordero
5980715128 Add command to add battery manufacturers from given csv file. #270 2019-10-02 04:49:56 +00:00
Korina Cordero
b794b2e622 Remove the Assert\NotBlank from branch in Location. Add command to import partners given a csv file. #242 2019-08-05 04:14:35 +00:00
Korina Cordero
3c460b86c9 Use the env vars for the policy in the command. Improve the queries for privacy policy. #235 2019-07-25 03:19:20 +00:00
Korina Cordero
830803ac2d Create command to set the privacy policy for existing customers. #233 2019-07-24 12:54:59 +00:00
81ab6db063 Merge branch '196-new-apn-sender' into 'master'
Replace apns sender with new one #196

Closes #196

See merge request jankstudio/resq!254
2019-05-28 09:53:21 +00:00
740110b42f Merge branch '180-rider-location-caching' into 'master'
Resolve "Rider location caching"

Closes #180

See merge request jankstudio/resq!252
2019-05-28 03:24:22 +00:00
754af5e1e4 Fix memory issue for warranty generation #213 2019-05-28 01:20:09 +08:00
Korina Cordero
8adea20f59 Fix memory error when querying the database. #213 2019-05-27 13:59:51 +00:00
46bc686372 Merge branch '187-generate-warranty-entries-for-existing-job-orders' into 'master'
Resolve "Generate warranty entries for existing job orders"

Closes #187

See merge request jankstudio/resq!218
2019-05-27 02:10:37 +00:00
e6239eb053 Merge branch '204-set-customer-vehicle-current-battery' into 'master'
Resolve "Set customer vehicle current battery"

Closes #204

See merge request jankstudio/resq!238
2019-05-27 02:06:46 +00:00
f62a904822 Merge branch '206-redis-service' into 'master'
Resolve "Redis service"

Closes #206

See merge request jankstudio/resq!241
2019-05-27 02:06:19 +00:00
92c0f2d169 Fix bug in battery:generate_compatibility_json command #212 2019-05-27 09:57:20 +08:00
Korina Cordero
144156e377 Create command that generates a JSON file of vehicles and their models with their compatible battery. #212 2019-05-16 07:05:21 +00:00
Korina Cordero
afc07e7c68 Add service to connect to redis. Add command to test service with the HubCounter service. #206 2019-05-02 07:21:49 +00:00
Korina Cordero
76b1f07feb Create rider tracker service. Create a test command to test rider tracker service. #180 2019-04-23 11:02:40 +00:00
Korina Cordero
4e711ca2c3 Rename the service to JobOrderManager. #204 2019-04-22 06:04:22 +00:00
Korina Cordero
24715196e5 Create command to update the battery of the customer vehicle to the battery last purchased. #204 2019-04-15 08:58:30 +00:00
Korina Cordero
fd6e617f95 Add a service that sets the job order as fulfilled and sets the current battery of the customer vehicle to the battery that was purchased. Create a command that tests the service. #204 2019-04-12 07:39:21 +00:00
Korina Cordero
beeaed5c00 Fix query that checks if a warranty already exists. #187 2019-04-12 01:44:00 +00:00
Korina Cordero
7e6a469871 Merge branch 'master' of gitlab.com:jankstudio/resq into 187-generate-warranty-entries-for-existing-job-orders 2019-04-11 09:06:25 +00:00
Korina Cordero
e39289bb54 Add the customer name, mobile, and sap battery fields to the warranty csv file. #202 2019-04-09 09:23:38 +00:00
d7a2e7f899 Replace apns sender with new one #196 2019-03-28 11:22:28 +08:00
Korina Cordero
34c22b01e2 Add getters and setters for LegacyJobOrder. Create service that searches for plate number, name, and phone numbers in the legacy job orders, current job orders, and warranty. Create test command to test the search service. #182 2019-03-12 05:30:10 -04:00
2ffc856b10 Add GeofenceTracker service and test command #141 2019-03-10 22:33:35 +08:00
d24be90314 Refactor import kml to handle multiple polygons #141 2019-03-10 19:47:33 +08:00
Korina Cordero
5def677267 Create command that takes a kml file as an argument. Fix errors with the SupportedArea entity file and the KMLImporter service. 2019-03-06 19:52:05 -05:00
Korina Cordero
084d058341 Create Symfony command to generate warranties from existing job orders #187 2019-02-26 22:26:04 -05:00
Korina Cordero
7e7d99d9c9 Add initial changes to script that generates warranties for existing job orders 2019-02-22 05:29:10 -05:00
3d3f386fa3 Add command for populating long / lat fields in job order #186 2019-02-21 15:39:24 +08:00
f38b9944c2 Make command sap_battery:import repeatable #178 2019-02-01 18:41:22 +08:00
081d9cb93c Add command to import SAP battery csv #172 2019-01-20 15:38:38 +08:00
bfa39f4640 Add legacy job order and details migration commands #168 2019-01-09 17:01:08 +08:00
d39d554ba1 Add warranty migration for legacy data #168 2019-01-03 05:51:33 +08:00
1f0060d6c5 Fix legacy import command to populate plate_number table via load data infile #168 2018-12-30 00:27:52 +08:00
cdbc7897ca Add legacy battery to current battery translation #168 2018-11-13 17:42:05 +08:00
4df0e0e5ec Fix bug in rider report command #162 2018-09-28 10:31:07 +08:00
7e38f7a719 Modify rider report to accept date range #162 2018-09-17 12:34:37 +08:00
a0a1c664c2 Add dispatch time to rider time report #162 2018-09-14 15:59:51 +08:00
7382b4333c Limit rider time report to anything above september 5 #162 2018-09-14 14:59:06 +08:00
9efb6ae20f Add report:rider-time command #162 2018-09-14 14:49:17 +08:00
dc0f63fb64 Create new command for fulfilling pending job orders #160 2018-07-26 21:25:56 +08:00
c3d2ed3496 Add new command for fulfilling old job orders #160 2018-07-26 19:10:09 +08:00
af407ff4bc Add vehicle:merge command to clear duplicate vehicles #144 2018-06-16 11:51:28 +08:00
6918d44468 Fix customer import bug #75 2018-04-06 13:40:15 +08:00
f076827879 Add special cases to import customer command #73 2018-04-06 03:40:52 +08:00
36ac62a2ad Add better debugging messages when vehicle has no match in db #73 2018-04-06 00:25:19 +08:00
2895bb772e Minor fix in import customer command #70 2018-04-05 02:47:12 +08:00
b8602a5c28 Update import commands to new format #70 2018-04-05 01:53:45 +08:00
189f32d25c Update import vehicle to add secondary battery #58 2018-03-26 02:03:51 +08:00
1e2df32443 Add migration script and initial sql dump for customer and customer vehicle #52 2018-03-22 03:23:11 +08:00
516fd0f90e Add vehicle indexing and initial work on customer import #52 2018-03-21 13:11:18 +08:00
30494f9889 Add csv files and initial import script for customer and jo migration #52 2018-03-15 14:02:16 +08:00
30b67386a6 Add migration tool for batteries and vehicles #UAT 2018-03-13 03:37:40 +08:00
Ramon Gutierrez
884cd7b7f1 Add image file to battery, update cleanup task for orphaned images 2018-02-04 23:10:32 +08:00
Ramon Gutierrez
cbde853935 Add command to import csv for outlets and hubs 2018-02-01 04:18:11 +08:00
Ramon Gutierrez
7f4eaa6825 Add uploads cleanup console command 2018-01-17 02:04:46 +08:00
3b878948bf Initial commit 2018-01-06 21:26:46 +08:00