Commit graph

347 commits

Author SHA1 Message Date
Korina Cordero
c7af1c1592 Add rider_slots to hub. #381 2020-04-20 03:37:40 +00:00
Korina Cordero
8619c49397 Add the status_open field in Hub. #374 2020-04-08 09:39:42 +00:00
Korina Cordero
c62775c990 Moved the autoAssign code into a service. #374 2020-04-07 03:27:39 +00:00
8e3df8f1c4 Treat blank serial as null to avoid unique exception in db #270 2020-03-06 07:42:00 +08:00
bf535e37f5 Make sure rider's active jo is in an open status #362 2020-03-05 09:20:16 +08:00
07753274c3 Add initial job order prioritization features #360 2020-03-01 22:14:13 +08:00
ebc9b77eda Merge branch '270-final-cmb-fixes' of gitlab.com:jankstudio/resq into 360-cmb-allow-reordering-of-rider-jo
Conflicts:
	src/Entity/JobOrder.php
2020-02-29 23:40:10 +08:00
1ab5909dfd Add priority field for JobOrder #360 2020-02-29 23:38:05 +08:00
Korina Cordero
a62476a833 Add create, update, list, and delete for service charges. #348 2020-02-19 03:16:27 +00:00
39fdf318d4 Make getMeta in JobOrder entity return null if meta key is not found #270 2020-02-18 09:55:13 +08:00
1c9ce12595 Merge branch '341-cmb-add-service-charge-dropdown' into '270-final-cmb-fixes'
Resolve "CMB - add service charge dropdown"

See merge request jankstudio/resq!387
2020-02-18 01:43:00 +00:00
d2afb99f4f Merge branch '344-cmb-rider-queue-management' into '270-final-cmb-fixes'
Add active job order feature for rider #344

See merge request jankstudio/resq!388
2020-02-17 17:01:50 +00:00
def4ed0357 Add active job order feature for rider #344 2020-02-18 01:00:19 +08:00
Korina Cordero
504d910621 Add saving to meta even if service charges are blank. #341 2020-02-17 14:56:35 +00:00
Korina Cordero
f9c304422c Add fix when saving an invoice with no service charges. #341 2020-02-17 14:43:21 +00:00
Korina Cordero
6c11650b25 Add service charge entity. #341 2020-02-17 07:20:37 +00:00
Korina Cordero
984b0428d0 Fix for cmb to retain battery in invoice when editing JO. #343 2020-02-17 06:19:09 +00:00
Korina Cordero
a15b45173c Fix discount computation. #343 2020-02-17 01:02:41 +00:00
Korina Cordero
d439a411a8 Change computation of discount for CMB. #343 2020-02-14 09:40:08 +00:00
Korina Cordero
38d56d9c09 Set default value for the flags to false. #324 2020-02-11 01:36:13 +00:00
Korina Cordero
fc6edb2b25 Merge branch '329-transition-branch-for-cmb-and-resq-merging' of gitlab.com:jankstudio/resq into 324-add-new-fields-for-jo-form 2020-02-10 02:49:31 +00:00
Korina Cordero
52f075ccba Add new fields to customer. #324 2020-02-10 02:48:21 +00:00
Korina Cordero
69f0612a2d Replace hardcoded country code prefixes with variables set in .env and messages files. #309 2020-01-24 04:05:48 +00:00
Korina Cordero
d418f0ff5a Remove hardcoded prefix from customer. Add country code to .env and services.yaml. #307 2020-01-22 06:42:28 +00: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
1008d73089 Merge branch '280-expiration-computation-for-warranties' into 'master'
Resolve "Expiration computation for warranties"

Closes #280

See merge request jankstudio/resq!326
2020-01-20 02:46:10 +00:00
Korina Cordero
2aed73b2d5 Add Static Content feature. #298 2020-01-17 07:55:35 +00:00
008e482fe8 Modify dashboard to display customers and riders with popup details #270 2019-12-17 02:08:32 +08:00
Korina Cordero
243d238ad7 Finish command to compute expiration date for existing warranties. #280 2019-12-11 08:43:15 +00:00
Korina Cordero
28b93a83d0 Add index for plate number in warranty. Finish warranty class report. #283 2019-11-28 05:20:29 +00:00
Korina Cordero
7e5ffdcf26 Add index for plate number. #278 2019-11-25 03:21:50 +00:00
d094b5e8d9 Refactor create customer from warranty command #274 2019-11-21 00:02:44 +08:00
Korina Cordero
515bb84c13 Remove Assert NotBlank from color and model year. #274 2019-11-20 01:40:07 +00:00
Korina Cordero
d385d32d2e Move the adding of customer and customer vehicle to customer handler service. #270 2019-11-12 03:58:51 +00:00
Korina Cordero
58c671fe88 Add TODO for country code prefix. #270 2019-11-11 05:25:48 +00:00
Korina Cordero
f5606d83c0 Add label to rider markers. #270 2019-10-28 07:38:05 +00:00
Korina Cordero
eb0e19d27f Add country code prefix to messages. Made the country code a constant. #270 2019-10-04 02:36:36 +00:00
Korina Cordero
a29ea8756b Add command to add batteries. #270 2019-10-02 07:41:19 +00:00
Korina Cordero
a8cf329f09 Fix for error when adding a customer with vehicle. #268 2019-09-18 04:12:17 +00:00
Korina Cordero
4a50729a41 Create command to generate report. #267 2019-09-16 15:28:53 +00:00
Korina Cordero
237dd7aa93 Added Assert\Not Blank() for the name of policy. #260 2019-08-30 03:12:58 +00:00
Korina Cordero
e0294062ca Add access rights for setting privacy policy. Add privacy policy field to Warranty, along with setter and getter. #261 2019-08-30 02:12:01 +00:00
Korina Cordero
4bc99df261 Merge branch 'master' into '256-privacy-policy-for-warranty'
# Conflicts:
#   src/Entity/PrivacyPolicy.php
2019-08-28 03:12:37 +00:00
Korina Cordero
b7c5bad80b Merge branch '256-privacy-policy-for-warranty' of gitlab.com:jankstudio/resq into 256-privacy-policy-for-warranty 2019-08-28 02:27:21 +00:00
Korina Cordero
918f95e425 Modify the association between Warranty and PrivacyPolicy to ManyToOne. Add getters and setters for warranty in PrivacyPolicy. #256 2019-08-28 02:15:26 +00:00
Korina Cordero
96bd2684b1 Revert "Merge branch '256-privacy-policy-for-warranty' into 'master'"
This reverts merge request !302
2019-08-28 01:56:01 +00:00
Korina Cordero
b8504c3701 Modify the assocation between PrivacyPolicy and Warranty to ManyToOne. #256 2019-08-28 00:32:48 +00:00
Korina Cordero
9efc347a7f Add setPrivacyPolicy method to APIController. Add route and acl for setting of privacy policy for warranty. Allow null to be set for setPrivacyPolicy in Warranty entity. Modify the checking for missing parameters, from empty to isset. #256 2019-08-27 07:49:10 +00:00
Korina Cordero
6398c58b32 Add privacy policy field to warranty. Add getter and setter and method to check for privacy policy in Warranty. #256 2019-08-27 06:10:36 +00:00
Korina Cordero
db53630fc5 Remove Assert annotation for the privacy policy for customer. #240 2019-08-01 04:18:45 +00:00
Korina Cordero
1535fd9cd9 Rename the columns linking customer and privacy policy. #233 2019-07-23 04:02:04 +00:00
Korina Cordero
4a13c3e615 Create PrivacyPolicy entity. Add links from Customer to PrivacyPolicy. #233 2019-07-23 03:39:53 +00:00
da32614181 Add partner review api call #231 2019-07-20 15:15:47 +08:00
Korina Cordero
189bb58880 Fix merge conflicts with master. #227 2019-07-15 23:51:49 +00:00
Korina Cordero
d1209d2474 Add CRUD functionalities to Partners. #228 2019-07-05 07:26:16 +00:00
Korina Cordero
47f1638be9 Add Partner, Service, and Review entities. Add association for Partner and User. Add association for MobileSession and Review. #228 2019-07-04 09:00:26 +00:00
Korina Cordero
13b955d0b6 Add route to activate warranty. Move the code to search for warranty to a separate function. Fix bug in Warranty entity when setting flag_activated. #227 2019-07-02 09:15:06 +00:00
Korina Cordero
baf7b51f14 Add flag_activated to the Warranty entity. Add Status field to Warranty results of search. #227 2019-07-01 07:46:54 +00:00
fff386d6e3 Fix user entities #194 2019-06-05 23:49:38 +08:00
a4496cecce Add user checker for depracated AdvancedUserInterface in auth bundle #194 2019-06-05 20:35:26 +08:00
8737fbfe26 Fix issues and optimize auth voter and entities #194 2019-06-05 16:37:37 +08:00
29f574e25c Merge branch 'master' of gitlab.com:jankstudio/resq into 194-catalyst-api-bundle-acl 2019-06-05 11:37:53 +08:00
Korina Cordero
2a501e60e4 Update plate number validation, according to specifications. #211 2019-05-15 02:17:41 +00:00
Korina Cordero
ecec2d07d7 Add the enabled flag to the api user and base user. Remove the enabled methods from site user since base class has them. Add checking if user account is enabled during authentication of api user. #194 2019-05-08 08:25:11 +00:00
Korina Cordero
3c236d0ab4 Merge branch 'master' of gitlab.com:jankstudio/resq into 194-catalyst-api-bundle-acl 2019-05-08 07:16:09 +00:00
Korina Cordero
fbbfaa5637 Fix wiring and missing fields for legacy_job_order_row. #207 2019-05-01 09:55:47 +00:00
Korina Cordero
9205429662 Add the legacy job order row details to the details page. #207 2019-05-01 09:34:00 +00:00
Korina Cordero
32fa839e2c Display the legacy job order details when Details is clicked. #207 2019-04-30 11:53:47 +00:00
Korina Cordero
be8ceb7e29 Add warr_tnv to the Battery entity. Add the tnv warranty to the add/edit forms. Add means to save/display the tnv warranty data in the forms. #203 2019-04-11 07:33:25 +00:00
Korina Cordero
57f1eb1386 Remove duplicate code from classes that extend Role. Rename UserFixtures to RoleFixtures. Create APIRoleFixtures file. #194 2019-03-29 06:35:37 +00:00
Korina Cordero
eaac1dfb7d Create auth bundle with base classes for User and Role. Use base class for user and role in the User and Role entities in the API and the main site. #194 2019-03-27 06:58:08 +00: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
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
87a8770bb4 Create entity file for supported areas 2019-03-03 20:13:16 -05:00
bc8d01dc6a Add coord_long and coord_lat fields to JobOrder entity #186 2019-02-21 14:40:17 +08:00
Ramon Gutierrez
345ca27a31 Fix associations for JORejection to JobOrder #183 2019-02-12 00:12:58 +08:00
Ramon Gutierrez
b63695e846 Fix typos on JORejection entity #183 2019-02-11 21:01:57 +08:00
Ramon Gutierrez
9f1c5b9cc9 Add JORejection entity #183 2019-02-11 18:41:05 +08:00
e2ccf1bbc1 Add functionality to save facilitated by fields #181 2019-02-10 20:48:46 +08:00
7ae9fe4e2d Add facilitated by dropdowns for job order form #181 2019-02-09 21:44:35 +08:00
407f7ad54a Fix check on rider assign to check for RIDER_ASSIGN status instead of ASSIGNED #178 2019-01-31 00:32:09 +08:00
f0d94e034f Add first_name, last_name, and mobile_number fields to warranty #177 2019-01-30 22:12:36 +08:00
1bd5c30875 Fix assign rider so cancelled job orders cannot be assigned #175 2019-01-28 03:16:50 +08:00
4b24454549 Fix dispatch, so cancelled job orders cannot be assigned to a hub #175 2019-01-28 02:44:05 +08:00
15b7473af7 Add sap battery field to warranty entity #172 2019-01-21 02:08:49 +08:00
86c20036c0 Add SAP battery entities #172 2019-01-20 15:35:30 +08:00
bc9cf2a74f Modify claim warranty api call #171 2019-01-10 02:26:42 +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
030668e43b Fix plate number cleaning #168 2018-11-07 22:29:08 +08:00
d78e30c9c2 Add battery model and size to warranty and change warranty routes #166 2018-11-06 01:14:19 +08:00
4867f1b6bb Finish warranty api calls #164 2018-10-26 00:58:32 +08:00
959d2c6efc Add warranty entity, refactor controller, and fix bugs #164 2018-10-24 22:20:45 +08:00
77d6d146c0 Add CSAT field to form and entity #163 2018-10-03 01:08:08 +08:00
3ad32605fe Add support for coolant and non-coolant overheat service #162 2018-09-07 03:27:56 +08:00
1a44d28290 Create query for last fulfilled job order for rider status api call #162 2018-08-13 04:13:50 +08:00
7237441ec3 Add rider rating flag to JO and modify jo get invoice api call #162 2018-08-10 22:06:52 +08:00
b4b18e5d3d Have rider api cancel job order requeue the job order for reassignment instead #162 2018-08-09 02:06:33 +08:00
5ed3a2e447 Refactor fulfill jo to belong in entity #159 2018-07-26 02:58:19 +08:00
098df69949 Refactor cancel job order process #159 2018-07-25 23:03:32 +08:00
863bf56453 Add trade_in_type to job order so rider app can differentiate #159 2018-07-21 04:05:51 +08:00
052f3dfe62 Add or number to JobOrder entity #153 2018-07-05 15:19:44 +08:00
cbdc2fd24e Add sendRiderEvent call for MQTTClient service #151 2018-07-02 00:22:15 +08:00
899f963773 Corrected nullable device_push_id #148 2018-06-17 17:59:04 +08:00
59f41e5f55 Allow null values in device_push_id #148 2018-06-17 17:57:48 +08:00
2fa2ad964e Add phone_id and update device_push_id field for mobile session #148 2018-06-17 17:03:34 +08:00
af407ff4bc Add vehicle:merge command to clear duplicate vehicles #144 2018-06-16 11:51:28 +08:00
de14863e2f Add flag_mobile fields in vehicle and vehicle manufacturer #134 2018-06-04 04:16:40 +08:00
c322ffe016 Make rider session auto active #131 2018-05-24 16:24:11 +08:00
be5a66e68a Add mobile api privacy settings call #130 2018-05-23 22:40:44 +08:00
7d3873022e Add mobile api resend code #130 2018-05-23 22:04:53 +08:00
ed30224c09 Capitalize plate number for customer vehicle entity #129 2018-05-23 19:17:19 +08:00
82fc9f3948 Make mobile api use vehicle model formatting method #128 2018-05-23 19:06:47 +08:00
d5fb5222ca Add rider api get job order call #119 2018-05-23 07:28:57 +08:00
5b94b1a592 Add login and logout features for rider api #119 2018-05-23 03:03:56 +08:00
87c6ca1926 Add rider session entity #119 2018-05-22 20:59:13 +08:00
9e6ff4ee15 Add rider username and password to forms and database #119 2018-05-22 20:57:50 +08:00
7e53a4d6de Add rider rating comment feature #120 2018-05-21 01:23:59 +08:00
6dd052e84e Sort vehicle fetching by make #114 2018-05-19 12:52:29 +08:00
aea22c7e11 Allow fulfilled job orders to be cancelled #103 2018-04-24 23:57:45 +08:00
abe1b8bb3d Add open edit JO feature #93 2018-04-18 11:51:45 +08:00
836c026402 Add match against support for dql #89 2018-04-10 23:37:18 +08:00
ef85141587 Add trade-in prices in entity, controller and templates #70 2018-04-04 17:43:04 +08:00
9e59ecb994 Add customer job order history table in customer form #69 2018-04-04 04:28:55 +08:00
4321f70e94 Add job order event / status history #68 2018-04-04 03:51:39 +08:00
8818459689 Add TNV as a warranty class #67 2018-04-03 23:44:03 +08:00
190ab8ceaf Add schedule and adjust schedule date to display date and time always #67 2018-04-03 21:38:45 +08:00
66294ba62c Remove customer title requirement, now optional #66 2018-04-03 11:46:34 +08:00
189f32d25c Update import vehicle to add secondary battery #58 2018-03-26 02:03:51 +08:00
f6145d45f1 Merge branch '52-migrate-contact-and-job-order-scripts' into 'master'
Resolve "Migrate contact and job order scripts"

Closes #52

See merge request jankstudio/resq!50
2018-03-21 19:24:48 +00:00
1e2df32443 Add migration script and initial sql dump for customer and customer vehicle #52 2018-03-22 03:23:11 +08:00
d879358691 Make rider available and active by default #56 2018-03-16 12:00:24 +08:00
30b67386a6 Add migration tool for batteries and vehicles #UAT 2018-03-13 03:37:40 +08:00
9ad5f2557b Implement counters and fix rider flow #UAT 2018-03-12 18:32:59 +08:00
dc3774a835 Add availability flag for rider entity #UAT 2018-03-12 03:39:59 +08:00
4566f468c6 Replace spaces with blanks for plate number in customer vehicle #UAT 2018-03-12 02:06:58 +08:00
e02b821861 Capitalize plate number when saving to db #UAT 2018-03-12 01:36:34 +08:00
bc4a2ac7f7 Add promo detail field in job order #UAT 2018-03-12 01:36:11 +08:00
f807c7041e Add email field to customer #UAT 2018-03-12 00:15:51 +08:00
017a8bb30d Add landmark field #UAT 2018-03-11 04:01:14 +08:00
98c92c9184 Add deleted outlet methods and field to hub entity #UAT 2018-03-11 03:17:53 +08:00
5c18619e80 Fix contact number related bugs #UAT 2018-03-11 02:36:13 +08:00
caf981e4a6 Fix and refactor customer controller and template #UAT 2018-03-10 21:47:27 +08:00
5769e1c366 Replace contact numbers with individual numbers in customer entity, controllers, and templates #UAT 2018-03-10 14:18:07 +08:00
99401b95e6 Add OR Name to job order entity and controller (incoming) and templates #UAT 2018-03-10 02:21:55 +08:00
8d1554a4b9 Add transaction origin / source to job order templates, controllers and entity #UAT 2018-03-10 01:44:43 +08:00
ec0e7c1654 Add default value for customer title #38 2018-03-07 21:29:22 +08:00
36e4219f99 Add support for mode of payment dropdown #33 2018-03-01 07:28:59 +08:00
ad04131515 Add Tier 1 and Tier 2 notes #33 2018-03-01 04:15:44 +08:00