Commit graph

250 commits

Author SHA1 Message Date
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