Compare commits

...

139 Commits

Author SHA1 Message Date
swtmply
5e96ccdd99 IO-2297 added optimistic response and click outside function 2023-05-24 03:17:41 +08:00
Patrick Fic
8f91416623 Merged in release/2023-05-19 (pull request #796)
Release/2023 05 19
2023-05-19 17:17:47 +00:00
Allan Carr
a18dbbb6c4 Merged in feature/IO-2293-Autohouse-Job-Cost-Dinero-Type-Cast (pull request #794)
IO-2293 Autohouse & Job Costing Dinero Type Casting

Approved-by: Patrick Fic
2023-05-19 17:02:05 +00:00
Allan Carr
57d8ca5829 IO-2293 Autohouse & Job Costing Dinero Type Casting
All type cast to Dinero round to integer to prevent cast errors
2023-05-19 09:39:37 -07:00
Patrick Fic
4c6a2d6d63 Merged in release/2023-05-19 (pull request #793)
Release/2023 05 19
2023-05-18 22:05:08 +00:00
Patrick Fic
5861d0e9b6 IO-2289 Add betterment description to translation 2023-05-17 13:46:37 -07:00
Patrick Fic
e36904794b IO-2274 Add typing to notes. 2023-05-17 13:31:15 -07:00
Patrick Fic
1c89d12034 IO-2286 Resolve duplication of cost centers when sorting labor allocations. 2023-05-17 12:36:15 -07:00
Patrick Fic
5e36a4ae89 IO-2275 Remove PVRT and GST References in USA App. 2023-05-17 12:09:21 -07:00
Patrick Fic
f553307587 Added rounding to job costing for adjustments. 2023-05-17 10:11:27 -07:00
Patrick Fic
2c80c81197 Added tasks presets to database schema. 2023-05-17 07:39:23 -07:00
Patrick Fic
9d865cf130 Merged in release/2023-05-19 (pull request #789)
IO-2258 Scoreboard Chart
2023-05-16 18:34:13 +00:00
Allan Carr
8e119ce0dd Merged in feature/IO-2258-Scoreboard-Chart-Inconsistencies (pull request #788)
IO-2258 Scoreboard Chart

Approved-by: Patrick Fic
2023-05-16 18:33:34 +00:00
Allan Carr
fe49161718 IO-2258 Scoreboard Chart
Add in target paint and body to the overall calculation to bump the start value up to the target instead of zero.
2023-05-15 15:18:24 -07:00
Patrick Fic
040e366335 Merged in release/2023-05-12 (pull request #786)
Release/2023 05 12
2023-05-12 18:18:04 +00:00
Patrick Fic
4655663dd8 Merged in release/2023-05-12 (pull request #785)
Release/2023 05 12
2023-05-12 17:14:31 +00:00
Allan Carr
6e1fbda79b Merged in feature/IO-2261-opensearch-replacements (pull request #784)
IO-2261 Add missing fields to return querys

Approved-by: Patrick Fic
2023-05-12 17:14:04 +00:00
Allan Carr
b2f616f1eb IO-2261 Add missing fields to return querys
Customer info missing on return
2023-05-12 10:12:49 -07:00
Patrick Fic
76eec7bebc Merged in release/2023-05-12 (pull request #783)
IO-2261 Remove duplicate fields and add created_at into return querys
2023-05-12 16:32:51 +00:00
Allan Carr
aa5f405e1b Merged in feature/IO-2261-opensearch-replacements (pull request #782)
IO-2261 Remove duplicate fields and add created_at into return querys

Approved-by: Patrick Fic
2023-05-12 15:26:05 +00:00
Allan Carr
ca9752d119 IO-2261 Remove duplicate fields and add created_at into return querys 2023-05-12 08:23:16 -07:00
Patrick Fic
45b4af5225 Merged in release/2023-05-12 (pull request #781)
Release/2023 05 12
2023-05-11 23:39:04 +00:00
Allan Carr
d2d310cf57 Merged in feature/IO-2190-Autohouse (pull request #780)
IO-2190 Paint Costs for JC if Cost/Hr is 0

Approved-by: Patrick Fic
2023-05-11 23:38:42 +00:00
Allan Carr
5d1a7657a9 Merged in feature/IO-2265-Autohouse-Extract (pull request #779)
IO-2190 Allow for 0 in JC/Hr rate

Approved-by: Patrick Fic
2023-05-11 23:38:25 +00:00
Allan Carr
5cb17994cd IO-2190 Allow for 0 in JC/Hr rate 2023-05-11 16:09:30 -07:00
Allan Carr
dab78e3dc9 IO-2190 Paint Costs for JC if Cost/Hr is 0 2023-05-11 16:07:28 -07:00
Patrick Fic
1232f28b3d Merged in release/2023-05-12 (pull request #778)
IO-2261 Modify Opensearch Data after payment update
2023-05-11 21:42:57 +00:00
Allan Carr
8e8d40d4b0 Merged in feature/IO-2261-opensearch-replacements (pull request #777)
IO-2261 Modify Opensearch Data after payment update

Approved-by: Patrick Fic
2023-05-11 21:42:24 +00:00
Allan Carr
7fae408454 IO-2261 Modify Opensearch Data after payment update 2023-05-11 14:38:09 -07:00
Patrick Fic
1cdafaa2cc Merged in release/2023-05-12 (pull request #776)
Release/2023 05 12
2023-05-11 14:50:33 +00:00
Allan Carr
b9ca7ef2e3 Merged in feature/IO-2271-Country-Region (pull request #775)
Feature/IO-2271 Country Region

Approved-by: Patrick Fic
2023-05-11 14:50:07 +00:00
Allan Carr
60867ae4dc IO-2271 Country Region Print Center Modification
Allow items to be hidden by Country Code only from region
2023-05-10 18:03:42 -07:00
Allan Carr
b0ddb62ac0 Merged in feature/IO-2265-Autohouse-Extract (pull request #773)
IO-2265 Autohouse Extract Remove Customer Info

Approved-by: Patrick Fic
2023-05-10 15:24:27 +00:00
Allan Carr
39a4646339 IO-2271 Country Region for Print Center
Hide reports based on Country Code for Region
2023-05-09 18:11:06 -07:00
Allan Carr
584322819f IO-2265 Autohouse Extract Remove Customer Info 2023-05-09 16:51:55 -07:00
Patrick Fic
051ee347a9 Merged in release/2023-05-05 (pull request #768)
Release/2023 05 05
2023-05-05 22:51:16 +00:00
Patrick Fic
acf1b387de Merged in release/2023-05-05 (pull request #767)
Release/2023 05 05
2023-05-05 22:03:21 +00:00
John Allen Delos Reyes
d350515c90 Merged in feature/IO-1722-job-size-color (pull request #763)
Feature/IO-1722 job size color

Approved-by: Patrick Fic
2023-05-05 22:02:55 +00:00
Allan Carr
121e579388 Merged in feature/IO-2261-opensearch-replacements (pull request #766)
IO-2261 Missing loader handler for owner_owing, correct payment

Approved-by: Patrick Fic
2023-05-05 22:02:03 +00:00
Allan Carr
cf5ebb8130 IO-2261 Missing loader for owner_owing 2023-05-05 14:24:00 -07:00
Allan Carr
2dabf3c811 IO-2261 Missing loader handler for owner_owing, correct payment 2023-05-05 14:03:05 -07:00
swtmply
04509fa587 IO-1722 adjusted logic for card color 2023-05-06 04:56:03 +08:00
swtmply
56fef0f43c IO-1722 Added reset button 2023-05-06 04:55:21 +08:00
Patrick Fic
42702ef015 Merged in release/2023-05-05 (pull request #765)
Release/2023 05 05
2023-05-05 20:19:03 +00:00
Allan Carr
25bee3cfdf Merged in feature/IO-2261-opensearch-replacements (pull request #764)
Feature/IO-2261 opensearch replacements

Approved-by: Patrick Fic
2023-05-05 20:14:02 +00:00
Allan Carr
baf06fee6c Merge branch 'feature/IO-2261-opensearch-replacements' of https://bitbucket.org/snaptsoft/bodyshop into feature/IO-2261-opensearch-replacements 2023-05-05 13:10:39 -07:00
Allan Carr
a3557bbc86 IO-2261 Add Delete function, Correct Payment edit, add Totals to Bills handler 2023-05-05 13:10:07 -07:00
swtmply
3e00e7981d IO-1722 added placement to popover 2023-05-06 03:34:55 +08:00
swtmply
12fa270a1a IO-1722 adjusted background colors 2023-05-06 03:34:22 +08:00
Patrick Fic
de250b152a Change all open search events to trigger on all fields. 2023-05-05 12:20:25 -07:00
Patrick Fic
c45741257f Add export trigger for os_bills event. 2023-05-05 12:16:39 -07:00
swtmply
3988386c79 IO-1722 replaced hex to rgba 2023-05-06 02:56:02 +08:00
Patrick Fic
492032c1e2 Merged in release/2023-05-05 (pull request #762)
Release/2023 05 05
2023-05-05 17:56:36 +00:00
Allan Carr
8222e56485 Merged in feature/IO-2261-opensearch-replacements (pull request #761)
IO-2261 Add in missing field "date" for Payments

Approved-by: Patrick Fic
2023-05-05 17:56:14 +00:00
Patrick Fic
49a61e1564 Merge branch 'feature/IO-2261-opensearch-replacements' of https://bitbucket.org/snaptsoft/bodyshop into feature/IO-2261-opensearch-replacements 2023-05-05 10:55:59 -07:00
Patrick Fic
eed18aa1c5 Add event triggers on export fields 2023-05-05 10:55:42 -07:00
Allan Carr
2de3f8b022 IO-2261 Add in missing field "date" for Payments 2023-05-05 10:54:41 -07:00
Patrick Fic
91476c7ad3 Merged in release/2023-05-05 (pull request #760)
Release/2023 05 05
2023-05-05 17:44:50 +00:00
John Allen Delos Reyes
00eb7926f9 Merged in feature/IO-2266-duplicate-option (pull request #759)
IO-2266 fixed key issue causing option to duplicate

Approved-by: Patrick Fic
2023-05-05 17:44:19 +00:00
Patrick Fic
854ad21b20 Update autohouse header auth. 2023-05-05 10:16:41 -07:00
Patrick Fic
561bcf10d9 Merged in release/2023-05-05 (pull request #758)
IO-2261 All Jobs, Bills, Payments
2023-05-05 14:49:55 +00:00
Allan Carr
75d9faa05b Merged in feature/IO-2261-opensearch-replacements (pull request #757)
IO-2261 All Jobs, Bills, Payments

Approved-by: Patrick Fic
2023-05-05 14:49:23 +00:00
Allan Carr
ac72177fbb IO-2261 All Jobs, Bills, Payments
Adjust Pagination settings and on clear delete search.page to reset. Adjust payments for bodyshopid as it was pointed at bill instead of payment
2023-05-04 18:27:47 -07:00
Allan Carr
088faf152c Merged in release/2023-05-05 (pull request #756)
Release/2023 05 05

Approved-by: Patrick Fic
2023-05-04 22:33:12 +00:00
Patrick Fic
90cba9ed24 Merge branch 'feature/IO-1722-job-size-color' into release/2023-05-05 2023-05-04 15:32:30 -07:00
Patrick Fic
a0702785c5 Revert "Revert "Merged in feature/IO-1722-job-size-color (pull request #746)""
This reverts commit 7dc3c00628.
2023-05-04 15:32:21 -07:00
Allan Carr
6898d609fe IO-2261 Add Loading effect 2023-05-04 15:17:37 -07:00
Allan Carr
d70893e2ba Merged in feature/IO-2261-opensearch-replacements (pull request #748)
Feature/IO-2261 opensearch replacements
2023-05-04 22:16:49 +00:00
Patrick Fic
239dc5c62d Merged in release/2023-05-05 (pull request #753)
Release/2023 05 05
2023-05-04 20:36:18 +00:00
swtmply
08e5543536 IO-1722 adjusted condition for text color 2023-05-05 04:00:44 +08:00
Patrick Fic
1c5c403d65 Merged in release/2023-05-05 (pull request #749)
Release/2023 05 05
2023-05-04 19:34:56 +00:00
Allan Carr
6e5fcbfdbd IO-2267 Remove Sort for Linked Table fields 2023-05-03 16:30:48 -07:00
Allan Carr
759a8ac58c IO-2261 Opensearch for Payments, Bills and All Jobs 2023-05-03 16:29:01 -07:00
Allan Carr
1c63aa39c4 Merged in release/2023-05-05 (pull request #744)
Release/2023 05 05
2023-05-03 17:10:48 +00:00
Patrick Fic
852fd9c388 IO-2261 Sample open search replacement. 2023-05-01 13:04:10 -07:00
Patrick Fic
6db68b76db Merged in release/2023-04-28 (pull request #735)
Additional database indexing.
2023-04-28 16:51:31 +00:00
Patrick Fic
23fcdd6375 Merged in release/2023-04-28 (pull request #732)
Release/2023 04 28
2023-04-27 22:21:03 +00:00
Patrick Fic
329bdbe22d Merged in release/2023-04-28 (pull request #729)
Release/2023 04 28
2023-04-27 20:54:32 +00:00
Allan Carr
66b3fb6988 Merged in release/2023-04-28 (pull request #728)
IO-2190 Factor Paint Costs from Scale over to Job Costing & Autohouse

Approved-by: Patrick Fic
2023-04-27 19:47:13 +00:00
Patrick Fic
3d26c2e94e Merged in release/2023-04-28 (pull request #727)
Release/2023 04 28
2023-04-27 16:32:43 +00:00
Patrick Fic
ad42dd1295 Merged in release/2023-04-28 (pull request #726)
IO-2210 Remove unused state.
2023-04-26 23:52:34 +00:00
Patrick Fic
2938b9c94c Merged in release/2023-04-28 (pull request #725)
IO-2210 Search Improvements
2023-04-26 23:45:43 +00:00
Patrick Fic
bde17446ad Merged in release/2023-04-28 (pull request #724)
Release/2023 04 28
2023-04-26 19:49:54 +00:00
Patrick Fic
fe60538acf Merged in release/2023-04-28 (pull request #723)
Resolve missing items from merge conflicts.
2023-04-26 17:21:20 +00:00
Patrick Fic
7461e58000 Merged in release/2023-04-28 (pull request #722)
Release/2023 04 28
2023-04-26 16:44:29 +00:00
Patrick Fic
1afda01d34 Merged in release/2023-04-28 (pull request #721)
Release/2023 04 28
2023-04-26 02:22:48 +00:00
Patrick Fic
59f71d53cd Merged in release/2023-04-21 (pull request #718)
Release/2023 04 21
2023-04-21 18:42:34 +00:00
Allan Carr
0cad64ff6d Merged in release/2023-04-21 (pull request #717)
IO-2335 Exported GSR to Excel

Approved-by: Patrick Fic
2023-04-20 19:58:58 +00:00
Allan Carr
3a83160b33 Merged in release/2023-04-21 (pull request #716)
IO-2235 Exported GSR to Excel

Approved-by: Patrick Fic
2023-04-20 16:45:28 +00:00
Allan Carr
701c532e48 Merged in release/2023-04-21 (pull request #715)
Release/2023 04 21

Approved-by: Patrick Fic
2023-04-19 23:14:52 +00:00
Patrick Fic
c0d9bacf1d Merged in release/2023-04-21 (pull request #710)
Release/2023 04 21
2023-04-19 18:44:50 +00:00
Patrick Fic
357f40bdc2 Merged in release/2023-04-14 (pull request #706)
Release/2023 04 14
2023-04-14 20:03:58 +00:00
Patrick Fic
30689a8ca6 Merged in release/2023-04-14 (pull request #705)
Release/2023 04 14
2023-04-14 18:39:19 +00:00
Patrick Fic
554ec37ace Merged in release/2023-04-14 (pull request #704)
Release/2023 04 14
2023-04-13 16:36:16 +00:00
Patrick Fic
3fc7af9780 Merged in release/2023-04-07 (pull request #702)
Release/2023 04 07
2023-04-06 00:22:37 +00:00
John Allen Delos Reyes
a1b6ccc23d Merged in release/2023-04-07 (pull request #700)
Release/2023 04 07

Approved-by: Patrick Fic
2023-04-05 21:21:39 +00:00
Patrick Fic
dde6f17029 Merged in release/2023-03-17 (pull request #694)
Language updates & default for lost sale reason.
2023-03-17 18:43:52 +00:00
Allan Carr
1aceef9153 Merged in release/2023-03-17 (pull request #693)
IO-2193 Delete Owner & Vehicle

Approved-by: Patrick Fic
2023-03-17 01:06:10 +00:00
Patrick Fic
678892d134 Merged in release/2023-03-17 (pull request #692)
IO-2177 Add enforce category on conversion.
2023-03-16 21:51:01 +00:00
Allan Carr
dc187bbf24 Merged in release/2023-03-17 (pull request #691)
Release/2023 03 17

Approved-by: Patrick Fic
2023-03-16 18:51:11 +00:00
Patrick Fic
09aae78715 Merged in release/2023-03-17 (pull request #690)
Release/2023 03 17
2023-03-15 18:53:49 +00:00
Patrick Fic
c42276ab3a Merged in release/2023-03-10 (pull request #688)
Release/2023 03 10
2023-03-10 18:51:03 +00:00
Patrick Fic
41d25cbc52 Merged in release/2023-03-03 (pull request #686)
release/2023-03-03

Approved-by: Patrick Fic
2023-03-03 17:28:32 +00:00
Patrick Fic
085c27ad20 Merged in release/2023-03-03 (pull request #685)
release/2023-03-03

Approved-by: Patrick Fic
2023-03-03 17:08:45 +00:00
Patrick Fic
38e6b5010e Merged in release/2023-03-03 (pull request #684)
release/2023-03-03

Approved-by: Patrick Fic
2023-03-03 04:05:30 +00:00
Allan Carr
242c275e7d Merged in release/2023-02-24 (pull request #680)
Release/2023 02 24

Approved-by: Patrick Fic
2023-02-23 19:44:40 +00:00
Allan Carr
1dc6130fdf Merged in release/2023-02-17 (pull request #678)
Release/2023 02 17

Approved-by: Patrick Fic
2023-02-17 18:37:20 +00:00
Allan Carr
910afbf48d Merged in release/2023-02-17 (pull request #676)
Release/2023 02 17

Approved-by: Patrick Fic
2023-02-14 22:03:01 +00:00
Patrick Fic
9d9edfd674 Merged in release/2023-02-10 (pull request #674)
Improve display of job lines preset display.
2023-02-10 23:22:47 +00:00
Allan Carr
62a5b49836 Merged in release/2023-02-10 (pull request #673)
Release/2023 02 10

Approved-by: Patrick Fic
2023-02-09 17:56:24 +00:00
Patrick Fic
e93e138f78 Merged in release/2023-02-03 (pull request #671)
release/2023-02-03

Approved-by: Patrick Fic
2023-02-06 18:09:03 +00:00
Patrick Fic
4639e31e55 Merged in release/2023-02-03 (pull request #669)
release/2023-02-03

Approved-by: Patrick Fic
2023-02-04 01:19:46 +00:00
Patrick Fic
e8fde14f9b Merged in release/2023-02-03 (pull request #668)
release/2023-02-03

Approved-by: Patrick Fic
2023-02-03 22:58:21 +00:00
Patrick Fic
90e87adc34 Merged in release/2023-02-03 (pull request #667)
release/2023-02-03

Approved-by: Patrick Fic
2023-02-03 20:34:27 +00:00
Patrick Fic
81053b3cbf Merged in release/2023-02-03 (pull request #666)
release/2023-02-03

Approved-by: Patrick Fic
2023-02-02 21:47:46 +00:00
Patrick Fic
f4290bf20c Merged in release/2023-02-03 (pull request #665)
release/2023-02-03

Approved-by: Patrick Fic
2023-02-02 19:06:20 +00:00
Patrick Fic
5371657aa4 Merged in release/2023-02-03 (pull request #664)
release/2023-02-03

Approved-by: Patrick Fic
2023-02-02 18:42:40 +00:00
Patrick Fic
599f4e143c Merged in release/2023-02-03 (pull request #663)
release/2023-02-03

Approved-by: Patrick Fic
2023-02-02 18:10:12 +00:00
Patrick Fic
94440e5c48 Merged in master (pull request #662)
Merged in release/2023-01-27 (pull request #661)
2023-01-27 23:14:44 +00:00
Patrick Fic
aa5d6f2090 Merged in release/2023-01-27 (pull request #660)
IO-2156 Resolve AH detail line validation issue.
2023-01-27 21:21:21 +00:00
Patrick Fic
6bde1b1baf Merged in release/2023-01-27 (pull request #659)
Release/2023 01 27
2023-01-27 17:02:10 +00:00
Patrick Fic
fc404b1f3b Merged in release/2022-01-20 (pull request #655)
Release/2022 01 20
2023-01-19 21:11:58 +00:00
Patrick Fic
c6ba3fd8f0 Merged in release/2022-01-13 (pull request #653)
Release/2022 01 13
2023-01-09 17:36:25 +00:00
Patrick Fic
119904ca2b Merged in release/2023-01-06 (pull request #651)
Updates to Sentry & removal of Stripe.
2023-01-04 16:33:10 +00:00
Patrick Fic
f7e1b023df Merged in release/2023-01-06 (pull request #650)
Release/2023 01 06
2023-01-02 22:56:05 +00:00
Patrick Fic
5855569194 Merged in release/2022-12-30 (pull request #648)
IO-2133 Manual Line Highlighting
2022-12-28 18:05:20 +00:00
Patrick Fic
4f852e7493 Merged in release/2022-12-30 (pull request #647)
release/2022-12-30

Approved-by: Patrick Fic
2022-12-26 18:34:28 +00:00
Patrick Fic
deec40a89c Merged in release/2022-12-16 (pull request #642)
Remove unneeded import to fix CI.
2022-12-16 01:09:42 +00:00
Patrick Fic
145dd9bec6 Merged in release/2022-12-16 (pull request #641)
IO-2131 Resolve job search select filtering issue.
2022-12-16 01:02:45 +00:00
Patrick Fic
b8e5d4412f Merged in release/2022-12-16 (pull request #640)
Release/2022 12 16
2022-12-15 18:20:28 +00:00
Patrick Fic
277fb8f839 Merged in release/2022-12-09 (pull request #637)
IO-2123 Add cc inventory print.
2022-12-09 19:35:49 +00:00
Patrick Fic
d3d5485846 Merged in release/2022-12-09 (pull request #636)
Release/2022 12 09
2022-12-09 16:19:58 +00:00
Patrick Fic
55091d61d6 Merged in release/2022-12-02 (pull request #634)
Release/2022 12 02
2022-11-30 18:26:32 +00:00
Patrick Fic
5b5df8a3a1 Merged in release/2022-11-25 (pull request #630)
Release/2022 11 25
2022-11-25 16:42:19 +00:00
Patrick Fic
ccf48cfcf1 Merged in release/2022-11-10 (pull request #624)
release/2022-11-10

Approved-by: Patrick Fic
2022-11-10 18:47:48 +00:00
Patrick Fic
c89342b6ef Merge branch 'release/2022-11-10' into test
* release/2022-11-10:
  CI Test
2022-11-09 16:35:48 -08:00
Patrick Fic
e97ceb7cbe Merged in release/2022-11-10 (pull request #623)
CI Test
2022-11-10 00:30:20 +00:00
Patrick Fic
de34cbd937 Merged in release/2022-11-10 (pull request #622)
Release/2022 11 10
2022-11-10 00:23:10 +00:00
Patrick Fic
cf7a1b0168 Merged in release/2022-11-10 (pull request #621)
Add .circleci/config.yml
2022-11-08 19:10:04 +00:00
42 changed files with 2411 additions and 404 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@ import { useTranslation } from "react-i18next";
import { DELETE_BILL } from "../../graphql/bills.queries"; import { DELETE_BILL } from "../../graphql/bills.queries";
import RbacWrapper from "../rbac-wrapper/rbac-wrapper.component"; import RbacWrapper from "../rbac-wrapper/rbac-wrapper.component";
export default function BillDeleteButton({ bill }) { export default function BillDeleteButton({ bill, callback }) {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const { t } = useTranslation(); const { t } = useTranslation();
const [deleteBill] = useMutation(DELETE_BILL); const [deleteBill] = useMutation(DELETE_BILL);
@@ -36,6 +36,8 @@ export default function BillDeleteButton({ bill }) {
if (!!!result.errors) { if (!!!result.errors) {
notification["success"]({ message: t("bills.successes.deleted") }); notification["success"]({ message: t("bills.successes.deleted") });
if (callback && typeof callback === "function") callback(bill.id);
} else { } else {
//Check if it's an fkey violation. //Check if it's an fkey violation.
const error = JSON.stringify(result.errors); const error = JSON.stringify(result.errors);

View File

@@ -219,13 +219,15 @@ export function JobsConvertButton({
</Select> </Select>
</Form.Item> </Form.Item>
)} )}
<Form.Item {bodyshop.region_config.toLowerCase().startsWith("ca") && (
label={t("jobs.fields.ca_gst_registrant")} <Form.Item
name="ca_gst_registrant" label={t("jobs.fields.ca_gst_registrant")}
valuePropName="checked" name="ca_gst_registrant"
> valuePropName="checked"
<Switch /> >
</Form.Item> <Switch />
</Form.Item>
)}
<Form.Item <Form.Item
label={t("jobs.fields.driveable")} label={t("jobs.fields.driveable")}
name="driveable" name="driveable"

View File

@@ -224,13 +224,15 @@ export function JobsCreateJobsInfo({ bodyshop, form, selected }) {
> >
<CurrencyInput /> <CurrencyInput />
</Form.Item> </Form.Item>
<Form.Item {bodyshop.region_config.toLowerCase().startsWith("ca") && (
label={t("jobs.fields.ca_gst_registrant")} <Form.Item
name="ca_gst_registrant" label={t("jobs.fields.ca_gst_registrant")}
valuePropName="checked" name="ca_gst_registrant"
> valuePropName="checked"
<Switch /> >
</Form.Item> <Switch />
</Form.Item>
)}
<Form.Item <Form.Item
label={t("jobs.fields.other_amount_payable")} label={t("jobs.fields.other_amount_payable")}
name="other_amount_payable" name="other_amount_payable"

View File

@@ -40,24 +40,26 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
> >
<CurrencyInput disabled={jobRO} min={0} /> <CurrencyInput disabled={jobRO} min={0} />
</Form.Item> </Form.Item>
<Tooltip title={t("jobs.labels.ca_gst_all_if_null")}> {bodyshop.region_config.toLowerCase().startsWith("ca") && (
<Form.Item <Tooltip title={t("jobs.labels.ca_gst_all_if_null")}>
label={t("jobs.fields.ca_customer_gst")} <Form.Item
name="ca_customer_gst" label={t("jobs.fields.ca_customer_gst")}
> name="ca_customer_gst"
<CurrencyInput >
disabled={jobRO} <CurrencyInput
min={0} disabled={jobRO}
max={ min={0}
Math.round( max={
(job.job_totals && Math.round(
job.job_totals.totals.federal_tax.amount) || (job.job_totals &&
0 job.job_totals.totals.federal_tax.amount) ||
) / 100 0
} ) / 100
/> }
</Form.Item> />
</Tooltip> </Form.Item>
</Tooltip>
)}
<Form.Item <Form.Item
label={t("jobs.fields.other_amount_payable")} label={t("jobs.fields.other_amount_payable")}
name="other_amount_payable" name="other_amount_payable"
@@ -82,12 +84,14 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
> >
<CurrencyInput disabled={jobRO || bodyshop.cdk_dealerid} /> <CurrencyInput disabled={jobRO || bodyshop.cdk_dealerid} />
</Form.Item> </Form.Item>
<Space align="center"> {bodyshop.region_config === "CA_BC" && (
<Form.Item label={t("jobs.fields.ca_bc_pvrt")} name="ca_bc_pvrt"> <Space align="center">
<CurrencyInput disabled={jobRO} min={0} /> <Form.Item label={t("jobs.fields.ca_bc_pvrt")} name="ca_bc_pvrt">
</Form.Item> <CurrencyInput disabled={jobRO} min={0} />
<CABCpvrtCalculator form={form} disabled={jobRO} /> </Form.Item>
</Space> <CABCpvrtCalculator form={form} disabled={jobRO} />
</Space>
)}
<Form.Item <Form.Item
label={t("jobs.fields.auto_add_ats")} label={t("jobs.fields.auto_add_ats")}
name="auto_add_ats" name="auto_add_ats"
@@ -141,13 +145,15 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
> >
<InputNumber min={0} max={1} precision={2} disabled={jobRO} /> <InputNumber min={0} max={1} precision={2} disabled={jobRO} />
</Form.Item> </Form.Item>
<Form.Item {bodyshop.region_config.toLowerCase().startsWith("ca") && (
label={t("jobs.fields.ca_gst_registrant")} <Form.Item
name="ca_gst_registrant" label={t("jobs.fields.ca_gst_registrant")}
valuePropName="checked" name="ca_gst_registrant"
> valuePropName="checked"
<Switch disabled={jobRO} /> >
</Form.Item> <Switch disabled={jobRO} />
</Form.Item>
)}
</FormRow> </FormRow>
<Divider <Divider
orientation="left" orientation="left"

View File

@@ -1,8 +1,9 @@
import { SyncOutlined } from "@ant-design/icons"; import { SyncOutlined } from "@ant-design/icons";
import { Button, Card, Input, Space, Table, Typography } from "antd"; import { Button, Card, Input, Space, Table, Typography } from "antd";
import axios from "axios";
import _ from "lodash"; import _ from "lodash";
import queryString from "query-string"; import queryString from "query-string";
import React from "react"; import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { Link, useHistory, useLocation } from "react-router-dom"; import { Link, useHistory, useLocation } from "react-router-dom";
@@ -21,6 +22,8 @@ const mapDispatchToProps = (dispatch) => ({
export function JobsList({ bodyshop, refetch, loading, jobs, total }) { export function JobsList({ bodyshop, refetch, loading, jobs, total }) {
const search = queryString.parse(useLocation().search); const search = queryString.parse(useLocation().search);
const [openSearchResults, setOpenSearchResults] = useState([]);
const [searchLoading, setSearchLoading] = useState(false);
const { page, sortcolumn, sortorder } = search; const { page, sortcolumn, sortorder } = search;
const history = useHistory(); const history = useHistory();
@@ -193,6 +196,28 @@ export function JobsList({ bodyshop, refetch, loading, jobs, total }) {
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
}; };
useEffect(() => {
if (search.search && search.search.trim() !== "") {
searchJobs();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
async function searchJobs(value) {
try {
setSearchLoading(true);
const searchData = await axios.post("/search", {
search: value || search.search,
index: "jobs",
});
setOpenSearchResults(searchData.data.hits.hits.map((s) => s._source));
} catch (error) {
console.log("Error while fetching search results", error);
} finally {
setSearchLoading(false);
}
}
return ( return (
<Card <Card
extra={ extra={
@@ -205,6 +230,7 @@ export function JobsList({ bodyshop, refetch, loading, jobs, total }) {
<Button <Button
onClick={() => { onClick={() => {
delete search.search; delete search.search;
delete search.page;
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
}} }}
> >
@@ -220,24 +246,32 @@ export function JobsList({ bodyshop, refetch, loading, jobs, total }) {
onSearch={(value) => { onSearch={(value) => {
search.search = value; search.search = value;
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
searchJobs(value);
}} }}
loading={loading || searchLoading}
enterButton enterButton
/> />
</Space> </Space>
} }
> >
<Table <Table
loading={loading} loading={loading || searchLoading}
pagination={{ pagination={
position: "top", search?.search
pageSize: 25, ? {
current: parseInt(page || 1), pageSize: 25,
total: total, showSizeChanger: false,
showSizeChanger: false, }
}} : {
pageSize: 25,
current: parseInt(page || 1),
total: total,
showSizeChanger: false,
}
}
columns={columns} columns={columns}
rowKey="id" rowKey="id"
dataSource={jobs} dataSource={search?.search ? openSearchResults : jobs}
onChange={handleTableChange} onChange={handleTableChange}
/> />
</Card> </Card>

View File

@@ -75,6 +75,27 @@ export function JobNotesComponent({
</span> </span>
), ),
}, },
{
title: t("notes.fields.type"),
dataIndex: "type",
key: "type",
width: 120,
filteredValue: filter?.type || null,
filters: [
{ value: "general", text: t("notes.fields.types.general") },
{ value: "customer", text: t("notes.fields.types.customer") },
{ value: "shop", text: t("notes.fields.types.shop") },
{ value: "office", text: t("notes.fields.types.office") },
{ value: "parts", text: t("notes.fields.types.parts") },
{ value: "paint", text: t("notes.fields.types.paint") },
{
value: "supplement",
text: t("notes.fields.types.supplement"),
},
],
onFilter: (value, record) => value.includes(record.type),
render: (text, record) => t(`notes.fields.types.${record.type}`),
},
{ {
title: t("notes.fields.text"), title: t("notes.fields.text"),
dataIndex: "text", dataIndex: "text",
@@ -106,7 +127,7 @@ export function JobNotesComponent({
title: t("notes.actions.actions"), title: t("notes.actions.actions"),
dataIndex: "actions", dataIndex: "actions",
key: "actions", key: "actions",
width: 150, width: 200,
render: (text, record) => ( render: (text, record) => (
<Space wrap> <Space wrap>
<Button <Button

View File

@@ -207,7 +207,7 @@ export function LaborAllocationsTable({
<Card title={t("jobs.labels.laborallocations")}> <Card title={t("jobs.labels.laborallocations")}>
<Table <Table
columns={columns} columns={columns}
rowKey="cost_center" rowKey={(record) => `${record.cost_center} ${record.mod_lbr_ty}`}
pagination={false} pagination={false}
onChange={handleTableChange} onChange={handleTableChange}
dataSource={totals} dataSource={totals}

View File

@@ -1,4 +1,14 @@
import { Checkbox, Col, Form, Input, Row, Space, Switch, Tag } from "antd"; import {
Checkbox,
Col,
Form,
Input,
Row,
Select,
Space,
Switch,
Tag,
} from "antd";
import React from "react"; import React from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { connect } from "react-redux"; import { connect } from "react-redux";
@@ -46,6 +56,28 @@ export function NoteUpsertModalComponent({ form, noteUpsertModal }) {
<Switch /> <Switch />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={8}>
<Form.Item
label={t("notes.fields.type")}
name="type"
initialValue="general"
>
<Select
options={[
{ value: "general", label: t("notes.fields.types.general") },
{ value: "customer", label: t("notes.fields.types.customer") },
{ value: "shop", label: t("notes.fields.types.shop") },
{ value: "office", label: t("notes.fields.types.office") },
{ value: "parts", label: t("notes.fields.types.parts") },
{ value: "paint", label: t("notes.fields.types.paint") },
{
value: "supplement",
label: t("notes.fields.types.supplement"),
},
]}
/>
</Form.Item>
</Col>
<Col span={8}> <Col span={8}>
<NotesPresetButton form={form} /> <NotesPresetButton form={form} />
</Col> </Col>

View File

@@ -52,7 +52,7 @@ function PaymentModalContainer({
const { useStripe, sendby, ...paymentObj } = values; const { useStripe, sendby, ...paymentObj } = values;
setLoading(true); setLoading(true);
let updatedPayment; //Moved up from if statement for greater scope.
try { try {
if (!context || (context && !context.id)) { if (!context || (context && !context.id)) {
const newPayment = await insertPayment({ const newPayment = await insertPayment({
@@ -87,7 +87,7 @@ function PaymentModalContainer({
); );
} }
} else { } else {
const updatedPayment = await updatePayment({ updatedPayment = await updatePayment({
variables: { variables: {
paymentId: context.id, paymentId: context.id,
payment: paymentObj, payment: paymentObj,
@@ -101,7 +101,11 @@ function PaymentModalContainer({
} }
} }
if (actions.refetch) actions.refetch(); if (actions.refetch)
actions.refetch(
updatedPayment && updatedPayment.data.update_payments.returning[0]
);
if (enterAgain) { if (enterAgain) {
const prev = form.getFieldsValue(["date"]); const prev = form.getFieldsValue(["date"]);

View File

@@ -1,20 +1,23 @@
import { EditFilled, SyncOutlined } from "@ant-design/icons"; import { EditFilled, SyncOutlined } from "@ant-design/icons";
import { useApolloClient } from "@apollo/client";
import { Button, Card, Input, Space, Table, Typography } from "antd"; import { Button, Card, Input, Space, Table, Typography } from "antd";
import axios from "axios";
import queryString from "query-string"; import queryString from "query-string";
import React, { useState } from "react"; import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { Link, useHistory, useLocation } from "react-router-dom"; import { Link, useHistory, useLocation } from "react-router-dom";
import { createStructuredSelector } from "reselect"; import { createStructuredSelector } from "reselect";
import { QUERY_PAYMENT_BY_ID } from "../../graphql/payments.queries";
import { setModalContext } from "../../redux/modals/modals.actions"; import { setModalContext } from "../../redux/modals/modals.actions";
import { selectBodyshop } from "../../redux/user/user.selectors"; import { selectBodyshop } from "../../redux/user/user.selectors";
import CurrencyFormatter from "../../utils/CurrencyFormatter"; import CurrencyFormatter from "../../utils/CurrencyFormatter";
import { DateFormatter, DateTimeFormatter } from "../../utils/DateFormatter"; import { DateFormatter, DateTimeFormatter } from "../../utils/DateFormatter";
import { alphaSort } from "../../utils/sorters";
import { TemplateList } from "../../utils/TemplateConstants"; import { TemplateList } from "../../utils/TemplateConstants";
import { alphaSort } from "../../utils/sorters";
import CaBcEtfTableModalContainer from "../ca-bc-etf-table-modal/ca-bc-etf-table-modal.container"; import CaBcEtfTableModalContainer from "../ca-bc-etf-table-modal/ca-bc-etf-table-modal.container";
import PrintWrapperComponent from "../print-wrapper/print-wrapper.component";
import OwnerNameDisplay from "../owner-name-display/owner-name-display.component"; import OwnerNameDisplay from "../owner-name-display/owner-name-display.component";
import PrintWrapperComponent from "../print-wrapper/print-wrapper.component";
const mapStateToProps = createStructuredSelector({ const mapStateToProps = createStructuredSelector({
//currentUser: selectCurrentUser //currentUser: selectCurrentUser
@@ -39,7 +42,10 @@ export function PaymentsListPaginated({
bodyshop, bodyshop,
}) { }) {
const search = queryString.parse(useLocation().search); const search = queryString.parse(useLocation().search);
const [openSearchResults, setOpenSearchResults] = useState([]);
const [searchLoading, setSearchLoading] = useState(false);
const { page, sortcolumn, sortorder } = search; const { page, sortcolumn, sortorder } = search;
const client = useApolloClient();
const history = useHistory(); const history = useHistory();
const [state, setState] = useState({ const [state, setState] = useState({
sortedInfo: {}, sortedInfo: {},
@@ -52,13 +58,17 @@ export function PaymentsListPaginated({
title: t("jobs.fields.ro_number"), title: t("jobs.fields.ro_number"),
dataIndex: "ro_number", dataIndex: "ro_number",
key: "ro_number", key: "ro_number",
sorter: (a, b) => alphaSort(a.job.ro_number, b.job.ro_number), // sorter: (a, b) => alphaSort(a.job.ro_number, b.job.ro_number),
sortOrder: sortcolumn === "ro_number" && sortorder, // sortOrder: sortcolumn === "ro_number" && sortorder,
render: (text, record) => ( render: (text, record) => {
<Link to={"/manage/jobs/" + record.job.id}> return record.job ? (
{record.job.ro_number || t("general.labels.na")} <Link to={"/manage/jobs/" + record.job.id}>
</Link> {record.job.ro_number || t("general.labels.na")}
), </Link>
) : (
<span>{t("general.labels.na")}</span>
);
},
}, },
{ {
title: t("payments.fields.paymentnum"), title: t("payments.fields.paymentnum"),
@@ -72,16 +82,16 @@ export function PaymentsListPaginated({
dataIndex: "owner", dataIndex: "owner",
key: "owner", key: "owner",
ellipsis: true, ellipsis: true,
sorter: (a, b) => alphaSort(a.job.ownr_ln, b.job.ownr_ln), // sorter: (a, b) => alphaSort(a.job.ownr_ln, b.job.ownr_ln),
sortOrder: sortcolumn === "owner" && sortorder, // sortOrder: sortcolumn === "owner" && sortorder,
render: (text, record) => { render: (text, record) => {
return record.job.owner ? ( return record.job?.owner ? (
<Link to={"/manage/owners/" + record.job.owner.id}> <Link to={"/manage/owners/" + record.job?.owner?.id}>
<OwnerNameDisplay ownerObject={record} /> <OwnerNameDisplay ownerObject={record.job} />
</Link> </Link>
) : ( ) : (
<span> <span>
<OwnerNameDisplay ownerObject={record} /> <OwnerNameDisplay ownerObject={record.job} />
</span> </span>
); );
}, },
@@ -147,10 +157,33 @@ export function PaymentsListPaginated({
<Space> <Space>
<Button <Button
disabled={record.exportedat} disabled={record.exportedat}
onClick={() => { onClick={async () => {
let apolloResults;
if (search.search) {
const { data } = await client.query({
query: QUERY_PAYMENT_BY_ID,
variables: {
paymentId: record.id,
},
});
apolloResults = data.payments_by_pk;
}
setPaymentContext({ setPaymentContext({
actions: { refetch: refetch }, actions: {
context: record, refetch: apolloResults
? (updatedRecord) => {
setOpenSearchResults((results) =>
results.map((result) => {
if (result.id !== record.id) {
return result;
}
return updatedRecord;
})
);
}
: refetch,
},
context: apolloResults ? apolloResults : record,
}); });
}} }}
> >
@@ -177,6 +210,28 @@ export function PaymentsListPaginated({
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
}; };
useEffect(() => {
if (search.search && search.search.trim() !== "") {
searchPayments();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
async function searchPayments(value) {
try {
setSearchLoading(true);
const searchData = await axios.post("/search", {
search: value || search.search,
index: "payments",
});
setOpenSearchResults(searchData.data.hits.hits.map((s) => s._source));
} catch (error) {
console.log("Error while fetching search results", error);
} finally {
setSearchLoading(false);
}
}
return ( return (
<Card <Card
extra={ extra={
@@ -189,6 +244,7 @@ export function PaymentsListPaginated({
<Button <Button
onClick={() => { onClick={() => {
delete search.search; delete search.search;
delete search.page;
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
}} }}
> >
@@ -212,24 +268,33 @@ export function PaymentsListPaginated({
onSearch={(value) => { onSearch={(value) => {
search.search = value; search.search = value;
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
searchPayments(value);
}} }}
loading={loading || searchLoading}
enterButton enterButton
/> />
</Space> </Space>
} }
> >
<Table <Table
loading={loading} loading={loading || searchLoading}
scroll={{ x: true }} scroll={{ x: true }}
pagination={{ pagination={
position: "top", search?.search
pageSize: 25, ? {
current: parseInt(page || 1), pageSize: 25,
total: total, showSizeChanger: false,
}} }
: {
pageSize: 25,
current: parseInt(page || 1),
total: total,
showSizeChanger: false,
}
}
columns={columns} columns={columns}
rowKey="id" rowKey="id"
dataSource={payments} dataSource={search?.search ? openSearchResults : payments}
onChange={handleTableChange} onChange={handleTableChange}
/> />
</Card> </Card>

View File

@@ -29,7 +29,10 @@ export function PrintCenterJobsComponent({ printCenterModal, bodyshop }) {
}) })
.filter( .filter(
(temp) => (temp) =>
!temp.regions || (temp.regions && temp.regions[bodyshop.region_config]) !temp.regions ||
(temp.regions && temp.regions[bodyshop.region_config]) ||
(temp.regions &&
bodyshop.region_config.includes(Object.keys(temp.regions)) === true)
); );
const filteredJobsReportsList = const filteredJobsReportsList =

View File

@@ -0,0 +1,51 @@
import { Col, List, Space, Typography } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
const CardColorLegend = ({ bodyshop }) => {
const { t } = useTranslation();
const data = bodyshop.ssbuckets.map((bucket) => {
let color = { r: 255, g: 255, b: 255 };
if (bucket.color) {
color = bucket.color;
if (bucket.color.rgb) {
color = bucket.color.rgb;
}
}
return {
label: bucket.label,
color,
};
});
return (
<Col>
<Typography>{t("production.labels.legend")}</Typography>
<List
grid={{
gutter: 16,
}}
dataSource={data}
renderItem={(item) => (
<List.Item>
<Space>
<div
style={{
width: "1.5rem",
aspectRatio: "1/1",
backgroundColor: `rgba(${item.color.r},${item.color.g},${item.color.b},${item.color.a})`,
}}
></div>
<div>{item.label}</div>
</Space>
</List.Item>
)}
/>
</Col>
);
};
export default CardColorLegend;

View File

@@ -18,6 +18,31 @@ import moment from "moment";
import OwnerNameDisplay from "../owner-name-display/owner-name-display.component"; import OwnerNameDisplay from "../owner-name-display/owner-name-display.component";
import JobPartsQueueCount from "../job-parts-queue-count/job-parts-queue-count.component"; import JobPartsQueueCount from "../job-parts-queue-count/job-parts-queue-count.component";
const cardColor = (ssbuckets, totalHrs) => {
const bucket = ssbuckets.filter(
(bucket) =>
bucket.gte <= totalHrs && (!!bucket.lt ? bucket.lt > totalHrs : true)
)[0];
let color = { r: 255, g: 255, b: 255 };
if (bucket && bucket.color) {
color = bucket.color;
if (bucket.color.rgb) {
color = bucket.color.rgb;
}
}
return color;
};
function getContrastYIQ(bgColor) {
const yiq = (bgColor.r * 299 + bgColor.g * 587 + bgColor.b * 114) / 1000;
return yiq >= 128 ? "black" : "white";
}
export default function ProductionBoardCard( export default function ProductionBoardCard(
technician, technician,
card, card,
@@ -54,10 +79,22 @@ export default function ProductionBoardCard(
.isSame(moment(card.scheduled_completion), "day") && .isSame(moment(card.scheduled_completion), "day") &&
"production-completion-soon")); "production-completion-soon"));
const totalHrs =
card.labhrs.aggregate.sum.mod_lb_hrs + card.larhrs.aggregate.sum.mod_lb_hrs;
const bgColor = cardColor(bodyshop.ssbuckets, totalHrs);
return ( return (
<Card <Card
className="react-kanban-card imex-kanban-card" className="react-kanban-card imex-kanban-card"
size="small" size="small"
style={{
backgroundColor:
cardSettings &&
cardSettings.cardcolor &&
`rgba(${bgColor.r},${bgColor.g},${bgColor.b},${bgColor.a})`,
color:
cardSettings && cardSettings.cardcolor && getContrastYIQ(bgColor),
}}
title={ title={
<Space> <Space>
<ProductionAlert record={card} key="alert" /> <ProductionAlert record={card} key="alert" />

View File

@@ -104,6 +104,13 @@ export default function ProductionBoardKanbanCardSettings({
> >
<Switch /> <Switch />
</Form.Item> </Form.Item>
<Form.Item
valuePropName="checked"
label={t("production.labels.cardcolor")}
name="cardcolor"
>
<Switch />
</Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
@@ -166,7 +173,7 @@ export default function ProductionBoardKanbanCardSettings({
</div> </div>
); );
return ( return (
<Popover content={overlay} visible={visible}> <Popover content={overlay} visible={visible} placement="topRight">
<Button loading={loading} onClick={() => setVisible(true)}> <Button loading={loading} onClick={() => setVisible(true)}>
{t("production.labels.cardsettings")} {t("production.labels.cardsettings")}
</Button> </Button>

View File

@@ -22,6 +22,7 @@ import ProductionBoardKanbanCardSettings from "./production-board-kanban.card-se
//import "@asseinfo/react-kanban/dist/styles.css"; //import "@asseinfo/react-kanban/dist/styles.css";
import "./production-board-kanban.styles.scss"; import "./production-board-kanban.styles.scss";
import { createBoardData } from "./production-board-kanban.utils.js"; import { createBoardData } from "./production-board-kanban.utils.js";
import CardColorLegend from "../production-board-kanban-card/production-board-kanban-card-color-legend.component";
const mapStateToProps = createStructuredSelector({ const mapStateToProps = createStructuredSelector({
bodyshop: selectBodyshop, bodyshop: selectBodyshop,
technician: selectTechnician, technician: selectTechnician,
@@ -221,6 +222,7 @@ export function ProductionBoardKanbanComponent({
employeeassignments: true, employeeassignments: true,
scheduled_completion: true, scheduled_completion: true,
stickyheader: false, stickyheader: false,
cardcolor: false,
}; };
return ( return (
@@ -256,6 +258,11 @@ export function ProductionBoardKanbanComponent({
</Space> </Space>
} }
/> />
{cardSettings.cardcolor && (
<CardColorLegend cardSettings={cardSettings} bodyshop={bodyshop} />
)}
<ProductionListDetailComponent jobs={data} /> <ProductionListDetailComponent jobs={data} />
<StickyContainer> <StickyContainer>
<Board <Board

View File

@@ -25,6 +25,7 @@ export default function ProductionListDate({
// } // }
//e.stopPropagation(); //e.stopPropagation();
updateAlert({ updateAlert({
variables: { variables: {
jobId: record.id, jobId: record.id,
@@ -32,6 +33,11 @@ export default function ProductionListDate({
[field]: date, [field]: date,
}, },
}, },
optimisticResponse: {
update_jobs: {
[field]: date,
},
},
}).then(() => { }).then(() => {
if (record.refetch) record.refetch(); if (record.refetch) record.refetch();
if (!time) { if (!time) {
@@ -49,9 +55,11 @@ export default function ProductionListDate({
(moment().add(1, "day").isSame(moment(record[field]), "day") && (moment().add(1, "day").isSame(moment(record[field]), "day") &&
"production-completion-soon")); "production-completion-soon"));
} }
return ( return (
<Dropdown <Dropdown
//trigger={["click"]} trigger={["click"]}
onVisibleChange={(v) => setVisible(v)}
visible={visible} visible={visible}
style={{ style={{
height: "19px", height: "19px",

View File

@@ -1,5 +1,6 @@
import Dinero from "dinero.js";
import { Card } from "antd"; import { Card } from "antd";
import Dinero from "dinero.js";
import _ from "lodash";
import moment from "moment"; import moment from "moment";
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
@@ -18,7 +19,6 @@ import {
import { createStructuredSelector } from "reselect"; import { createStructuredSelector } from "reselect";
import { selectBodyshop } from "../../redux/user/user.selectors"; import { selectBodyshop } from "../../redux/user/user.selectors";
import * as Utils from "../scoreboard-targets-table/scoreboard-targets-table.util"; import * as Utils from "../scoreboard-targets-table/scoreboard-targets-table.util";
import _ from "lodash";
import CustomTooltip from "./chart-custom-tooltip"; import CustomTooltip from "./chart-custom-tooltip";
const graphProps = { const graphProps = {
@@ -71,7 +71,9 @@ export function ScoreboardChart({ sbEntriesByDate, bodyshop }) {
bodyshop.scoreboard_target.dailyBodyTarget + bodyshop.scoreboard_target.dailyBodyTarget +
bodyshop.scoreboard_target.dailyPaintTarget, bodyshop.scoreboard_target.dailyPaintTarget,
val val
), ) +
bodyshop.scoreboard_target.dailyBodyTarget +
bodyshop.scoreboard_target.dailyPaintTarget,
1 1
), ),
accHrs: _.round( accHrs: _.round(

View File

@@ -396,7 +396,7 @@ export function ShopInfoROStatusComponent({ bodyshop, form }) {
); );
} }
const ColorPicker = ({ value, onChange, style, ...restProps }) => { export const ColorPicker = ({ value, onChange, style, ...restProps }) => {
const handleChange = (color) => { const handleChange = (color) => {
if (onChange) onChange(color.rgb); if (onChange) onChange(color.rgb);
}; };

View File

@@ -15,6 +15,7 @@ import { useTranslation } from "react-i18next";
import ColorpickerFormItemComponent from "../form-items-formatted/colorpicker-form-item.component"; import ColorpickerFormItemComponent from "../form-items-formatted/colorpicker-form-item.component";
import FormListMoveArrows from "../form-list-move-arrows/form-list-move-arrows.component"; import FormListMoveArrows from "../form-list-move-arrows/form-list-move-arrows.component";
import LayoutFormRow from "../layout-form-row/layout-form-row.component"; import LayoutFormRow from "../layout-form-row/layout-form-row.component";
import { ColorPicker } from "./shop-info.rostatus.component";
export default function ShopInfoSchedulingComponent({ form }) { export default function ShopInfoSchedulingComponent({ form }) {
const { t } = useTranslation(); const { t } = useTranslation();
@@ -277,17 +278,50 @@ export default function ShopInfoSchedulingComponent({ form }) {
> >
<InputNumber /> <InputNumber />
</Form.Item> </Form.Item>
<Space wrap>
<DeleteFilled <Space direction="horizontal">
onClick={() => { <Form.Item
remove(field.name); label={
}} <Space>
/> {t("bodyshop.fields.ssbuckets.color")}
<FormListMoveArrows <Button
move={move} size="small"
index={index} onClick={() => {
total={fields.length} form.setFieldValue([
/> "ssbuckets",
field.name,
"color",
]);
form.setFields([
{
name: ["ssbuckets", field.name, "color"],
touched: true,
},
]);
}}
>
Reset
</Button>
</Space>
}
key={`${index}color`}
name={[field.name, "color"]}
>
<ColorPicker />
</Form.Item>
<Space wrap>
<DeleteFilled
onClick={() => {
remove(field.name);
}}
/>
<FormListMoveArrows
move={move}
index={index}
total={fields.length}
/>
</Space>
</Space> </Space>
</LayoutFormRow> </LayoutFormRow>
</Form.Item> </Form.Item>

View File

@@ -20,13 +20,11 @@ export const DELETE_BILL = gql`
export const QUERY_ALL_BILLS_PAGINATED = gql` export const QUERY_ALL_BILLS_PAGINATED = gql`
query QUERY_ALL_BILLS_PAGINATED( query QUERY_ALL_BILLS_PAGINATED(
$search: String
$offset: Int $offset: Int
$limit: Int $limit: Int
$order: [bills_order_by!]! $order: [bills_order_by!]!
) { ) {
search_bills( bills(
args: { search: $search }
offset: $offset offset: $offset
limit: $limit limit: $limit
order_by: $order order_by: $order
@@ -51,7 +49,7 @@ export const QUERY_ALL_BILLS_PAGINATED = gql`
ro_number ro_number
} }
} }
search_bills_aggregate(args: { search: $search }) { bills_aggregate {
aggregate { aggregate {
count(distinct: true) count(distinct: true)
} }

View File

@@ -1075,6 +1075,9 @@ export const UPDATE_JOB = gql`
lbr_adjustments lbr_adjustments
suspended suspended
queued_for_parts queued_for_parts
scheduled_completion
actual_in
date_repairstarted
} }
} }
} }
@@ -1781,14 +1784,12 @@ export const QUERY_ALL_JOB_FIELDS = gql`
export const QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED = gql` export const QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED = gql`
query QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED( query QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED(
$search: String
$offset: Int $offset: Int
$limit: Int $limit: Int
$order: [jobs_order_by!] $order: [jobs_order_by!]
$statusList: [String!] $statusList: [String!]
) { ) {
search_jobs( jobs(
args: { search: $search }
offset: $offset offset: $offset
limit: $limit limit: $limit
order_by: $order order_by: $order
@@ -1819,10 +1820,7 @@ export const QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED = gql`
updated_at updated_at
ded_amt ded_amt
} }
search_jobs_aggregate( jobs_aggregate(where: { status: { _in: $statusList } }) {
args: { search: $search }
where: { status: { _in: $statusList } }
) {
aggregate { aggregate {
count(distinct: true) count(distinct: true)
} }

View File

@@ -13,6 +13,7 @@ export const INSERT_NEW_NOTE = gql`
text text
updated_at updated_at
audit audit
type
} }
} }
} }
@@ -41,6 +42,7 @@ export const QUERY_NOTES_BY_JOB_PK = gql`
text text
updated_at updated_at
audit audit
type
} }
} }
} }
@@ -60,6 +62,7 @@ export const UPDATE_NOTE = gql`
text text
updated_at updated_at
audit audit
type
} }
} }
} }

View File

@@ -12,39 +12,39 @@ export const INSERT_NEW_PAYMENT = gql`
export const QUERY_ALL_PAYMENTS_PAGINATED = gql` export const QUERY_ALL_PAYMENTS_PAGINATED = gql`
query QUERY_ALL_PAYMENTS_PAGINATED( query QUERY_ALL_PAYMENTS_PAGINATED(
$search: String
$offset: Int $offset: Int
$limit: Int $limit: Int
$order: [payments_order_by!]! $order: [payments_order_by!]!
) { ) {
search_payments( payments(offset: $offset, limit: $limit, order_by: $order) {
args: { search: $search }
offset: $offset
limit: $limit
order_by: $order
) {
id id
amount
created_at created_at
jobid
paymentnum
date date
exportedat
jobid
job { job {
id id
ro_number ownerid
ownr_co_nm
ownr_fn ownr_fn
ownr_ln ownr_ln
ownr_co_nm owner {
id
ownr_co_nm
ownr_fn
ownr_ln
}
ro_number
} }
transactionid
memo memo
type
amount
stripeid
exportedat
stripeid
payer payer
paymentnum
stripeid
transactionid
type
} }
search_payments_aggregate(args: { search: $search }) { payments_aggregate {
aggregate { aggregate {
count(distinct: true) count(distinct: true)
} }
@@ -57,16 +57,31 @@ export const UPDATE_PAYMENT = gql`
update_payments(where: { id: { _eq: $paymentId } }, _set: $payment) { update_payments(where: { id: { _eq: $paymentId } }, _set: $payment) {
returning { returning {
id id
transactionid
memo
type
amount amount
stripeid created_at
date
exportedat exportedat
stripeid jobid
job {
id
ownerid
ownr_co_nm
ownr_fn
ownr_ln
owner {
id
ownr_co_nm
ownr_fn
ownr_ln
}
ro_number
}
memo
payer payer
paymentnum paymentnum
date stripeid
transactionid
type
} }
} }
} }
@@ -80,17 +95,31 @@ export const UPDATE_PAYMENTS = gql`
update_payments(where: { id: { _in: $paymentIdList } }, _set: $payment) { update_payments(where: { id: { _in: $paymentIdList } }, _set: $payment) {
returning { returning {
id id
exportedat
transactionid
memo
type
amount amount
stripeid created_at
date
exportedat exportedat
stripeid jobid
job {
id
ownerid
ownr_co_nm
ownr_fn
ownr_ln
owner {
id
ownr_co_nm
ownr_fn
ownr_ln
}
ro_number
}
memo
payer payer
paymentnum paymentnum
date stripeid
transactionid
type
} }
} }
} }
@@ -109,3 +138,36 @@ export const QUERY_JOB_PAYMENT_TOTALS = gql`
} }
} }
`; `;
export const QUERY_PAYMENT_BY_ID = gql`
query QUERY_PAYMENT_BY_ID($paymentId: uuid!) {
payments_by_pk(id: $paymentId) {
id
amount
created_at
exportedat
date
jobid
job {
id
ownerid
ownr_co_nm
ownr_fn
ownr_ln
owner {
id
ownr_co_nm
ownr_fn
ownr_ln
}
ro_number
}
memo
payer
paymentnum
stripeid
transactionid
type
}
}
`;

View File

@@ -1,7 +1,8 @@
import { SyncOutlined, EditFilled } from "@ant-design/icons"; import { EditFilled, SyncOutlined } from "@ant-design/icons";
import { Button, Card, Checkbox, Input, Space, Table, Typography } from "antd"; import { Button, Card, Checkbox, Input, Space, Table, Typography } from "antd";
import axios from "axios";
import queryString from "query-string"; import queryString from "query-string";
import React, { useState } from "react"; import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { Link, useHistory, useLocation } from "react-router-dom"; import { Link, useHistory, useLocation } from "react-router-dom";
@@ -11,8 +12,8 @@ import PrintWrapperComponent from "../../components/print-wrapper/print-wrapper.
import { setModalContext } from "../../redux/modals/modals.actions"; import { setModalContext } from "../../redux/modals/modals.actions";
import CurrencyFormatter from "../../utils/CurrencyFormatter"; import CurrencyFormatter from "../../utils/CurrencyFormatter";
import { DateFormatter } from "../../utils/DateFormatter"; import { DateFormatter } from "../../utils/DateFormatter";
import { alphaSort, dateSort } from "../../utils/sorters";
import { TemplateList } from "../../utils/TemplateConstants"; import { TemplateList } from "../../utils/TemplateConstants";
import { alphaSort, dateSort } from "../../utils/sorters";
const mapDispatchToProps = (dispatch) => ({ const mapDispatchToProps = (dispatch) => ({
setPartsOrderContext: (context) => setPartsOrderContext: (context) =>
@@ -29,34 +30,36 @@ export function BillsListPage({
setPartsOrderContext, setPartsOrderContext,
setBillEnterContext, setBillEnterContext,
}) { }) {
const { t } = useTranslation(); const search = queryString.parse(useLocation().search);
const [openSearchResults, setOpenSearchResults] = useState([]);
const [searchLoading, setSearchLoading] = useState(false);
const { page } = search;
const history = useHistory();
const [state, setState] = useState({ const [state, setState] = useState({
sortedInfo: {}, sortedInfo: {},
filteredInfo: { text: "" },
}); });
const history = useHistory();
const search = queryString.parse(useLocation().search);
const { page } = search;
const Templates = TemplateList("bill"); const Templates = TemplateList("bill");
const { t } = useTranslation();
const columns = [ const columns = [
{ {
title: t("bills.fields.vendorname"), title: t("bills.fields.vendorname"),
dataIndex: "vendorname", dataIndex: "vendorname",
key: "vendorname", key: "vendorname",
sortObject: (direction) => { // sortObject: (direction) => {
return { // return {
vendor: { // vendor: {
name: direction // name: direction
? direction === "descend" // ? direction === "descend"
? "desc" // ? "desc"
: "asc" // : "asc"
: "desc", // : "desc",
}, // },
}; // };
}, // },
sorter: (a, b) => alphaSort(a.vendor.name, b.vendor.name), // sorter: (a, b) => alphaSort(a.vendor.name, b.vendor.name),
sortOrder: // sortOrder:
state.sortedInfo.columnKey === "vendorname" && state.sortedInfo.order, // state.sortedInfo.columnKey === "vendorname" && state.sortedInfo.order,
render: (text, record) => <span>{record.vendor.name}</span>, render: (text, record) => <span>{record.vendor.name}</span>,
}, },
{ {
@@ -72,20 +75,20 @@ export function BillsListPage({
title: t("jobs.fields.ro_number"), title: t("jobs.fields.ro_number"),
dataIndex: "ro_number", dataIndex: "ro_number",
key: "ro_number", key: "ro_number",
sortObject: (direction) => { // sortObject: (direction) => {
return { // return {
job: { // job: {
ro_number: direction // ro_number: direction
? direction === "descend" // ? direction === "descend"
? "desc" // ? "desc"
: "asc" // : "asc"
: "desc", // : "desc",
}, // },
}; // };
}, // },
sorter: (a, b) => alphaSort(a.job.ro_number, b.job.ro_number), // sorter: (a, b) => alphaSort(a.job.ro_number, b.job.ro_number),
sortOrder: // sortOrder:
state.sortedInfo.columnKey === "ro_number" && state.sortedInfo.order, // state.sortedInfo.columnKey === "ro_number" && state.sortedInfo.order,
render: (text, record) => render: (text, record) =>
record.job && ( record.job && (
<Link to={`/manage/jobs/${record.job.id}`}> <Link to={`/manage/jobs/${record.job.id}`}>
@@ -174,7 +177,15 @@ export function BillsListPage({
// {t("bills.actions.return")} // {t("bills.actions.return")}
// </Button> // </Button>
} }
<BillDeleteButton bill={record} /> <BillDeleteButton
bill={record}
callback={(deletedBillid) => {
//Filter out the state and set it again.
setOpenSearchResults((currentResults) =>
currentResults.filter((bill) => bill.id !== deletedBillid)
);
}}
/>
{record.isinhouse && ( {record.isinhouse && (
<PrintWrapperComponent <PrintWrapperComponent
templateObject={{ templateObject={{
@@ -199,11 +210,32 @@ export function BillsListPage({
search.sortcolumn = sorter.order ? sorter.columnKey : null; search.sortcolumn = sorter.order ? sorter.columnKey : null;
search.sortorder = sorter.order; search.sortorder = sorter.order;
} }
search.sort = JSON.stringify({ [sorter.columnKey]: sorter.order }); search.sort = JSON.stringify({ [sorter.columnKey]: sorter.order });
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
}; };
useEffect(() => {
if (search.search && search.search.trim() !== "") {
searchBills();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
async function searchBills(value) {
try {
setSearchLoading(true);
const searchData = await axios.post("/search", {
search: value || search.search,
index: "bills",
});
setOpenSearchResults(searchData.data.hits.hits.map((s) => s._source));
} catch (error) {
console.log("Error while fetching search results", error);
} finally {
setSearchLoading(false);
}
}
return ( return (
<Card <Card
title={t("bills.labels.bills")} title={t("bills.labels.bills")}
@@ -217,6 +249,7 @@ export function BillsListPage({
<Button <Button
onClick={() => { onClick={() => {
delete search.search; delete search.search;
delete search.page;
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
}} }}
> >
@@ -243,7 +276,10 @@ export function BillsListPage({
onSearch={(value) => { onSearch={(value) => {
search.search = value; search.search = value;
history.push({ search: queryString.stringify(search) }); history.push({ search: queryString.stringify(search) });
searchBills(value);
}} }}
loading={loading || searchLoading}
enterButton
/> />
</Space> </Space>
} }
@@ -251,19 +287,27 @@ export function BillsListPage({
<PartsOrderModalContainer /> <PartsOrderModalContainer />
<Table <Table
loading={loading} loading={loading || searchLoading}
scroll={{ // scroll={{
x: "50%", // y: "40rem" // x: "50%", // y: "40rem"
}} // }}
pagination={{ scroll={{ x: true }}
position: "top", pagination={
pageSize: 25, search?.search
current: parseInt(page || 1), ? {
total: total, pageSize: 25,
}} showSizeChanger: false,
}
: {
pageSize: 25,
current: parseInt(page || 1),
total: total,
showSizeChanger: false,
}
}
columns={columns} columns={columns}
rowKey="id" rowKey="id"
dataSource={data} dataSource={search?.search ? openSearchResults : data}
onChange={handleTableChange} onChange={handleTableChange}
/> />
</Card> </Card>

View File

@@ -1,6 +1,6 @@
import { useQuery } from "@apollo/client";
import queryString from "query-string"; import queryString from "query-string";
import React, { useEffect } from "react"; import React, { useEffect } from "react";
import { useQuery } from "@apollo/client";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { useLocation } from "react-router-dom"; import { useLocation } from "react-router-dom";
@@ -22,7 +22,7 @@ const mapDispatchToProps = (dispatch) => ({
export function BillsPageContainer({ setBreadcrumbs, setSelectedHeader }) { export function BillsPageContainer({ setBreadcrumbs, setSelectedHeader }) {
const { t } = useTranslation(); const { t } = useTranslation();
const searchParams = queryString.parse(useLocation().search); const searchParams = queryString.parse(useLocation().search);
const { page, sortcolumn, sortorder, search, searchObj } = searchParams; const { page, sortcolumn, sortorder, searchObj } = searchParams;
useEffect(() => { useEffect(() => {
document.title = t("titles.bills-list"); document.title = t("titles.bills-list");
@@ -38,7 +38,6 @@ export function BillsPageContainer({ setBreadcrumbs, setSelectedHeader }) {
fetchPolicy: "network-only", fetchPolicy: "network-only",
nextFetchPolicy: "network-only", nextFetchPolicy: "network-only",
variables: { variables: {
search: search || "",
offset: page ? (page - 1) * 25 : 0, offset: page ? (page - 1) * 25 : 0,
limit: 25, limit: 25,
order: [ order: [
@@ -61,10 +60,10 @@ export function BillsPageContainer({ setBreadcrumbs, setSelectedHeader }) {
<RbacWrapper action="bills:list"> <RbacWrapper action="bills:list">
<div> <div>
<BillsPageComponent <BillsPageComponent
data={data ? data.search_bills : []} data={data ? data.bills : []}
loading={loading} loading={loading}
refetch={refetch} refetch={refetch}
total={data ? data.search_bills_aggregate.aggregate.count : 0} total={data ? data.bills_aggregate.aggregate.count : 0}
/> />
<BillDetailEditContainer /> <BillDetailEditContainer />

View File

@@ -25,7 +25,7 @@ const mapDispatchToProps = (dispatch) => ({
export function AllJobs({ setBreadcrumbs, setSelectedHeader }) { export function AllJobs({ setBreadcrumbs, setSelectedHeader }) {
const searchParams = queryString.parse(useLocation().search); const searchParams = queryString.parse(useLocation().search);
const { page, sortcolumn, sortorder, search, statusFilters } = searchParams; const { page, sortcolumn, sortorder, statusFilters } = searchParams;
const { loading, error, data, refetch } = useQuery( const { loading, error, data, refetch } = useQuery(
QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED, QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED,
@@ -33,7 +33,6 @@ export function AllJobs({ setBreadcrumbs, setSelectedHeader }) {
fetchPolicy: "network-only", fetchPolicy: "network-only",
nextFetchPolicy: "network-only", nextFetchPolicy: "network-only",
variables: { variables: {
search: search || "",
offset: page ? (page - 1) * 25 : 0, offset: page ? (page - 1) * 25 : 0,
limit: 25, limit: 25,
...(statusFilters ? { statusList: JSON.parse(statusFilters) } : {}), ...(statusFilters ? { statusList: JSON.parse(statusFilters) } : {}),
@@ -67,8 +66,8 @@ export function AllJobs({ setBreadcrumbs, setSelectedHeader }) {
refetch={refetch} refetch={refetch}
loading={loading} loading={loading}
searchParams={searchParams} searchParams={searchParams}
total={data ? data.search_jobs_aggregate.aggregate.count : 0} total={data ? data.jobs_aggregate.aggregate.count : 0}
jobs={data ? data.search_jobs : []} jobs={data ? data.jobs : []}
/> />
</RbacWrapper> </RbacWrapper>
); );

View File

@@ -26,7 +26,7 @@ const mapDispatchToProps = (dispatch) => ({
export function AllJobs({ bodyshop, setBreadcrumbs, setSelectedHeader }) { export function AllJobs({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
const searchParams = queryString.parse(useLocation().search); const searchParams = queryString.parse(useLocation().search);
const { page, sortcolumn, sortorder, search } = searchParams; const { page, sortcolumn, sortorder, searchObj } = searchParams;
const { loading, error, data, refetch } = useQuery( const { loading, error, data, refetch } = useQuery(
QUERY_ALL_PAYMENTS_PAGINATED, QUERY_ALL_PAYMENTS_PAGINATED,
@@ -34,11 +34,12 @@ export function AllJobs({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
fetchPolicy: "network-only", fetchPolicy: "network-only",
nextFetchPolicy: "network-only", nextFetchPolicy: "network-only",
variables: { variables: {
search: search || "",
offset: page ? (page - 1) * 25 : 0, offset: page ? (page - 1) * 25 : 0,
limit: 25, limit: 25,
order: [ order: [
{ searchObj
? JSON.parse(searchObj)
: {
[sortcolumn || "date"]: sortorder [sortcolumn || "date"]: sortorder
? sortorder === "descend" ? sortorder === "descend"
? "desc" ? "desc"
@@ -66,8 +67,8 @@ export function AllJobs({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
refetch={refetch} refetch={refetch}
loading={loading} loading={loading}
searchParams={searchParams} searchParams={searchParams}
total={data ? data.search_payments_aggregate.aggregate.count : 0} total={data ? data.payments_aggregate.aggregate.count : 0}
payments={data ? data.search_payments : []} payments={data ? data.payments : []}
/> />
</RbacWrapper> </RbacWrapper>
); );

View File

@@ -63,6 +63,7 @@
"scheduledfor": "Scheduled appointment for: ", "scheduledfor": "Scheduled appointment for: ",
"severalerrorsfound": "Several jobs have issues which may prevent accurate smart scheduling. Click to expand.", "severalerrorsfound": "Several jobs have issues which may prevent accurate smart scheduling. Click to expand.",
"smartscheduling": "Smart Scheduling", "smartscheduling": "Smart Scheduling",
"smspaymentreminder": "",
"suggesteddates": "Suggested Dates" "suggesteddates": "Suggested Dates"
}, },
"successes": { "successes": {
@@ -103,6 +104,7 @@
"admin_jobunvoid": "ADMIN: Job has been unvoided.", "admin_jobunvoid": "ADMIN: Job has been unvoided.",
"billposted": "Bill with invoice number {{invoice_number}} posted.", "billposted": "Bill with invoice number {{invoice_number}} posted.",
"billupdated": "Bill with invoice number {{invoice_number}} updated.", "billupdated": "Bill with invoice number {{invoice_number}} updated.",
"failedpayment": "",
"jobassignmentchange": "Employee {{name}} assigned to {{operation}}", "jobassignmentchange": "Employee {{name}} assigned to {{operation}}",
"jobassignmentremoved": "Employee assignment removed for {{operation}}", "jobassignmentremoved": "Employee assignment removed for {{operation}}",
"jobchecklist": "Checklist type \"{{type}}\" completed. In production set to {{inproduction}}. Status set to {{status}}.", "jobchecklist": "Checklist type \"{{type}}\" completed. In production set to {{inproduction}}. Status set to {{status}}.",
@@ -227,6 +229,7 @@
}, },
"bodyshop": { "bodyshop": {
"actions": { "actions": {
"add_task_preset": "",
"addapptcolor": "Add Appointment Color", "addapptcolor": "Add Appointment Color",
"addbucket": "Add Definition", "addbucket": "Add Definition",
"addpartslocation": "Add Parts Location", "addpartslocation": "Add Parts Location",
@@ -339,6 +342,12 @@
}, },
"md_payment_types": "Payment Types", "md_payment_types": "Payment Types",
"md_referral_sources": "Referral Sources", "md_referral_sources": "Referral Sources",
"md_tasks_presets": {
"hourstype": "",
"memo": "",
"name": "",
"percent": ""
},
"messaginglabel": "Messaging Preset Label", "messaginglabel": "Messaging Preset Label",
"messagingtext": "Messaging Preset Text", "messagingtext": "Messaging Preset Text",
"noteslabel": "Note Label", "noteslabel": "Note Label",
@@ -374,6 +383,9 @@
"export": "CSI -> Export", "export": "CSI -> Export",
"page": "CSI -> Page" "page": "CSI -> Page"
}, },
"employee_teams": {
"page": ""
},
"employees": { "employees": {
"page": "Employees -> List" "page": "Employees -> List"
}, },
@@ -432,10 +444,15 @@
}, },
"timetickets": { "timetickets": {
"edit": "Time Tickets -> Edit", "edit": "Time Tickets -> Edit",
"editcommitted": "",
"enter": "Time Tickets -> Enter", "enter": "Time Tickets -> Enter",
"list": "Time Tickets -> List", "list": "Time Tickets -> List",
"shiftedit": "Time Tickets -> Shift Edit" "shiftedit": "Time Tickets -> Shift Edit"
}, },
"ttapprovals": {
"approve": "",
"view": ""
},
"users": { "users": {
"editaccess": "Users -> Edit access" "editaccess": "Users -> Edit access"
} }
@@ -453,6 +470,8 @@
"federal_tax": "Federal Tax", "federal_tax": "Federal Tax",
"federal_tax_itc": "Federal Tax Credit", "federal_tax_itc": "Federal Tax Credit",
"gst_override": "GST Override Account #", "gst_override": "GST Override Account #",
"invoiceexemptcode": "",
"itemexemptcode": "",
"la1": "LA1", "la1": "LA1",
"la2": "LA2", "la2": "LA2",
"la3": "LA3", "la3": "LA3",
@@ -504,6 +523,7 @@
"dailyhrslimit": "Daily Incoming Hours Limit" "dailyhrslimit": "Daily Incoming Hours Limit"
}, },
"ssbuckets": { "ssbuckets": {
"color": "Job Color",
"gte": "Greater Than/Equal to (hrs)", "gte": "Greater Than/Equal to (hrs)",
"id": "ID", "id": "ID",
"label": "Label", "label": "Label",
@@ -574,6 +594,7 @@
"title": "DMS" "title": "DMS"
}, },
"emaillater": "Email Later", "emaillater": "Email Later",
"employee_teams": "",
"employees": "Employees", "employees": "Employees",
"estimators": "Estimators", "estimators": "Estimators",
"filehandlers": "File Handlers", "filehandlers": "File Handlers",
@@ -582,6 +603,7 @@
"jobstatuses": "Job Statuses", "jobstatuses": "Job Statuses",
"laborrates": "Labor Rates", "laborrates": "Labor Rates",
"licensing": "Licensing", "licensing": "Licensing",
"md_tasks_presets": "",
"md_to_emails": "Preset To Emails", "md_to_emails": "Preset To Emails",
"md_to_emails_emails": "Emails", "md_to_emails_emails": "Emails",
"messagingpresets": "Messaging Presets", "messagingpresets": "Messaging Presets",
@@ -608,6 +630,7 @@
"speedprint": "Speed Print Configuration", "speedprint": "Speed Print Configuration",
"ssbuckets": "Job Size Definitions", "ssbuckets": "Job Size Definitions",
"systemsettings": "System Settings", "systemsettings": "System Settings",
"task-presets": "",
"workingdays": "Working Days" "workingdays": "Working Days"
}, },
"successes": { "successes": {
@@ -907,6 +930,18 @@
"sent": "Email sent successfully." "sent": "Email sent successfully."
} }
}, },
"employee_teams": {
"actions": {
"new": "",
"newmember": ""
},
"fields": {
"active": "",
"employeeid": "",
"name": "",
"percentage": ""
}
},
"employees": { "employees": {
"actions": { "actions": {
"addvacation": "Add Vacation", "addvacation": "Add Vacation",
@@ -1146,6 +1181,30 @@
"updated": "Inventory line updated." "updated": "Inventory line updated."
} }
}, },
"job_payments": {
"buttons": {
"goback": "",
"proceedtopayment": "",
"refundpayment": ""
},
"notifications": {
"error": {
"description": "",
"title": ""
}
},
"titles": {
"amount": "",
"dateOfPayment": "",
"descriptions": "",
"payer": "",
"payername": "",
"paymentid": "",
"paymenttype": "",
"refundamount": "",
"transactionid": ""
}
},
"joblines": { "joblines": {
"actions": { "actions": {
"converttolabor": "Convert amount to Labor.", "converttolabor": "Convert amount to Labor.",
@@ -1378,7 +1437,7 @@
"ded_amt": "Deductible", "ded_amt": "Deductible",
"ded_note": "Deductible Note", "ded_note": "Deductible Note",
"ded_status": "Deductible Status", "ded_status": "Deductible Status",
"depreciation_taxes": "Depreciation/Taxes", "depreciation_taxes": "Betterment/Depreciation/Taxes",
"dms": { "dms": {
"address": "Customer Address", "address": "Customer Address",
"amount": "Amount", "amount": "Amount",
@@ -1578,6 +1637,7 @@
"scheddates": "Schedule Dates" "scheddates": "Schedule Dates"
}, },
"labels": { "labels": {
"act_price_ppc": "",
"actual_completion_inferred": "$t(jobs.fields.actual_completion) inferred using $t(jobs.fields.scheduled_completion).", "actual_completion_inferred": "$t(jobs.fields.actual_completion) inferred using $t(jobs.fields.scheduled_completion).",
"actual_delivery_inferred": "$t(jobs.fields.actual_delivery) inferred using $t(jobs.fields.scheduled_delivery).", "actual_delivery_inferred": "$t(jobs.fields.actual_delivery) inferred using $t(jobs.fields.scheduled_delivery).",
"actual_in_inferred": "$t(jobs.fields.actual_in) inferred using $t(jobs.fields.scheduled_in).", "actual_in_inferred": "$t(jobs.fields.actual_in) inferred using $t(jobs.fields.scheduled_in).",
@@ -1714,6 +1774,7 @@
"partstotal": "This is the total of all parts and sublet amounts on the vehicle (some of these may require an in-house invoice).<br/>\nItems such as shop and paint materials, labor online lines, etc. are not included in this total.", "partstotal": "This is the total of all parts and sublet amounts on the vehicle (some of these may require an in-house invoice).<br/>\nItems such as shop and paint materials, labor online lines, etc. are not included in this total.",
"totalreturns": "The total <b>retail</b> amount of returns created for this job." "totalreturns": "The total <b>retail</b> amount of returns created for this job."
}, },
"ppc": "",
"profileadjustments": "", "profileadjustments": "",
"prt_dsmk_total": "Line Item Adjustment", "prt_dsmk_total": "Line Item Adjustment",
"rates": "Rates", "rates": "Rates",
@@ -1854,6 +1915,7 @@
"customers": "Customers", "customers": "Customers",
"dashboard": "Dashboard", "dashboard": "Dashboard",
"enterbills": "Enter Bills", "enterbills": "Enter Bills",
"entercardpayment": "",
"enterpayment": "Enter Payments", "enterpayment": "Enter Payments",
"entertimeticket": "Enter Time Tickets", "entertimeticket": "Enter Time Tickets",
"export": "Export", "export": "Export",
@@ -1865,6 +1927,7 @@
"newjob": "Create New Job", "newjob": "Create New Job",
"owners": "Owners", "owners": "Owners",
"parts-queue": "Parts Queue", "parts-queue": "Parts Queue",
"paymentremindersms": "",
"phonebook": "Phonebook", "phonebook": "Phonebook",
"productionboard": "Production Board - Visual", "productionboard": "Production Board - Visual",
"productionlist": "Production Board - List", "productionlist": "Production Board - List",
@@ -1890,6 +1953,7 @@
"shop_vendors": "Vendors", "shop_vendors": "Vendors",
"temporarydocs": "Temporary Documents", "temporarydocs": "Temporary Documents",
"timetickets": "Time Tickets", "timetickets": "Time Tickets",
"ttapprovals": "",
"vehicles": "Vehicles" "vehicles": "Vehicles"
}, },
"jobsactions": { "jobsactions": {
@@ -1973,6 +2037,16 @@
"critical": "Critical", "critical": "Critical",
"private": "Private", "private": "Private",
"text": "Contents", "text": "Contents",
"type": "Type",
"types": {
"customer": "Customer",
"general": "General",
"office": "Office",
"paint": "Paint",
"parts": "Parts",
"shop": "Shop",
"supplement": "Supplement"
},
"updatedat": "Updated At" "updatedat": "Updated At"
}, },
"labels": { "labels": {
@@ -2363,6 +2437,7 @@
"qbo_usa": "QBO USA" "qbo_usa": "QBO USA"
} }
}, },
"cardcolor": "Card Colors",
"cardsettings": "Card Settings", "cardsettings": "Card Settings",
"clm_no": "Claim Number", "clm_no": "Claim Number",
"comment": "Comment", "comment": "Comment",
@@ -2373,6 +2448,7 @@
"ins_co_nm": "Insurance Company Name", "ins_co_nm": "Insurance Company Name",
"jobdetail": "Job Details", "jobdetail": "Job Details",
"laborhrs": "Labor Hours", "laborhrs": "Labor Hours",
"legend": "Legend:",
"note": "Production Note", "note": "Production Note",
"ownr_nm": "Owner Name", "ownr_nm": "Owner Name",
"paintpriority": "P/P", "paintpriority": "P/P",
@@ -2611,6 +2687,7 @@
}, },
"timetickets": { "timetickets": {
"actions": { "actions": {
"claimtasks": "",
"clockin": "Clock In", "clockin": "Clock In",
"clockout": "Clock Out", "clockout": "Clock Out",
"enter": "Enter New Time Ticket", "enter": "Enter New Time Ticket",
@@ -2631,10 +2708,12 @@
"clockhours": "Clock Hours", "clockhours": "Clock Hours",
"clockoff": "Clock Off", "clockoff": "Clock Off",
"clockon": "Clocked In", "clockon": "Clocked In",
"committed": "",
"cost_center": "Cost Center", "cost_center": "Cost Center",
"date": "Ticket Date", "date": "Ticket Date",
"efficiency": "Efficiency", "efficiency": "Efficiency",
"employee": "Employee", "employee": "Employee",
"employee_team": "",
"flat_rate": "Flat Rate?", "flat_rate": "Flat Rate?",
"memo": "Memo", "memo": "Memo",
"productivehrs": "Productive Hours", "productivehrs": "Productive Hours",
@@ -2721,6 +2800,7 @@
"shop-vendors": "Vendors", "shop-vendors": "Vendors",
"temporarydocs": "Temporary Documents", "temporarydocs": "Temporary Documents",
"timetickets": "Time Tickets", "timetickets": "Time Tickets",
"ttapprovals": "",
"vehicle-details": "Vehicle: {{vehicle}}", "vehicle-details": "Vehicle: {{vehicle}}",
"vehicles": "Vehicles" "vehicles": "Vehicles"
}, },
@@ -2766,9 +2846,15 @@
"shop_vendors": "Vendors | $t(titles.app)", "shop_vendors": "Vendors | $t(titles.app)",
"temporarydocs": "Temporary Documents | $t(titles.app)", "temporarydocs": "Temporary Documents | $t(titles.app)",
"timetickets": "Time Tickets | $t(titles.app)", "timetickets": "Time Tickets | $t(titles.app)",
"ttapprovals": "",
"vehicledetail": "Vehicle Details {{vehicle}} | $t(titles.app)", "vehicledetail": "Vehicle Details {{vehicle}} | $t(titles.app)",
"vehicles": "All Vehicles | $t(titles.app)" "vehicles": "All Vehicles | $t(titles.app)"
}, },
"tt_approvals": {
"actions": {
"approveselected": ""
}
},
"user": { "user": {
"actions": { "actions": {
"changepassword": "Change Password", "changepassword": "Change Password",

View File

@@ -63,6 +63,7 @@
"scheduledfor": "Cita programada para:", "scheduledfor": "Cita programada para:",
"severalerrorsfound": "", "severalerrorsfound": "",
"smartscheduling": "", "smartscheduling": "",
"smspaymentreminder": "",
"suggesteddates": "" "suggesteddates": ""
}, },
"successes": { "successes": {
@@ -103,6 +104,7 @@
"admin_jobunvoid": "", "admin_jobunvoid": "",
"billposted": "", "billposted": "",
"billupdated": "", "billupdated": "",
"failedpayment": "",
"jobassignmentchange": "", "jobassignmentchange": "",
"jobassignmentremoved": "", "jobassignmentremoved": "",
"jobchecklist": "", "jobchecklist": "",
@@ -227,6 +229,7 @@
}, },
"bodyshop": { "bodyshop": {
"actions": { "actions": {
"add_task_preset": "",
"addapptcolor": "", "addapptcolor": "",
"addbucket": "", "addbucket": "",
"addpartslocation": "", "addpartslocation": "",
@@ -339,6 +342,12 @@
}, },
"md_payment_types": "", "md_payment_types": "",
"md_referral_sources": "", "md_referral_sources": "",
"md_tasks_presets": {
"hourstype": "",
"memo": "",
"name": "",
"percent": ""
},
"messaginglabel": "", "messaginglabel": "",
"messagingtext": "", "messagingtext": "",
"noteslabel": "", "noteslabel": "",
@@ -374,6 +383,9 @@
"export": "", "export": "",
"page": "" "page": ""
}, },
"employee_teams": {
"page": ""
},
"employees": { "employees": {
"page": "" "page": ""
}, },
@@ -432,10 +444,15 @@
}, },
"timetickets": { "timetickets": {
"edit": "", "edit": "",
"editcommitted": "",
"enter": "", "enter": "",
"list": "", "list": "",
"shiftedit": "" "shiftedit": ""
}, },
"ttapprovals": {
"approve": "",
"view": ""
},
"users": { "users": {
"editaccess": "" "editaccess": ""
} }
@@ -453,6 +470,8 @@
"federal_tax": "", "federal_tax": "",
"federal_tax_itc": "", "federal_tax_itc": "",
"gst_override": "", "gst_override": "",
"invoiceexemptcode": "",
"itemexemptcode": "",
"la1": "", "la1": "",
"la2": "", "la2": "",
"la3": "", "la3": "",
@@ -504,6 +523,7 @@
"dailyhrslimit": "" "dailyhrslimit": ""
}, },
"ssbuckets": { "ssbuckets": {
"color": "",
"gte": "", "gte": "",
"id": "", "id": "",
"label": "", "label": "",
@@ -574,6 +594,7 @@
"title": "" "title": ""
}, },
"emaillater": "", "emaillater": "",
"employee_teams": "",
"employees": "", "employees": "",
"estimators": "", "estimators": "",
"filehandlers": "", "filehandlers": "",
@@ -582,6 +603,7 @@
"jobstatuses": "", "jobstatuses": "",
"laborrates": "", "laborrates": "",
"licensing": "", "licensing": "",
"md_tasks_presets": "",
"md_to_emails": "", "md_to_emails": "",
"md_to_emails_emails": "", "md_to_emails_emails": "",
"messagingpresets": "", "messagingpresets": "",
@@ -608,6 +630,7 @@
"speedprint": "", "speedprint": "",
"ssbuckets": "", "ssbuckets": "",
"systemsettings": "", "systemsettings": "",
"task-presets": "",
"workingdays": "" "workingdays": ""
}, },
"successes": { "successes": {
@@ -907,6 +930,18 @@
"sent": "Correo electrónico enviado con éxito." "sent": "Correo electrónico enviado con éxito."
} }
}, },
"employee_teams": {
"actions": {
"new": "",
"newmember": ""
},
"fields": {
"active": "",
"employeeid": "",
"name": "",
"percentage": ""
}
},
"employees": { "employees": {
"actions": { "actions": {
"addvacation": "", "addvacation": "",
@@ -1146,6 +1181,30 @@
"updated": "" "updated": ""
} }
}, },
"job_payments": {
"buttons": {
"goback": "",
"proceedtopayment": "",
"refundpayment": ""
},
"notifications": {
"error": {
"description": "",
"title": ""
}
},
"titles": {
"amount": "",
"dateOfPayment": "",
"descriptions": "",
"payer": "",
"payername": "",
"paymentid": "",
"paymenttype": "",
"refundamount": "",
"transactionid": ""
}
},
"joblines": { "joblines": {
"actions": { "actions": {
"converttolabor": "", "converttolabor": "",
@@ -1578,6 +1637,7 @@
"scheddates": "" "scheddates": ""
}, },
"labels": { "labels": {
"act_price_ppc": "",
"actual_completion_inferred": "", "actual_completion_inferred": "",
"actual_delivery_inferred": "", "actual_delivery_inferred": "",
"actual_in_inferred": "", "actual_in_inferred": "",
@@ -1714,6 +1774,7 @@
"partstotal": "", "partstotal": "",
"totalreturns": "" "totalreturns": ""
}, },
"ppc": "",
"profileadjustments": "", "profileadjustments": "",
"prt_dsmk_total": "", "prt_dsmk_total": "",
"rates": "Tarifas", "rates": "Tarifas",
@@ -1854,6 +1915,7 @@
"customers": "Clientes", "customers": "Clientes",
"dashboard": "", "dashboard": "",
"enterbills": "", "enterbills": "",
"entercardpayment": "",
"enterpayment": "", "enterpayment": "",
"entertimeticket": "", "entertimeticket": "",
"export": "", "export": "",
@@ -1865,6 +1927,7 @@
"newjob": "", "newjob": "",
"owners": "propietarios", "owners": "propietarios",
"parts-queue": "", "parts-queue": "",
"paymentremindersms": "",
"phonebook": "", "phonebook": "",
"productionboard": "", "productionboard": "",
"productionlist": "", "productionlist": "",
@@ -1890,6 +1953,7 @@
"shop_vendors": "Vendedores", "shop_vendors": "Vendedores",
"temporarydocs": "", "temporarydocs": "",
"timetickets": "", "timetickets": "",
"ttapprovals": "",
"vehicles": "Vehículos" "vehicles": "Vehículos"
}, },
"jobsactions": { "jobsactions": {
@@ -1973,6 +2037,16 @@
"critical": "Crítico", "critical": "Crítico",
"private": "Privado", "private": "Privado",
"text": "Contenido", "text": "Contenido",
"type": "",
"types": {
"customer": "",
"general": "",
"office": "",
"paint": "",
"parts": "",
"shop": "",
"supplement": ""
},
"updatedat": "Actualizado en" "updatedat": "Actualizado en"
}, },
"labels": { "labels": {
@@ -2363,6 +2437,7 @@
"qbo_usa": "" "qbo_usa": ""
} }
}, },
"cardcolor": "",
"cardsettings": "", "cardsettings": "",
"clm_no": "", "clm_no": "",
"comment": "", "comment": "",
@@ -2373,6 +2448,7 @@
"ins_co_nm": "", "ins_co_nm": "",
"jobdetail": "", "jobdetail": "",
"laborhrs": "", "laborhrs": "",
"legend": "",
"note": "", "note": "",
"ownr_nm": "", "ownr_nm": "",
"paintpriority": "", "paintpriority": "",
@@ -2611,6 +2687,7 @@
}, },
"timetickets": { "timetickets": {
"actions": { "actions": {
"claimtasks": "",
"clockin": "", "clockin": "",
"clockout": "", "clockout": "",
"enter": "", "enter": "",
@@ -2631,10 +2708,12 @@
"clockhours": "", "clockhours": "",
"clockoff": "", "clockoff": "",
"clockon": "", "clockon": "",
"committed": "",
"cost_center": "", "cost_center": "",
"date": "", "date": "",
"efficiency": "", "efficiency": "",
"employee": "", "employee": "",
"employee_team": "",
"flat_rate": "", "flat_rate": "",
"memo": "", "memo": "",
"productivehrs": "", "productivehrs": "",
@@ -2721,6 +2800,7 @@
"shop-vendors": "", "shop-vendors": "",
"temporarydocs": "", "temporarydocs": "",
"timetickets": "", "timetickets": "",
"ttapprovals": "",
"vehicle-details": "", "vehicle-details": "",
"vehicles": "" "vehicles": ""
}, },
@@ -2766,9 +2846,15 @@
"shop_vendors": "Vendedores | $t(titles.app)", "shop_vendors": "Vendedores | $t(titles.app)",
"temporarydocs": "", "temporarydocs": "",
"timetickets": "", "timetickets": "",
"ttapprovals": "",
"vehicledetail": "Detalles del vehículo {{vehicle}} | $t(titles.app)", "vehicledetail": "Detalles del vehículo {{vehicle}} | $t(titles.app)",
"vehicles": "Todos los vehiculos | $t(titles.app)" "vehicles": "Todos los vehiculos | $t(titles.app)"
}, },
"tt_approvals": {
"actions": {
"approveselected": ""
}
},
"user": { "user": {
"actions": { "actions": {
"changepassword": "", "changepassword": "",

View File

@@ -63,6 +63,7 @@
"scheduledfor": "Rendez-vous prévu pour:", "scheduledfor": "Rendez-vous prévu pour:",
"severalerrorsfound": "", "severalerrorsfound": "",
"smartscheduling": "", "smartscheduling": "",
"smspaymentreminder": "",
"suggesteddates": "" "suggesteddates": ""
}, },
"successes": { "successes": {
@@ -103,6 +104,7 @@
"admin_jobunvoid": "", "admin_jobunvoid": "",
"billposted": "", "billposted": "",
"billupdated": "", "billupdated": "",
"failedpayment": "",
"jobassignmentchange": "", "jobassignmentchange": "",
"jobassignmentremoved": "", "jobassignmentremoved": "",
"jobchecklist": "", "jobchecklist": "",
@@ -227,6 +229,7 @@
}, },
"bodyshop": { "bodyshop": {
"actions": { "actions": {
"add_task_preset": "",
"addapptcolor": "", "addapptcolor": "",
"addbucket": "", "addbucket": "",
"addpartslocation": "", "addpartslocation": "",
@@ -339,6 +342,12 @@
}, },
"md_payment_types": "", "md_payment_types": "",
"md_referral_sources": "", "md_referral_sources": "",
"md_tasks_presets": {
"hourstype": "",
"memo": "",
"name": "",
"percent": ""
},
"messaginglabel": "", "messaginglabel": "",
"messagingtext": "", "messagingtext": "",
"noteslabel": "", "noteslabel": "",
@@ -374,6 +383,9 @@
"export": "", "export": "",
"page": "" "page": ""
}, },
"employee_teams": {
"page": ""
},
"employees": { "employees": {
"page": "" "page": ""
}, },
@@ -432,10 +444,15 @@
}, },
"timetickets": { "timetickets": {
"edit": "", "edit": "",
"editcommitted": "",
"enter": "", "enter": "",
"list": "", "list": "",
"shiftedit": "" "shiftedit": ""
}, },
"ttapprovals": {
"approve": "",
"view": ""
},
"users": { "users": {
"editaccess": "" "editaccess": ""
} }
@@ -453,6 +470,8 @@
"federal_tax": "", "federal_tax": "",
"federal_tax_itc": "", "federal_tax_itc": "",
"gst_override": "", "gst_override": "",
"invoiceexemptcode": "",
"itemexemptcode": "",
"la1": "", "la1": "",
"la2": "", "la2": "",
"la3": "", "la3": "",
@@ -504,6 +523,7 @@
"dailyhrslimit": "" "dailyhrslimit": ""
}, },
"ssbuckets": { "ssbuckets": {
"color": "",
"gte": "", "gte": "",
"id": "", "id": "",
"label": "", "label": "",
@@ -574,6 +594,7 @@
"title": "" "title": ""
}, },
"emaillater": "", "emaillater": "",
"employee_teams": "",
"employees": "", "employees": "",
"estimators": "", "estimators": "",
"filehandlers": "", "filehandlers": "",
@@ -582,6 +603,7 @@
"jobstatuses": "", "jobstatuses": "",
"laborrates": "", "laborrates": "",
"licensing": "", "licensing": "",
"md_tasks_presets": "",
"md_to_emails": "", "md_to_emails": "",
"md_to_emails_emails": "", "md_to_emails_emails": "",
"messagingpresets": "", "messagingpresets": "",
@@ -608,6 +630,7 @@
"speedprint": "", "speedprint": "",
"ssbuckets": "", "ssbuckets": "",
"systemsettings": "", "systemsettings": "",
"task-presets": "",
"workingdays": "" "workingdays": ""
}, },
"successes": { "successes": {
@@ -907,6 +930,18 @@
"sent": "E-mail envoyé avec succès." "sent": "E-mail envoyé avec succès."
} }
}, },
"employee_teams": {
"actions": {
"new": "",
"newmember": ""
},
"fields": {
"active": "",
"employeeid": "",
"name": "",
"percentage": ""
}
},
"employees": { "employees": {
"actions": { "actions": {
"addvacation": "", "addvacation": "",
@@ -1146,6 +1181,30 @@
"updated": "" "updated": ""
} }
}, },
"job_payments": {
"buttons": {
"goback": "",
"proceedtopayment": "",
"refundpayment": ""
},
"notifications": {
"error": {
"description": "",
"title": ""
}
},
"titles": {
"amount": "",
"dateOfPayment": "",
"descriptions": "",
"payer": "",
"payername": "",
"paymentid": "",
"paymenttype": "",
"refundamount": "",
"transactionid": ""
}
},
"joblines": { "joblines": {
"actions": { "actions": {
"converttolabor": "", "converttolabor": "",
@@ -1578,6 +1637,7 @@
"scheddates": "" "scheddates": ""
}, },
"labels": { "labels": {
"act_price_ppc": "",
"actual_completion_inferred": "", "actual_completion_inferred": "",
"actual_delivery_inferred": "", "actual_delivery_inferred": "",
"actual_in_inferred": "", "actual_in_inferred": "",
@@ -1714,6 +1774,7 @@
"partstotal": "", "partstotal": "",
"totalreturns": "" "totalreturns": ""
}, },
"ppc": "",
"profileadjustments": "", "profileadjustments": "",
"prt_dsmk_total": "", "prt_dsmk_total": "",
"rates": "Les taux", "rates": "Les taux",
@@ -1854,6 +1915,7 @@
"customers": "Les clients", "customers": "Les clients",
"dashboard": "", "dashboard": "",
"enterbills": "", "enterbills": "",
"entercardpayment": "",
"enterpayment": "", "enterpayment": "",
"entertimeticket": "", "entertimeticket": "",
"export": "", "export": "",
@@ -1865,6 +1927,7 @@
"newjob": "", "newjob": "",
"owners": "Propriétaires", "owners": "Propriétaires",
"parts-queue": "", "parts-queue": "",
"paymentremindersms": "",
"phonebook": "", "phonebook": "",
"productionboard": "", "productionboard": "",
"productionlist": "", "productionlist": "",
@@ -1890,6 +1953,7 @@
"shop_vendors": "Vendeurs", "shop_vendors": "Vendeurs",
"temporarydocs": "", "temporarydocs": "",
"timetickets": "", "timetickets": "",
"ttapprovals": "",
"vehicles": "Véhicules" "vehicles": "Véhicules"
}, },
"jobsactions": { "jobsactions": {
@@ -1973,6 +2037,16 @@
"critical": "Critique", "critical": "Critique",
"private": "privé", "private": "privé",
"text": "Contenu", "text": "Contenu",
"type": "",
"types": {
"customer": "",
"general": "",
"office": "",
"paint": "",
"parts": "",
"shop": "",
"supplement": ""
},
"updatedat": "Mis à jour à" "updatedat": "Mis à jour à"
}, },
"labels": { "labels": {
@@ -2363,6 +2437,7 @@
"qbo_usa": "" "qbo_usa": ""
} }
}, },
"cardcolor": "",
"cardsettings": "", "cardsettings": "",
"clm_no": "", "clm_no": "",
"comment": "", "comment": "",
@@ -2373,6 +2448,7 @@
"ins_co_nm": "", "ins_co_nm": "",
"jobdetail": "", "jobdetail": "",
"laborhrs": "", "laborhrs": "",
"legend": "",
"note": "", "note": "",
"ownr_nm": "", "ownr_nm": "",
"paintpriority": "", "paintpriority": "",
@@ -2611,6 +2687,7 @@
}, },
"timetickets": { "timetickets": {
"actions": { "actions": {
"claimtasks": "",
"clockin": "", "clockin": "",
"clockout": "", "clockout": "",
"enter": "", "enter": "",
@@ -2631,10 +2708,12 @@
"clockhours": "", "clockhours": "",
"clockoff": "", "clockoff": "",
"clockon": "", "clockon": "",
"committed": "",
"cost_center": "", "cost_center": "",
"date": "", "date": "",
"efficiency": "", "efficiency": "",
"employee": "", "employee": "",
"employee_team": "",
"flat_rate": "", "flat_rate": "",
"memo": "", "memo": "",
"productivehrs": "", "productivehrs": "",
@@ -2721,6 +2800,7 @@
"shop-vendors": "", "shop-vendors": "",
"temporarydocs": "", "temporarydocs": "",
"timetickets": "", "timetickets": "",
"ttapprovals": "",
"vehicle-details": "", "vehicle-details": "",
"vehicles": "" "vehicles": ""
}, },
@@ -2766,9 +2846,15 @@
"shop_vendors": "Vendeurs | $t(titles.app)", "shop_vendors": "Vendeurs | $t(titles.app)",
"temporarydocs": "", "temporarydocs": "",
"timetickets": "", "timetickets": "",
"ttapprovals": "",
"vehicledetail": "Détails du véhicule {{vehicle} | $t(titles.app)", "vehicledetail": "Détails du véhicule {{vehicle} | $t(titles.app)",
"vehicles": "Tous les véhicules | $t(titles.app)" "vehicles": "Tous les véhicules | $t(titles.app)"
}, },
"tt_approvals": {
"actions": {
"approveselected": ""
}
},
"user": { "user": {
"actions": { "actions": {
"changepassword": "", "changepassword": "",

View File

@@ -7,22 +7,24 @@ export const EmailSettings = {
export const TemplateList = (type, context) => { export const TemplateList = (type, context) => {
//const { bodyshop } = store.getState().user; //const { bodyshop } = store.getState().user;
return { return {
//If there's no type or the type is job, send it back. //If there's no type or the type is job, send it back.
...(!type || type === "job" ...(!type || type === "job"
? { ? {
casl_authorization: { casl_authorization: {
title: i18n.t("printcenter.jobs.casl_authorization"), title: i18n.t("printcenter.jobs.casl_authorization"),
description: "CASL Authorization", description: "",
subject: i18n.t("printcenter.jobs.casl_authorization"), subject: i18n.t("printcenter.jobs.casl_authorization"),
key: "casl_authorization", key: "casl_authorization",
disabled: false, disabled: false,
group: "authorization", group: "authorization",
regions: {
CA: true,
},
}, },
fippa_authorization: { fippa_authorization: {
title: i18n.t("printcenter.jobs.fippa_authorization"), title: i18n.t("printcenter.jobs.fippa_authorization"),
description: "CASL Authorization", description: "",
subject: i18n.t("printcenter.jobs.fippa_authorization"), subject: i18n.t("printcenter.jobs.fippa_authorization"),
key: "fippa_authorization", key: "fippa_authorization",
disabled: false, disabled: false,
@@ -30,7 +32,7 @@ export const TemplateList = (type, context) => {
}, },
diagnostic_authorization: { diagnostic_authorization: {
title: i18n.t("printcenter.jobs.diagnostic_authorization"), title: i18n.t("printcenter.jobs.diagnostic_authorization"),
description: "Diagnostic Authorization", description: "",
subject: i18n.t("printcenter.jobs.diagnostic_authorization"), subject: i18n.t("printcenter.jobs.diagnostic_authorization"),
key: "diagnostic_authorization", key: "diagnostic_authorization",
disabled: false, disabled: false,
@@ -38,7 +40,7 @@ export const TemplateList = (type, context) => {
}, },
mechanical_authorization: { mechanical_authorization: {
title: i18n.t("printcenter.jobs.mechanical_authorization"), title: i18n.t("printcenter.jobs.mechanical_authorization"),
description: "Diagnostic Authorization", description: "",
subject: i18n.t("printcenter.jobs.mechanical_authorization"), subject: i18n.t("printcenter.jobs.mechanical_authorization"),
key: "mechanical_authorization", key: "mechanical_authorization",
disabled: false, disabled: false,
@@ -46,7 +48,7 @@ export const TemplateList = (type, context) => {
}, },
appointment_reminder: { appointment_reminder: {
title: i18n.t("printcenter.jobs.appointment_reminder"), title: i18n.t("printcenter.jobs.appointment_reminder"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.appointment_reminder"), subject: i18n.t("printcenter.jobs.appointment_reminder"),
key: "appointment_reminder", key: "appointment_reminder",
disabled: false, disabled: false,
@@ -54,7 +56,7 @@ export const TemplateList = (type, context) => {
}, },
estimate_followup: { estimate_followup: {
title: i18n.t("printcenter.jobs.estimate_followup"), title: i18n.t("printcenter.jobs.estimate_followup"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.estimate_followup"), subject: i18n.t("printcenter.jobs.estimate_followup"),
key: "estimate_followup", key: "estimate_followup",
disabled: false, disabled: false,
@@ -62,7 +64,7 @@ export const TemplateList = (type, context) => {
}, },
express_repair_checklist: { express_repair_checklist: {
title: i18n.t("printcenter.jobs.express_repair_checklist"), title: i18n.t("printcenter.jobs.express_repair_checklist"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.express_repair_checklist"), subject: i18n.t("printcenter.jobs.express_repair_checklist"),
key: "express_repair_checklist", key: "express_repair_checklist",
disabled: false, disabled: false,
@@ -70,7 +72,7 @@ export const TemplateList = (type, context) => {
}, },
glass_express_checklist: { glass_express_checklist: {
title: i18n.t("printcenter.jobs.glass_express_checklist"), title: i18n.t("printcenter.jobs.glass_express_checklist"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.glass_express_checklist"), subject: i18n.t("printcenter.jobs.glass_express_checklist"),
key: "glass_express_checklist", key: "glass_express_checklist",
disabled: false, disabled: false,
@@ -78,7 +80,7 @@ export const TemplateList = (type, context) => {
}, },
stolen_recovery_checklist: { stolen_recovery_checklist: {
title: i18n.t("printcenter.jobs.stolen_recovery_checklist"), title: i18n.t("printcenter.jobs.stolen_recovery_checklist"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.stolen_recovery_checklist"), subject: i18n.t("printcenter.jobs.stolen_recovery_checklist"),
key: "stolen_recovery_checklist", key: "stolen_recovery_checklist",
disabled: false, disabled: false,
@@ -86,7 +88,7 @@ export const TemplateList = (type, context) => {
}, },
vehicle_check_in: { vehicle_check_in: {
title: i18n.t("printcenter.jobs.vehicle_check_in"), title: i18n.t("printcenter.jobs.vehicle_check_in"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.vehicle_check_in"), subject: i18n.t("printcenter.jobs.vehicle_check_in"),
key: "vehicle_check_in", key: "vehicle_check_in",
disabled: false, disabled: false,
@@ -94,7 +96,7 @@ export const TemplateList = (type, context) => {
}, },
parts_order_history: { parts_order_history: {
title: i18n.t("printcenter.jobs.parts_order_history"), title: i18n.t("printcenter.jobs.parts_order_history"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.parts_order_history"), subject: i18n.t("printcenter.jobs.parts_order_history"),
key: "parts_order_history", key: "parts_order_history",
disabled: false, disabled: false,
@@ -102,7 +104,7 @@ export const TemplateList = (type, context) => {
}, },
job_notes: { job_notes: {
title: i18n.t("printcenter.jobs.job_notes"), title: i18n.t("printcenter.jobs.job_notes"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.job_notes"), subject: i18n.t("printcenter.jobs.job_notes"),
key: "job_notes", key: "job_notes",
disabled: false, disabled: false,
@@ -110,7 +112,7 @@ export const TemplateList = (type, context) => {
}, },
ro_with_description: { ro_with_description: {
title: i18n.t("printcenter.jobs.ro_with_description"), title: i18n.t("printcenter.jobs.ro_with_description"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.ro_with_description"), subject: i18n.t("printcenter.jobs.ro_with_description"),
key: "ro_with_description", key: "ro_with_description",
disabled: false, disabled: false,
@@ -118,7 +120,7 @@ export const TemplateList = (type, context) => {
}, },
window_tag: { window_tag: {
title: i18n.t("printcenter.jobs.window_tag"), title: i18n.t("printcenter.jobs.window_tag"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.window_tag"), subject: i18n.t("printcenter.jobs.window_tag"),
key: "window_tag", key: "window_tag",
disabled: false, disabled: false,
@@ -126,7 +128,7 @@ export const TemplateList = (type, context) => {
}, },
supplement_request: { supplement_request: {
title: i18n.t("printcenter.jobs.supplement_request"), title: i18n.t("printcenter.jobs.supplement_request"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.supplement_request"), subject: i18n.t("printcenter.jobs.supplement_request"),
key: "supplement_request", key: "supplement_request",
disabled: false, disabled: false,
@@ -134,7 +136,7 @@ export const TemplateList = (type, context) => {
}, },
estimate: { estimate: {
title: i18n.t("printcenter.jobs.estimate"), title: i18n.t("printcenter.jobs.estimate"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.estimate"), subject: i18n.t("printcenter.jobs.estimate"),
key: "estimate", key: "estimate",
disabled: false, disabled: false,
@@ -142,7 +144,7 @@ export const TemplateList = (type, context) => {
}, },
parts_list: { parts_list: {
title: i18n.t("printcenter.jobs.parts_list"), title: i18n.t("printcenter.jobs.parts_list"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.parts_list"), subject: i18n.t("printcenter.jobs.parts_list"),
key: "parts_list", key: "parts_list",
disabled: false, disabled: false,
@@ -150,7 +152,7 @@ export const TemplateList = (type, context) => {
}, },
coversheet_portrait: { coversheet_portrait: {
title: i18n.t("printcenter.jobs.coversheet_portrait"), title: i18n.t("printcenter.jobs.coversheet_portrait"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.coversheet_portrait"), subject: i18n.t("printcenter.jobs.coversheet_portrait"),
key: "coversheet_portrait", key: "coversheet_portrait",
disabled: false, disabled: false,
@@ -158,7 +160,7 @@ export const TemplateList = (type, context) => {
}, },
coversheet_landscape: { coversheet_landscape: {
title: i18n.t("printcenter.jobs.coversheet_landscape"), title: i18n.t("printcenter.jobs.coversheet_landscape"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.coversheet_landscape"), subject: i18n.t("printcenter.jobs.coversheet_landscape"),
key: "coversheet_landscape", key: "coversheet_landscape",
disabled: false, disabled: false,
@@ -166,7 +168,7 @@ export const TemplateList = (type, context) => {
}, },
key_tag: { key_tag: {
title: i18n.t("printcenter.jobs.key_tag"), title: i18n.t("printcenter.jobs.key_tag"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.key_tag"), subject: i18n.t("printcenter.jobs.key_tag"),
key: "key_tag", key: "key_tag",
disabled: false, disabled: false,
@@ -174,7 +176,7 @@ export const TemplateList = (type, context) => {
}, },
paint_grid: { paint_grid: {
title: i18n.t("printcenter.jobs.paint_grid"), title: i18n.t("printcenter.jobs.paint_grid"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.paint_grid"), subject: i18n.t("printcenter.jobs.paint_grid"),
key: "paint_grid", key: "paint_grid",
disabled: false, disabled: false,
@@ -182,7 +184,7 @@ export const TemplateList = (type, context) => {
}, },
worksheet_by_line_number: { worksheet_by_line_number: {
title: i18n.t("printcenter.jobs.worksheet_by_line_number"), title: i18n.t("printcenter.jobs.worksheet_by_line_number"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.worksheet_by_line_number"), subject: i18n.t("printcenter.jobs.worksheet_by_line_number"),
key: "worksheet_by_line_number", key: "worksheet_by_line_number",
disabled: false, disabled: false,
@@ -192,7 +194,7 @@ export const TemplateList = (type, context) => {
title: i18n.t( title: i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_type" "printcenter.jobs.worksheet_sorted_by_operation_type"
), ),
description: "All Jobs Notes", description: "",
subject: i18n.t( subject: i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_type" "printcenter.jobs.worksheet_sorted_by_operation_type"
), ),
@@ -202,7 +204,7 @@ export const TemplateList = (type, context) => {
}, },
worksheet_sorted_by_operation: { worksheet_sorted_by_operation: {
title: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"), title: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"), subject: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"),
key: "worksheet_sorted_by_operation", key: "worksheet_sorted_by_operation",
disabled: false, disabled: false,
@@ -212,7 +214,7 @@ export const TemplateList = (type, context) => {
title: i18n.t( title: i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_no_hours" "printcenter.jobs.worksheet_sorted_by_operation_no_hours"
), ),
description: "All Jobs Notes", description: "",
subject: i18n.t( subject: i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_no_hours" "printcenter.jobs.worksheet_sorted_by_operation_no_hours"
), ),
@@ -224,7 +226,7 @@ export const TemplateList = (type, context) => {
title: i18n.t( title: i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_part_type" "printcenter.jobs.worksheet_sorted_by_operation_part_type"
), ),
description: "All Jobs Notes", description: "",
subject: i18n.t( subject: i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_part_type" "printcenter.jobs.worksheet_sorted_by_operation_part_type"
), ),
@@ -234,7 +236,7 @@ export const TemplateList = (type, context) => {
}, },
payments_by_job: { payments_by_job: {
title: i18n.t("printcenter.jobs.payments_by_job"), title: i18n.t("printcenter.jobs.payments_by_job"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.payments_by_job"), subject: i18n.t("printcenter.jobs.payments_by_job"),
key: "payments_by_job", key: "payments_by_job",
disabled: false, disabled: false,
@@ -242,7 +244,7 @@ export const TemplateList = (type, context) => {
}, },
final_invoice: { final_invoice: {
title: i18n.t("printcenter.jobs.final_invoice"), title: i18n.t("printcenter.jobs.final_invoice"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.final_invoice"), subject: i18n.t("printcenter.jobs.final_invoice"),
key: "final_invoice", key: "final_invoice",
disabled: false, disabled: false,
@@ -250,7 +252,7 @@ export const TemplateList = (type, context) => {
}, },
payment_request: { payment_request: {
title: i18n.t("printcenter.jobs.payment_request"), title: i18n.t("printcenter.jobs.payment_request"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.payment_request"), subject: i18n.t("printcenter.jobs.payment_request"),
key: "payment_request", key: "payment_request",
disabled: false, disabled: false,
@@ -258,7 +260,7 @@ export const TemplateList = (type, context) => {
}, },
invoice_total_payable: { invoice_total_payable: {
title: i18n.t("printcenter.jobs.invoice_total_payable"), title: i18n.t("printcenter.jobs.invoice_total_payable"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.invoice_total_payable"), subject: i18n.t("printcenter.jobs.invoice_total_payable"),
key: "invoice_total_payable", key: "invoice_total_payable",
disabled: false, disabled: false,
@@ -266,7 +268,7 @@ export const TemplateList = (type, context) => {
}, },
invoice_customer_payable: { invoice_customer_payable: {
title: i18n.t("printcenter.jobs.invoice_customer_payable"), title: i18n.t("printcenter.jobs.invoice_customer_payable"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.invoice_customer_payable"), subject: i18n.t("printcenter.jobs.invoice_customer_payable"),
key: "invoice_customer_payable", key: "invoice_customer_payable",
disabled: false, disabled: false,
@@ -274,7 +276,7 @@ export const TemplateList = (type, context) => {
}, },
ro_totals: { ro_totals: {
title: i18n.t("printcenter.jobs.ro_totals"), title: i18n.t("printcenter.jobs.ro_totals"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.ro_totals"), subject: i18n.t("printcenter.jobs.ro_totals"),
key: "ro_totals", key: "ro_totals",
disabled: false, disabled: false,
@@ -282,7 +284,7 @@ export const TemplateList = (type, context) => {
}, },
job_costing_ro: { job_costing_ro: {
title: i18n.t("printcenter.jobs.job_costing_ro"), title: i18n.t("printcenter.jobs.job_costing_ro"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.job_costing_ro"), subject: i18n.t("printcenter.jobs.job_costing_ro"),
key: "job_costing_ro", key: "job_costing_ro",
disabled: false, disabled: false,
@@ -290,7 +292,7 @@ export const TemplateList = (type, context) => {
}, },
purchases_by_ro_detail: { purchases_by_ro_detail: {
title: i18n.t("printcenter.jobs.purchases_by_ro_detail"), title: i18n.t("printcenter.jobs.purchases_by_ro_detail"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.purchases_by_ro_detail"), subject: i18n.t("printcenter.jobs.purchases_by_ro_detail"),
key: "purchases_by_ro_detail", key: "purchases_by_ro_detail",
disabled: false, disabled: false,
@@ -298,7 +300,7 @@ export const TemplateList = (type, context) => {
}, },
purchases_by_ro_summary: { purchases_by_ro_summary: {
title: i18n.t("printcenter.jobs.purchases_by_ro_summary"), title: i18n.t("printcenter.jobs.purchases_by_ro_summary"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.purchases_by_ro_summary"), subject: i18n.t("printcenter.jobs.purchases_by_ro_summary"),
key: "purchases_by_ro_summary", key: "purchases_by_ro_summary",
disabled: false, disabled: false,
@@ -306,7 +308,7 @@ export const TemplateList = (type, context) => {
}, },
filing_coversheet_portrait: { filing_coversheet_portrait: {
title: i18n.t("printcenter.jobs.filing_coversheet_portrait"), title: i18n.t("printcenter.jobs.filing_coversheet_portrait"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.filing_coversheet_portrait"), subject: i18n.t("printcenter.jobs.filing_coversheet_portrait"),
key: "filing_coversheet_portrait", key: "filing_coversheet_portrait",
disabled: false, disabled: false,
@@ -314,7 +316,7 @@ export const TemplateList = (type, context) => {
}, },
filing_coversheet_landscape: { filing_coversheet_landscape: {
title: i18n.t("printcenter.jobs.filing_coversheet_landscape"), title: i18n.t("printcenter.jobs.filing_coversheet_landscape"),
description: "CASL Authorization", description: "",
subject: i18n.t("printcenter.jobs.filing_coversheet_landscape"), subject: i18n.t("printcenter.jobs.filing_coversheet_landscape"),
key: "filing_coversheet_landscape", key: "filing_coversheet_landscape",
disabled: false, disabled: false,
@@ -322,7 +324,7 @@ export const TemplateList = (type, context) => {
}, },
qc_sheet: { qc_sheet: {
title: i18n.t("printcenter.jobs.qc_sheet"), title: i18n.t("printcenter.jobs.qc_sheet"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.qc_sheet"), subject: i18n.t("printcenter.jobs.qc_sheet"),
key: "qc_sheet", key: "qc_sheet",
disabled: false, disabled: false,
@@ -330,7 +332,7 @@ export const TemplateList = (type, context) => {
}, },
vehicle_delivery_check: { vehicle_delivery_check: {
title: i18n.t("printcenter.jobs.vehicle_delivery_check"), title: i18n.t("printcenter.jobs.vehicle_delivery_check"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.vehicle_delivery_check"), subject: i18n.t("printcenter.jobs.vehicle_delivery_check"),
key: "vehicle_delivery_check", key: "vehicle_delivery_check",
disabled: false, disabled: false,
@@ -338,7 +340,7 @@ export const TemplateList = (type, context) => {
}, },
guarantee: { guarantee: {
title: i18n.t("printcenter.jobs.guarantee"), title: i18n.t("printcenter.jobs.guarantee"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.guarantee"), subject: i18n.t("printcenter.jobs.guarantee"),
key: "guarantee", key: "guarantee",
disabled: false, disabled: false,
@@ -346,7 +348,7 @@ export const TemplateList = (type, context) => {
}, },
csi_invitation: { csi_invitation: {
title: i18n.t("printcenter.jobs.csi_invitation"), title: i18n.t("printcenter.jobs.csi_invitation"),
description: "CSI invite", description: "",
key: "csi_invitation", key: "csi_invitation",
subject: i18n.t("printcenter.jobs.csi_invitation"), subject: i18n.t("printcenter.jobs.csi_invitation"),
disabled: false, disabled: false,
@@ -354,7 +356,7 @@ export const TemplateList = (type, context) => {
}, },
window_tag_sublet: { window_tag_sublet: {
title: i18n.t("printcenter.jobs.window_tag_sublet"), title: i18n.t("printcenter.jobs.window_tag_sublet"),
description: "Window Tag Sublet", description: "",
key: "window_tag_sublet", key: "window_tag_sublet",
subject: i18n.t("printcenter.jobs.window_tag_sublet"), subject: i18n.t("printcenter.jobs.window_tag_sublet"),
disabled: false, disabled: false,
@@ -362,7 +364,7 @@ export const TemplateList = (type, context) => {
}, },
thank_you_ro: { thank_you_ro: {
title: i18n.t("printcenter.jobs.thank_you_ro"), title: i18n.t("printcenter.jobs.thank_you_ro"),
description: "Thank You Letter by RO", description: "",
key: "thank_you_ro", key: "thank_you_ro",
subject: i18n.t("printcenter.jobs.thank_you_ro"), subject: i18n.t("printcenter.jobs.thank_you_ro"),
disabled: false, disabled: false,
@@ -370,7 +372,7 @@ export const TemplateList = (type, context) => {
}, },
parts_label_single: { parts_label_single: {
title: i18n.t("printcenter.jobs.parts_label_single"), title: i18n.t("printcenter.jobs.parts_label_single"),
description: "Thank You Letter by RO", description: "",
key: "parts_label_single", key: "parts_label_single",
subject: i18n.t("printcenter.jobs.parts_label_single"), subject: i18n.t("printcenter.jobs.parts_label_single"),
disabled: false, disabled: false,
@@ -379,7 +381,7 @@ export const TemplateList = (type, context) => {
}, },
envelope_return_address: { envelope_return_address: {
title: i18n.t("printcenter.jobs.envelope_return_address"), title: i18n.t("printcenter.jobs.envelope_return_address"),
description: "All Jobs Notes", description: "",
subject: i18n.t("printcenter.jobs.envelope_return_address"), subject: i18n.t("printcenter.jobs.envelope_return_address"),
key: "envelope_return_address", key: "envelope_return_address",
disabled: false, disabled: false,
@@ -388,7 +390,7 @@ export const TemplateList = (type, context) => {
}, },
sgi_certificate_of_repairs: { sgi_certificate_of_repairs: {
title: i18n.t("printcenter.jobs.sgi_certificate_of_repairs"), title: i18n.t("printcenter.jobs.sgi_certificate_of_repairs"),
description: "Thank You Letter by RO", description: "",
key: "sgi_certificate_of_repairs", key: "sgi_certificate_of_repairs",
subject: i18n.t("printcenter.jobs.sgi_certificate_of_repairs"), subject: i18n.t("printcenter.jobs.sgi_certificate_of_repairs"),
disabled: false, disabled: false,
@@ -399,7 +401,7 @@ export const TemplateList = (type, context) => {
}, },
sgi_windshield_auth: { sgi_windshield_auth: {
title: i18n.t("printcenter.jobs.sgi_windshield_auth"), title: i18n.t("printcenter.jobs.sgi_windshield_auth"),
description: "Thank You Letter by RO", description: "",
key: "sgi_windshield_auth", key: "sgi_windshield_auth",
subject: i18n.t("printcenter.jobs.sgi_windshield_auth"), subject: i18n.t("printcenter.jobs.sgi_windshield_auth"),
disabled: false, disabled: false,
@@ -410,7 +412,7 @@ export const TemplateList = (type, context) => {
}, },
mpi_final_acct_sheet: { mpi_final_acct_sheet: {
title: i18n.t("printcenter.jobs.mpi_final_acct_sheet"), title: i18n.t("printcenter.jobs.mpi_final_acct_sheet"),
description: "Thank You Letter by RO", description: "",
key: "mpi_final_acct_sheet", key: "mpi_final_acct_sheet",
subject: i18n.t("printcenter.jobs.mpi_final_acct_sheet"), subject: i18n.t("printcenter.jobs.mpi_final_acct_sheet"),
disabled: false, disabled: false,
@@ -421,7 +423,7 @@ export const TemplateList = (type, context) => {
}, },
mpi_eglass_auth: { mpi_eglass_auth: {
title: i18n.t("printcenter.jobs.mpi_eglass_auth"), title: i18n.t("printcenter.jobs.mpi_eglass_auth"),
description: "Thank You Letter by RO", description: "",
key: "mpi_eglass_auth", key: "mpi_eglass_auth",
subject: i18n.t("printcenter.jobs.mpi_eglass_auth"), subject: i18n.t("printcenter.jobs.mpi_eglass_auth"),
disabled: false, disabled: false,
@@ -432,7 +434,7 @@ export const TemplateList = (type, context) => {
}, },
mpi_animal_checklist: { mpi_animal_checklist: {
title: i18n.t("printcenter.jobs.mpi_animal_checklist"), title: i18n.t("printcenter.jobs.mpi_animal_checklist"),
description: "Thank You Letter by RO", description: "",
key: "mpi_animal_checklist", key: "mpi_animal_checklist",
subject: i18n.t("printcenter.jobs.mpi_animal_checklist"), subject: i18n.t("printcenter.jobs.mpi_animal_checklist"),
disabled: false, disabled: false,
@@ -443,7 +445,7 @@ export const TemplateList = (type, context) => {
}, },
ab_proof_of_loss: { ab_proof_of_loss: {
title: i18n.t("printcenter.jobs.ab_proof_of_loss"), title: i18n.t("printcenter.jobs.ab_proof_of_loss"),
description: "Thank You Letter by RO", description: "",
key: "ab_proof_of_loss", key: "ab_proof_of_loss",
subject: i18n.t("printcenter.jobs.ab_proof_of_loss"), subject: i18n.t("printcenter.jobs.ab_proof_of_loss"),
disabled: false, disabled: false,
@@ -454,7 +456,7 @@ export const TemplateList = (type, context) => {
}, },
// parts_label_multi: { // parts_label_multi: {
// title: i18n.t("printcenter.jobs.parts_label_multi"), // title: i18n.t("printcenter.jobs.parts_label_multi"),
// description: "Thank You Letter by RO", // description: "",
// key: "parts_label_multi", // key: "parts_label_multi",
// subject: i18n.t("printcenter.jobs.parts_label_multi"), // subject: i18n.t("printcenter.jobs.parts_label_multi"),
// disabled: false, // disabled: false,
@@ -462,7 +464,7 @@ export const TemplateList = (type, context) => {
// }, // },
iou_form: { iou_form: {
title: i18n.t("printcenter.jobs.iou_form"), title: i18n.t("printcenter.jobs.iou_form"),
description: "CASL Authorization", description: "",
subject: i18n.t("printcenter.jobs.iou_form"), subject: i18n.t("printcenter.jobs.iou_form"),
key: "iou_form", key: "iou_form",
disabled: false, disabled: false,
@@ -470,7 +472,7 @@ export const TemplateList = (type, context) => {
}, },
lag_time_ro: { lag_time_ro: {
title: i18n.t("printcenter.jobs.lag_time_ro"), title: i18n.t("printcenter.jobs.lag_time_ro"),
description: "CASL Authorization", description: "",
subject: i18n.t("printcenter.jobs.lag_time_ro"), subject: i18n.t("printcenter.jobs.lag_time_ro"),
key: "lag_time_ro", key: "lag_time_ro",
disabled: false, disabled: false,
@@ -478,7 +480,7 @@ export const TemplateList = (type, context) => {
}, },
rental_reservation: { rental_reservation: {
title: i18n.t("printcenter.jobs.rental_reservation"), title: i18n.t("printcenter.jobs.rental_reservation"),
description: "CASL Authorization", description: "",
subject: i18n.t("printcenter.jobs.rental_reservation"), subject: i18n.t("printcenter.jobs.rental_reservation"),
key: "rental_reservation", key: "rental_reservation",
disabled: false, disabled: false,
@@ -486,7 +488,7 @@ export const TemplateList = (type, context) => {
}, },
timetickets_ro: { timetickets_ro: {
title: i18n.t("printcenter.jobs.timetickets_ro"), title: i18n.t("printcenter.jobs.timetickets_ro"),
description: "CASL Authorization", description: "",
subject: i18n.t("printcenter.jobs.timetickets_ro"), subject: i18n.t("printcenter.jobs.timetickets_ro"),
key: "timetickets_ro", key: "timetickets_ro",
disabled: false, disabled: false,
@@ -494,7 +496,7 @@ export const TemplateList = (type, context) => {
}, },
dms_posting_sheet: { dms_posting_sheet: {
title: i18n.t("printcenter.jobs.dms_posting_sheet"), title: i18n.t("printcenter.jobs.dms_posting_sheet"),
description: "DMS Posting Sheet", description: "",
subject: i18n.t("printcenter.jobs.dms_posting_sheet"), subject: i18n.t("printcenter.jobs.dms_posting_sheet"),
key: "dms_posting_sheet", key: "dms_posting_sheet",
disabled: false, disabled: false,
@@ -506,39 +508,39 @@ export const TemplateList = (type, context) => {
? { ? {
special_thirdpartypayer: { special_thirdpartypayer: {
title: i18n.t("printcenter.jobs.thirdpartypayer"), title: i18n.t("printcenter.jobs.thirdpartypayer"),
description: "CSI invite", description: "",
key: "special_thirdpartypayer", key: "special_thirdpartypayer",
disabled: false, disabled: false,
}, },
folder_label_multiple: { folder_label_multiple: {
title: i18n.t("printcenter.jobs.folder_label_multiple"), title: i18n.t("printcenter.jobs.folder_label_multiple"),
description: "Folder Label Multiple", description: "",
key: "folder_label_multiple", key: "folder_label_multiple",
disabled: false, disabled: false,
}, },
parts_label_multiple: { parts_label_multiple: {
title: i18n.t("printcenter.jobs.parts_label_multiple"), title: i18n.t("printcenter.jobs.parts_label_multiple"),
description: "Parts Label Multiple", description: "",
key: "parts_label_multiple", key: "parts_label_multiple",
disabled: false, disabled: false,
}, },
parts_invoice_label_single: { parts_invoice_label_single: {
title: i18n.t("printcenter.jobs.parts_invoice_label_single"), title: i18n.t("printcenter.jobs.parts_invoice_label_single"),
description: "Parts Label Multiple", description: "",
key: "parts_invoice_label_single", key: "parts_invoice_label_single",
disabled: false, disabled: false,
ignoreCustomMargins: true, ignoreCustomMargins: true,
}, },
csi_invitation_action: { csi_invitation_action: {
title: i18n.t("printcenter.jobs.csi_invitation_action"), title: i18n.t("printcenter.jobs.csi_invitation_action"),
description: "CSI invite", description: "",
key: "csi_invitation_action", key: "csi_invitation_action",
subject: i18n.t("printcenter.jobs.csi_invitation_action"), subject: i18n.t("printcenter.jobs.csi_invitation_action"),
disabled: false, disabled: false,
}, },
individual_job_note: { individual_job_note: {
title: i18n.t("printcenter.jobs.individual_job_note"), title: i18n.t("printcenter.jobs.individual_job_note"),
description: "CSI invite", description: "",
key: "individual_job_note", key: "individual_job_note",
subject: i18n.t("printcenter.jobs.individual_job_note", { subject: i18n.t("printcenter.jobs.individual_job_note", {
ro_number: (context && context.ro_number) || "", ro_number: (context && context.ro_number) || "",
@@ -551,7 +553,7 @@ export const TemplateList = (type, context) => {
? { ? {
appointment_confirmation: { appointment_confirmation: {
title: i18n.t("printcenter.appointments.appointment_confirmation"), title: i18n.t("printcenter.appointments.appointment_confirmation"),
description: "Appointment Confirmation", description: "",
subject: i18n.t( subject: i18n.t(
"printcenter.appointments.appointment_confirmation" "printcenter.appointments.appointment_confirmation"
), ),
@@ -564,7 +566,7 @@ export const TemplateList = (type, context) => {
? { ? {
parts_order: { parts_order: {
title: i18n.t("printcenter.jobs.parts_order"), title: i18n.t("printcenter.jobs.parts_order"),
description: "Parts Order", description: "",
key: "parts_order", key: "parts_order",
subject: i18n.t("printcenter.subjects.jobs.parts_order", { subject: i18n.t("printcenter.subjects.jobs.parts_order", {
ro_number: context && context.job && context.job.ro_number, ro_number: context && context.job && context.job.ro_number,
@@ -578,7 +580,7 @@ export const TemplateList = (type, context) => {
}, },
sublet_order: { sublet_order: {
title: i18n.t("printcenter.jobs.sublet_order"), title: i18n.t("printcenter.jobs.sublet_order"),
description: "Parts Order", description: "",
key: "sublet_order", key: "sublet_order",
subject: i18n.t("printcenter.subjects.jobs.sublet_order", { subject: i18n.t("printcenter.subjects.jobs.sublet_order", {
ro_number: context && context.job && context.job.ro_number, ro_number: context && context.job && context.job.ro_number,
@@ -593,7 +595,7 @@ export const TemplateList = (type, context) => {
parts_return_slip: { parts_return_slip: {
title: i18n.t("printcenter.jobs.parts_return_slip"), title: i18n.t("printcenter.jobs.parts_return_slip"),
subject: i18n.t("printcenter.jobs.parts_return_slip"), subject: i18n.t("printcenter.jobs.parts_return_slip"),
description: "Parts Return", description: "",
key: "parts_return_slip", key: "parts_return_slip",
disabled: false, disabled: false,
}, },
@@ -603,7 +605,7 @@ export const TemplateList = (type, context) => {
? { ? {
payment_receipt: { payment_receipt: {
title: i18n.t("printcenter.jobs.payment_receipt"), title: i18n.t("printcenter.jobs.payment_receipt"),
description: "Payment Receipt", description: "",
subject: i18n.t("printcenter.jobs.payment_receipt"), subject: i18n.t("printcenter.jobs.payment_receipt"),
key: "payment_receipt", key: "payment_receipt",
disabled: false, disabled: false,
@@ -1891,7 +1893,7 @@ export const TemplateList = (type, context) => {
title: i18n.t( title: i18n.t(
"printcenter.courtesycarcontract.courtesy_car_contract" "printcenter.courtesycarcontract.courtesy_car_contract"
), ),
description: "Est Detail", description: "",
subject: i18n.t( subject: i18n.t(
"printcenter.courtesycarcontract.courtesy_car_contract" "printcenter.courtesycarcontract.courtesy_car_contract"
), ),
@@ -1900,7 +1902,7 @@ export const TemplateList = (type, context) => {
}, },
courtesy_car_terms: { courtesy_car_terms: {
title: i18n.t("printcenter.courtesycarcontract.courtesy_car_terms"), title: i18n.t("printcenter.courtesycarcontract.courtesy_car_terms"),
description: "Est Detail", description: "",
subject: i18n.t( subject: i18n.t(
"printcenter.courtesycarcontract.courtesy_car_terms" "printcenter.courtesycarcontract.courtesy_car_terms"
), ),
@@ -1911,7 +1913,7 @@ export const TemplateList = (type, context) => {
title: i18n.t( title: i18n.t(
"printcenter.courtesycarcontract.courtesy_car_impound" "printcenter.courtesycarcontract.courtesy_car_impound"
), ),
description: "Est Detail", description: "",
subject: i18n.t( subject: i18n.t(
"printcenter.courtesycarcontract.courtesy_car_impound" "printcenter.courtesycarcontract.courtesy_car_impound"
), ),
@@ -1926,7 +1928,7 @@ export const TemplateList = (type, context) => {
title: i18n.t( title: i18n.t(
"printcenter.courtesycarcontract.courtesy_car_inventory" "printcenter.courtesycarcontract.courtesy_car_inventory"
), ),
description: "Est Detail", description: "",
subject: i18n.t( subject: i18n.t(
"printcenter.courtesycarcontract.courtesy_car_inventory" "printcenter.courtesycarcontract.courtesy_car_inventory"
), ),
@@ -1939,7 +1941,7 @@ export const TemplateList = (type, context) => {
? { ? {
inhouse_invoice: { inhouse_invoice: {
title: i18n.t("printcenter.bills.inhouse_invoice"), title: i18n.t("printcenter.bills.inhouse_invoice"),
description: "Est Detail", description: "",
subject: i18n.t("printcenter.bills.inhouse_invoice"), subject: i18n.t("printcenter.bills.inhouse_invoice"),
key: "inhouse_invoice", key: "inhouse_invoice",
disabled: false, disabled: false,
@@ -1950,7 +1952,7 @@ export const TemplateList = (type, context) => {
? { ? {
// timetickets: { // timetickets: {
// title: i18n.t("printcenter.timetickets.timetickets"), // title: i18n.t("printcenter.timetickets.timetickets"),
// description: "Est Detail", // description: "",
// subject: `${i18n.t("printcenter.timetickets.timetickets")} - ${ // subject: `${i18n.t("printcenter.timetickets.timetickets")} - ${
// context && context.job && context.job.ro_number // context && context.job && context.job.ro_number
// }`, // }`,
@@ -1963,14 +1965,14 @@ export const TemplateList = (type, context) => {
? { ? {
purchases_by_vendor_detailed: { purchases_by_vendor_detailed: {
title: i18n.t("printcenter.vendors.purchases_by_vendor_detailed"), title: i18n.t("printcenter.vendors.purchases_by_vendor_detailed"),
description: "Est Detail", description: "",
subject: i18n.t("printcenter.vendors.purchases_by_vendor_detailed"), subject: i18n.t("printcenter.vendors.purchases_by_vendor_detailed"),
key: "purchases_by_vendor_detailed", key: "purchases_by_vendor_detailed",
disabled: false, disabled: false,
}, },
purchases_by_vendor_summary: { purchases_by_vendor_summary: {
title: i18n.t("printcenter.vendors.purchases_by_vendor_summary"), title: i18n.t("printcenter.vendors.purchases_by_vendor_summary"),
description: "Est Detail", description: "",
subject: i18n.t("printcenter.vendors.purchases_by_vendor_summary"), subject: i18n.t("printcenter.vendors.purchases_by_vendor_summary"),
key: "purchases_by_vendor_summary", key: "purchases_by_vendor_summary",
disabled: false, disabled: false,
@@ -2043,21 +2045,21 @@ export const TemplateList = (type, context) => {
? { ? {
ca_bc_etf_table: { ca_bc_etf_table: {
title: i18n.t("printcenter.payments.ca_bc_etf_table"), title: i18n.t("printcenter.payments.ca_bc_etf_table"),
description: "Est Detail", description: "",
subject: i18n.t("printcenter.payments.ca_bc_etf_table"), subject: i18n.t("printcenter.payments.ca_bc_etf_table"),
key: "ca_bc_etf_table", key: "ca_bc_etf_table",
disabled: false, disabled: false,
}, },
exported_payroll: { exported_payroll: {
title: i18n.t("printcenter.payments.exported_payroll"), title: i18n.t("printcenter.payments.exported_payroll"),
description: "Est Detail", description: "",
subject: i18n.t("printcenter.payments.exported_payroll"), subject: i18n.t("printcenter.payments.exported_payroll"),
key: "exported_payroll", key: "exported_payroll",
disabled: false, disabled: false,
}, },
attendance_detail_csv: { attendance_detail_csv: {
title: i18n.t("printcenter.special.attendance_detail_csv"), title: i18n.t("printcenter.special.attendance_detail_csv"),
description: "Est Detail", description: "",
subject: i18n.t("printcenter.special.attendance_detail_csv"), subject: i18n.t("printcenter.special.attendance_detail_csv"),
key: "attendance_detail_csv", key: "attendance_detail_csv",
disabled: false, disabled: false,

View File

@@ -682,13 +682,7 @@
insert: insert:
columns: '*' columns: '*'
update: update:
columns: columns: '*'
- jobid
- invoice_number
- due_date
- vendorid
- id
- date
retry_conf: retry_conf:
interval_sec: 10 interval_sec: 10
num_retries: 3 num_retries: 3
@@ -947,6 +941,7 @@
- md_referral_sources - md_referral_sources
- md_responsibility_centers - md_responsibility_centers
- md_ro_statuses - md_ro_statuses
- md_tasks_presets
- md_to_emails - md_to_emails
- messagingservicesid - messagingservicesid
- pbs_configuration - pbs_configuration
@@ -1044,6 +1039,7 @@
- md_referral_sources - md_referral_sources
- md_responsibility_centers - md_responsibility_centers
- md_ro_statuses - md_ro_statuses
- md_tasks_presets
- md_to_emails - md_to_emails
- pbs_configuration - pbs_configuration
- phone - phone
@@ -4094,22 +4090,7 @@
insert: insert:
columns: '*' columns: '*'
update: update:
columns: columns: '*'
- v_color
- ownerid
- ownr_fn
- v_model_desc
- ownr_ln
- id
- v_make_desc
- ownr_st
- clm_no
- voided
- status
- ownr_co_nm
- v_model_yr
- v_vin
- converted
retry_conf: retry_conf:
interval_sec: 10 interval_sec: 10
num_retries: 3 num_retries: 3
@@ -4352,6 +4333,7 @@
- jobid - jobid
- private - private
- text - text
- type
- updated_at - updated_at
select_permissions: select_permissions:
- role: user - role: user
@@ -4365,6 +4347,7 @@
- jobid - jobid
- private - private
- text - text
- type
- updated_at - updated_at
filter: filter:
job: job:
@@ -4388,6 +4371,7 @@
- jobid - jobid
- private - private
- text - text
- type
- updated_at - updated_at
filter: filter:
job: job:
@@ -4557,12 +4541,7 @@
insert: insert:
columns: '*' columns: '*'
update: update:
columns: columns: '*'
- shopid
- ownr_fn
- id
- ownr_co_nm
- ownr_ln
retry_conf: retry_conf:
interval_sec: 10 interval_sec: 10
num_retries: 3 num_retries: 3
@@ -5009,16 +4988,7 @@
insert: insert:
columns: '*' columns: '*'
update: update:
columns: columns: '*'
- paymentnum
- type
- amount
- date
- transactionid
- memo
- payer
- id
- jobid
retry_conf: retry_conf:
interval_sec: 10 interval_sec: 10
num_retries: 3 num_retries: 3
@@ -5956,14 +5926,7 @@
insert: insert:
columns: '*' columns: '*'
update: update:
columns: columns: '*'
- v_model_yr
- plate_no
- id
- v_vin
- v_model_desc
- plate_st
- shopid
retry_conf: retry_conf:
interval_sec: 10 interval_sec: 10
num_retries: 3 num_retries: 3

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."bodyshops" add column "md_tasks_presets" jsonb
-- not null default jsonb_build_object();

View File

@@ -0,0 +1,2 @@
alter table "public"."bodyshops" add column "md_tasks_presets" jsonb
not null default jsonb_build_object();

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."notes" add column "type" text
-- not null default 'general';

View File

@@ -0,0 +1,2 @@
alter table "public"."notes" add column "type" text
not null default 'general';

View File

@@ -50,7 +50,7 @@ const getClient = async () => {
async function OpenSearchUpdateHandler(req, res) { async function OpenSearchUpdateHandler(req, res) {
try { try {
var osClient = await getClient(); var osClient = await getClient();
// const osClient = new Client({ // const osClient = new Client({
// node: `https://imex:password@search-imexonline-search-ixp2stfvwp6qocjsowzjzyreoy.ca-central-1.es.amazonaws.com`, // node: `https://imex:password@search-imexonline-search-ixp2stfvwp6qocjsowzjzyreoy.ca-central-1.es.amazonaws.com`,
// }); // });
@@ -74,12 +74,19 @@ async function OpenSearchUpdateHandler(req, res) {
const jobsData = await gqlclient.request(`query{jobs{ const jobsData = await gqlclient.request(`query{jobs{
id id
bodyshopid:shopid bodyshopid:shopid
ro_number
clm_no clm_no
clm_total
comment
ins_co_nm
owner_owing
ownr_co_nm
ownr_fn ownr_fn
ownr_ln ownr_ln
ownr_ph1
ownr_ph2
plate_no
ro_number
status status
ownr_co_nm
v_model_yr v_model_yr
v_make_desc v_make_desc
v_model_desc v_model_desc
@@ -128,12 +135,12 @@ async function OpenSearchUpdateHandler(req, res) {
vehicles { vehicles {
id id
bodyshopid: shopid bodyshopid: shopid
v_model_yr plate_no
v_model_desc v_model_yr
v_make_desc v_model_desc
v_color v_make_desc
v_vin v_color
plate_no v_vin
} }
} }
`); `);
@@ -155,11 +162,26 @@ plate_no
payments { payments {
id id
amount amount
paymentnum created_at
date
exportedat
memo memo
payer
paymentnum
transactionid transactionid
type
job { job {
id id
ownerid
ownr_co_nm
ownr_fn
ownr_ln
owner {
id
ownr_co_nm
ownr_fn
ownr_ln
}
ro_number ro_number
bodyshopid: shopid bodyshopid: shopid
} }
@@ -187,9 +209,12 @@ plate_no
const billsData = await gqlclient.request(`{ const billsData = await gqlclient.request(`{
bills { bills {
id id
total
invoice_number
date date
exported
exported_at
invoice_number
is_credit_memo
total
vendor { vendor {
name name
id id
@@ -200,9 +225,7 @@ plate_no
bodyshopid: shopid bodyshopid: shopid
} }
} }
} }`);
`);
for (let i = 0; i <= billsData.bills.length / batchSize; i++) { for (let i = 0; i <= billsData.bills.length / batchSize; i++) {
const slicedArray = billsData.bills.slice( const slicedArray = billsData.bills.slice(
i * batchSize, i * batchSize,

View File

@@ -40,11 +40,7 @@ exports.default = async (req, res) => {
const specificShopIds = req.body.bodyshopIds; // ['uuid] const specificShopIds = req.body.bodyshopIds; // ['uuid]
const { start, end, skipUpload } = req.body; //YYYY-MM-DD const { start, end, skipUpload } = req.body; //YYYY-MM-DD
if ( if (req.headers["x-imex-auth"] !== process.env.AUTOHOUSE_AUTH_TOKEN) {
!start ||
!moment(start).isValid ||
req.headers["x-imex-auth"] !== process.env.AUTOHOUSE_AUTH_TOKEN
) {
res.sendStatus(401); res.sendStatus(401);
return; return;
} }
@@ -269,20 +265,20 @@ const CreateRepairOrderTag = (job, errorCallback) => {
}${job.est_ct_fn ? job.est_ct_fn : ""}`, }${job.est_ct_fn ? job.est_ct_fn : ""}`,
}, },
CustomerInformation: { CustomerInformation: {
FirstName: job.ownr_fn || "", FirstName: "",
LastName: job.ownr_ln || "", LastName: "",
Street: job.ownr_addr1 || "", Street: "",
City: job.ownr_city || "", City: "",
State: job.ownr_st || "", State: "",
Zip: (job.ownr_zip && job.ownr_zip.substring(0, 3)) || "", Zip: (job.ownr_zip && job.ownr_zip.substring(0, 3)) || "",
Phone1: job.ownr_ph1 || "", Phone1: "",
Phone2: null, Phone2: null,
Phone2Extension: null, Phone2Extension: null,
Phone3: null, Phone3: null,
Phone3Extension: null, Phone3Extension: null,
FileComments: null, FileComments: null,
Source: null, Source: null,
Email: job.ownr_ea || "", Email: "",
RetWhsl: null, RetWhsl: null,
Cat: null, Cat: null,
InsuredorClaimantFlag: null, InsuredorClaimantFlag: null,
@@ -766,7 +762,12 @@ const CreateCosts = (job) => {
}, {}); }, {});
//If the hourly rates for job costing are set, add them in. //If the hourly rates for job costing are set, add them in.
if (job.bodyshop.jc_hourly_rates && job.bodyshop.jc_hourly_rates.mapa) { if (
job.bodyshop.jc_hourly_rates &&
(job.bodyshop.jc_hourly_rates.mapa ||
typeof job.bodyshop.jc_hourly_rates.mapa === "number" ||
isNaN(job.bodyshop.jc_hourly_rates.mapa) === false)
) {
if ( if (
!billTotalsByCostCenters[ !billTotalsByCostCenters[
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
@@ -791,10 +792,11 @@ const CreateCosts = (job) => {
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
].add( ].add(
Dinero({ Dinero({
amount: amount: Math.round(
(job.bodyshop.jc_hourly_rates && (job.bodyshop.jc_hourly_rates &&
job.bodyshop.jc_hourly_rates.mapa * 100) || job.bodyshop.jc_hourly_rates.mapa * 100) ||
0, 0
),
}).multiply(job.job_totals.rates.mapa.hours) }).multiply(job.job_totals.rates.mapa.hours)
); );
} }
@@ -805,10 +807,11 @@ const CreateCosts = (job) => {
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
].add( ].add(
Dinero({ Dinero({
amount: amount: Math.round(
(job.bodyshop.jc_hourly_rates && (job.bodyshop.jc_hourly_rates &&
job.bodyshop.jc_hourly_rates.mapa * 100) || job.bodyshop.jc_hourly_rates.mapa * 100) ||
0, 0
),
}).multiply(job.job_totals.rates.mapa.hours) }).multiply(job.job_totals.rates.mapa.hours)
); );
} }
@@ -828,10 +831,11 @@ const CreateCosts = (job) => {
job.bodyshop.md_responsibility_centers.defaults.costs.MASH job.bodyshop.md_responsibility_centers.defaults.costs.MASH
].add( ].add(
Dinero({ Dinero({
amount: amount: Math.round(
(job.bodyshop.jc_hourly_rates && (job.bodyshop.jc_hourly_rates &&
job.bodyshop.jc_hourly_rates.mash * 100) || job.bodyshop.jc_hourly_rates.mash * 100) ||
0, 0
),
}).multiply(job.job_totals.rates.mash.hours) }).multiply(job.job_totals.rates.mash.hours)
); );
} }

View File

@@ -612,7 +612,12 @@ function GenerateCostingData(job) {
//If the hourly rates for job costing are set, add them in. //If the hourly rates for job costing are set, add them in.
if (job.bodyshop.jc_hourly_rates && job.bodyshop.jc_hourly_rates.mapa) { if (
job.bodyshop.jc_hourly_rates &&
(job.bodyshop.jc_hourly_rates.mapa ||
typeof job.bodyshop.jc_hourly_rates.mapa === "number" ||
isNaN(job.bodyshop.jc_hourly_rates.mapa) === false)
) {
if ( if (
!billTotalsByCostCenters.additionalCosts[ !billTotalsByCostCenters.additionalCosts[
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
@@ -626,7 +631,9 @@ function GenerateCostingData(job) {
billTotalsByCostCenters.additionalCosts[ billTotalsByCostCenters.additionalCosts[
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
] = Dinero({ ] = Dinero({
amount: Math.round((job.mixdata[0] && job.mixdata[0].totalliquidcost || 0) * 100) amount: Math.round(
((job.mixdata[0] && job.mixdata[0].totalliquidcost) || 0) * 100
),
}); });
} else { } else {
billTotalsByCostCenters.additionalCosts[ billTotalsByCostCenters.additionalCosts[
@@ -635,10 +642,11 @@ function GenerateCostingData(job) {
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
].add( ].add(
Dinero({ Dinero({
amount: amount: Math.round(
(job.bodyshop.jc_hourly_rates && (job.bodyshop.jc_hourly_rates &&
job.bodyshop.jc_hourly_rates.mapa * 100) || job.bodyshop.jc_hourly_rates.mapa * 100) ||
0, 0
),
}).multiply(materialsHours.mapaHrs) }).multiply(materialsHours.mapaHrs)
); );
} }
@@ -649,10 +657,11 @@ function GenerateCostingData(job) {
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
].add( ].add(
Dinero({ Dinero({
amount: amount: Math.round(
(job.bodyshop.jc_hourly_rates && (job.bodyshop.jc_hourly_rates &&
job.bodyshop.jc_hourly_rates.mapa * 100) || job.bodyshop.jc_hourly_rates.mapa * 100) ||
0, 0
),
}).multiply(materialsHours.mapaHrs) }).multiply(materialsHours.mapaHrs)
); );
} }
@@ -673,10 +682,11 @@ function GenerateCostingData(job) {
job.bodyshop.md_responsibility_centers.defaults.costs.MASH job.bodyshop.md_responsibility_centers.defaults.costs.MASH
].add( ].add(
Dinero({ Dinero({
amount: amount: Math.round(
(job.bodyshop.jc_hourly_rates && (job.bodyshop.jc_hourly_rates &&
job.bodyshop.jc_hourly_rates.mash * 100) || job.bodyshop.jc_hourly_rates.mash * 100) ||
0, 0
),
}).multiply(materialsHours.mashHrs) }).multiply(materialsHours.mashHrs)
); );
} }
@@ -833,7 +843,9 @@ function GenerateCostingData(job) {
//Push adjustments to bottom line. //Push adjustments to bottom line.
if (job.adjustment_bottom_line) { if (job.adjustment_bottom_line) {
//Add to totals. //Add to totals.
const Adjustment = Dinero({ amount: job.adjustment_bottom_line * 100 }); //Need to invert, since this is being assigned as a cost. const Adjustment = Dinero({
amount: Math.round(job.adjustment_bottom_line * 100),
}); //Need to invert, since this is being assigned as a cost.
summaryData.totalLaborSales = summaryData.totalLaborSales.add(Adjustment); summaryData.totalLaborSales = summaryData.totalLaborSales.add(Adjustment);
summaryData.totalSales = summaryData.totalSales.add(Adjustment); summaryData.totalSales = summaryData.totalSales.add(Adjustment);
//Add to lines. //Add to lines.

View File

@@ -70,12 +70,19 @@ async function OpenSearchUpdateHandler(req, res) {
document = _.pick(req.body.event.data.new, [ document = _.pick(req.body.event.data.new, [
"id", "id",
"bodyshopid", "bodyshopid",
"ro_number",
"clm_no", "clm_no",
"clm_total",
"comment",
"ins_co_nm",
"owner_owing",
"ownr_co_nm",
"ownr_fn", "ownr_fn",
"ownr_ln", "ownr_ln",
"ownr_ph1",
"ownr_ph2",
"plate_no",
"ro_number",
"status", "status",
"ownr_co_nm",
"v_model_yr", "v_model_yr",
"v_make_desc", "v_make_desc",
"v_model_desc", "v_model_desc",
@@ -124,17 +131,19 @@ async function OpenSearchUpdateHandler(req, res) {
`, `,
{ billId: req.body.event.data.new.id } { billId: req.body.event.data.new.id }
); );
document = { document = {
..._.pick(req.body.event.data.new, [ ..._.pick(req.body.event.data.new, [
"id", "id",
"invoice_number",
"date", "date",
"exported",
"exported_at",
"invoice_number",
"is_credit_memo",
"total"
]), ]),
...bill.bills_by_pk, ...bill.bills_by_pk,
bodyshopid: bill.bills_by_pk.job.shopid, bodyshopid: bill.bills_by_pk.job.shopid,
}; };
break; break;
case "payments": case "payments":
//Query to get the job and RO number //Query to get the job and RO number
@@ -146,21 +155,40 @@ async function OpenSearchUpdateHandler(req, res) {
id id
ro_number ro_number
shopid shopid
ownerid
ownr_co_nm
ownr_fn
ownr_ln
owner {
id
ownr_co_nm
ownr_fn
ownr_ln
}
} }
} }
} }
`,
`,
{ paymentId: req.body.event.data.new.id } { paymentId: req.body.event.data.new.id }
); );
document = { document = {
..._.pick(req.body.event.data.new, ["id", "invoice_number"]), ..._.pick(req.body.event.data.new, [
"id",
"amount",
"created_at",
"date",
"exportedat",
"memo",
"payer",
"paymentnum",
"transactionid",
"type",
]),
...payment.payments_by_pk, ...payment.payments_by_pk,
bodyshopid: bill.payments_by_pk.job.shopid, bodyshopid: payment.payments_by_pk.job.shopid,
}; };
break; break;
} }
const payload = { const payload = {
id: req.body.event.data.new.id, id: req.body.event.data.new.id,
index: req.body.table.name, index: req.body.table.name,
@@ -180,7 +208,7 @@ async function OpenSearchUpdateHandler(req, res) {
async function OpensearchSearchHandler(req, res) { async function OpensearchSearchHandler(req, res) {
try { try {
const { search, bodyshopid } = req.body; const { search, bodyshopid, index } = req.body;
if (!req.user) { if (!req.user) {
res.sendStatus(401); res.sendStatus(401);
return; return;
@@ -209,6 +237,7 @@ async function OpensearchSearchHandler(req, res) {
var osClient = await getClient(); var osClient = await getClient();
const { body } = await osClient.search({ const { body } = await osClient.search({
...(index ? { index } : {}),
body: { body: {
size: 100, size: 100,
query: { query: {

View File

@@ -4312,14 +4312,9 @@ tslib@^1.11.1:
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
tslib@^2.0.1, tslib@^2.1.0: tslib@^2.0.1, tslib@^2.1.0:
version "2.5.2"
tslib@^2.3.1, tslib@^2.5.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338"
version "2.5.0" integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
version "2.5.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
tslib@^2.3.1, tslib@^2.5.0: tslib@^2.3.1, tslib@^2.5.0:
version "2.5.0" version "2.5.0"