@nerdjs/sales-kit 2.0.48 → 2.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/entities/billingKickback/billingKickback.d.ts +19 -0
  2. package/dist/entities/billingKickback/billingKickback.js +55 -0
  3. package/dist/entities/billingKickback/billingKickback.js.map +1 -0
  4. package/dist/entities/billingKickback/helper.d.ts +5 -0
  5. package/dist/entities/billingKickback/helper.js +16 -0
  6. package/dist/entities/billingKickback/helper.js.map +1 -0
  7. package/dist/entities/billingKickback/index.d.ts +2 -0
  8. package/dist/entities/billingKickback/index.js +3 -0
  9. package/dist/entities/billingKickback/index.js.map +1 -0
  10. package/dist/entities/billingKickbackResponse/billingKickbackResponse.d.ts +15 -0
  11. package/dist/entities/billingKickbackResponse/billingKickbackResponse.js +49 -0
  12. package/dist/entities/billingKickbackResponse/billingKickbackResponse.js.map +1 -0
  13. package/dist/entities/billingKickbackResponse/helper.d.ts +5 -0
  14. package/dist/entities/billingKickbackResponse/helper.js +16 -0
  15. package/dist/entities/billingKickbackResponse/helper.js.map +1 -0
  16. package/dist/entities/billingKickbackResponse/index.d.ts +2 -0
  17. package/dist/entities/billingKickbackResponse/index.js +3 -0
  18. package/dist/entities/billingKickbackResponse/index.js.map +1 -0
  19. package/dist/entities/billingKickbackResponseAccessorial/billingKickbackResponseAccessorial.d.ts +8 -0
  20. package/dist/entities/billingKickbackResponseAccessorial/billingKickbackResponseAccessorial.js +35 -0
  21. package/dist/entities/billingKickbackResponseAccessorial/billingKickbackResponseAccessorial.js.map +1 -0
  22. package/dist/entities/billingKickbackResponseAccessorial/helper.d.ts +5 -0
  23. package/dist/entities/billingKickbackResponseAccessorial/helper.js +16 -0
  24. package/dist/entities/billingKickbackResponseAccessorial/helper.js.map +1 -0
  25. package/dist/entities/billingKickbackResponseAccessorial/index.d.ts +2 -0
  26. package/dist/entities/billingKickbackResponseAccessorial/index.js +3 -0
  27. package/dist/entities/billingKickbackResponseAccessorial/index.js.map +1 -0
  28. package/dist/entities/billingMessage/billingMessage.d.ts +7 -0
  29. package/dist/entities/billingMessage/billingMessage.js +31 -0
  30. package/dist/entities/billingMessage/billingMessage.js.map +1 -0
  31. package/dist/entities/billingMessage/helper.d.ts +5 -0
  32. package/dist/entities/billingMessage/helper.js +16 -0
  33. package/dist/entities/billingMessage/helper.js.map +1 -0
  34. package/dist/entities/billingMessage/index.d.ts +2 -0
  35. package/dist/entities/billingMessage/index.js +3 -0
  36. package/dist/entities/billingMessage/index.js.map +1 -0
  37. package/dist/entities/billingNote/billingNote.d.ts +11 -0
  38. package/dist/entities/billingNote/billingNote.js +39 -0
  39. package/dist/entities/billingNote/billingNote.js.map +1 -0
  40. package/dist/entities/billingNote/helper.d.ts +5 -0
  41. package/dist/entities/billingNote/helper.js +16 -0
  42. package/dist/entities/billingNote/helper.js.map +1 -0
  43. package/dist/entities/billingNote/index.d.ts +2 -0
  44. package/dist/entities/billingNote/index.js +3 -0
  45. package/dist/entities/billingNote/index.js.map +1 -0
  46. package/dist/entities/commodity/commodity.d.ts +21 -0
  47. package/dist/entities/commodity/commodity.js +58 -0
  48. package/dist/entities/commodity/commodity.js.map +1 -0
  49. package/dist/entities/commodity/helper.d.ts +5 -0
  50. package/dist/entities/commodity/helper.js +16 -0
  51. package/dist/entities/commodity/helper.js.map +1 -0
  52. package/dist/entities/commodity/index.d.ts +2 -0
  53. package/dist/entities/commodity/index.js +3 -0
  54. package/dist/entities/commodity/index.js.map +1 -0
  55. package/dist/entities/generalLedgerAccount/generalLedgerAccount.d.ts +19 -0
  56. package/dist/entities/generalLedgerAccount/generalLedgerAccount.js +58 -0
  57. package/dist/entities/generalLedgerAccount/generalLedgerAccount.js.map +1 -0
  58. package/dist/entities/generalLedgerAccount/helper.d.ts +5 -0
  59. package/dist/entities/generalLedgerAccount/helper.js +16 -0
  60. package/dist/entities/generalLedgerAccount/helper.js.map +1 -0
  61. package/dist/entities/generalLedgerAccount/index.d.ts +2 -0
  62. package/dist/entities/generalLedgerAccount/index.js +3 -0
  63. package/dist/entities/generalLedgerAccount/index.js.map +1 -0
  64. package/dist/entities/index.d.ts +12 -0
  65. package/dist/entities/index.js +12 -0
  66. package/dist/entities/index.js.map +1 -1
  67. package/dist/entities/invoice/helper.d.ts +5 -0
  68. package/dist/entities/invoice/helper.js +16 -0
  69. package/dist/entities/invoice/helper.js.map +1 -0
  70. package/dist/entities/invoice/index.d.ts +2 -0
  71. package/dist/entities/invoice/index.js +3 -0
  72. package/dist/entities/invoice/index.js.map +1 -0
  73. package/dist/entities/invoice/invoice.d.ts +44 -0
  74. package/dist/entities/invoice/invoice.js +86 -0
  75. package/dist/entities/invoice/invoice.js.map +1 -0
  76. package/dist/entities/invoiceAdjustment/helper.d.ts +5 -0
  77. package/dist/entities/invoiceAdjustment/helper.js +16 -0
  78. package/dist/entities/invoiceAdjustment/helper.js.map +1 -0
  79. package/dist/entities/invoiceAdjustment/index.d.ts +2 -0
  80. package/dist/entities/invoiceAdjustment/index.js +3 -0
  81. package/dist/entities/invoiceAdjustment/index.js.map +1 -0
  82. package/dist/entities/invoiceAdjustment/invoiceAdjustment.d.ts +20 -0
  83. package/dist/entities/invoiceAdjustment/invoiceAdjustment.js +59 -0
  84. package/dist/entities/invoiceAdjustment/invoiceAdjustment.js.map +1 -0
  85. package/dist/entities/invoiceLineItem/helper.d.ts +5 -0
  86. package/dist/entities/invoiceLineItem/helper.js +16 -0
  87. package/dist/entities/invoiceLineItem/helper.js.map +1 -0
  88. package/dist/entities/invoiceLineItem/index.d.ts +2 -0
  89. package/dist/entities/invoiceLineItem/index.js +3 -0
  90. package/dist/entities/invoiceLineItem/index.js.map +1 -0
  91. package/dist/entities/invoiceLineItem/invoiceLineItem.d.ts +9 -0
  92. package/dist/entities/invoiceLineItem/invoiceLineItem.js +35 -0
  93. package/dist/entities/invoiceLineItem/invoiceLineItem.js.map +1 -0
  94. package/dist/entities/invoiceV1/helper.d.ts +5 -0
  95. package/dist/entities/invoiceV1/helper.js +16 -0
  96. package/dist/entities/invoiceV1/helper.js.map +1 -0
  97. package/dist/entities/invoiceV1/index.d.ts +2 -0
  98. package/dist/entities/invoiceV1/index.js +3 -0
  99. package/dist/entities/invoiceV1/index.js.map +1 -0
  100. package/dist/entities/invoiceV1/invoiceV1.d.ts +68 -0
  101. package/dist/entities/invoiceV1/invoiceV1.js +153 -0
  102. package/dist/entities/invoiceV1/invoiceV1.js.map +1 -0
  103. package/dist/entities/load/load.d.ts +1 -0
  104. package/dist/entities/load/load.js +2 -0
  105. package/dist/entities/load/load.js.map +1 -1
  106. package/dist/entities/payment/helper.d.ts +5 -0
  107. package/dist/entities/payment/helper.js +16 -0
  108. package/dist/entities/payment/helper.js.map +1 -0
  109. package/dist/entities/payment/index.d.ts +2 -0
  110. package/dist/entities/payment/index.js +3 -0
  111. package/dist/entities/payment/index.js.map +1 -0
  112. package/dist/entities/payment/payment.d.ts +13 -0
  113. package/dist/entities/payment/payment.js +43 -0
  114. package/dist/entities/payment/payment.js.map +1 -0
  115. package/dist/entities/transaction/helper.d.ts +5 -0
  116. package/dist/entities/transaction/helper.js +16 -0
  117. package/dist/entities/transaction/helper.js.map +1 -0
  118. package/dist/entities/transaction/index.d.ts +2 -0
  119. package/dist/entities/transaction/index.js +3 -0
  120. package/dist/entities/transaction/index.js.map +1 -0
  121. package/dist/entities/transaction/transaction.d.ts +16 -0
  122. package/dist/entities/transaction/transaction.js +49 -0
  123. package/dist/entities/transaction/transaction.js.map +1 -0
  124. package/dist/hooks/locationsForm/locationsFormSales.js +22 -3
  125. package/dist/hooks/locationsForm/locationsFormSales.js.map +1 -1
  126. package/dist/hooks/quote/helpers.js +14 -14
  127. package/dist/hooks/quote/helpers.js.map +1 -1
  128. package/dist/hooks/quote/result.js +37 -25
  129. package/dist/hooks/quote/result.js.map +1 -1
  130. package/dist/hooks/tender/form.js +2 -2
  131. package/dist/hooks/tender/form.js.map +1 -1
  132. package/dist/redux/api/salesApi.d.ts +1 -1
  133. package/dist/redux/api/salesApi.js +15 -0
  134. package/dist/redux/api/salesApi.js.map +1 -1
  135. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +10 -10
  136. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +11 -11
  137. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +10 -10
  138. package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +10 -10
  139. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +10 -10
  140. package/dist/redux/archerFile/archerFileEndpoints.d.ts +13 -13
  141. package/dist/redux/archerFile/archerFileEndpoints.js +2 -2
  142. package/dist/redux/archerFile/archerFileEndpoints.js.map +1 -1
  143. package/dist/redux/billingKickback/billingKickbackEndpoints.d.ts +33 -0
  144. package/dist/redux/billingKickback/billingKickbackEndpoints.js +72 -0
  145. package/dist/redux/billingKickback/billingKickbackEndpoints.js.map +1 -0
  146. package/dist/redux/billingKickback/index.d.ts +2 -0
  147. package/dist/redux/billingKickback/index.js +3 -0
  148. package/dist/redux/billingKickback/index.js.map +1 -0
  149. package/dist/redux/billingKickbackResponse/billingKickbackResponseEndpoints.d.ts +32 -0
  150. package/dist/redux/billingKickbackResponse/billingKickbackResponseEndpoints.js +82 -0
  151. package/dist/redux/billingKickbackResponse/billingKickbackResponseEndpoints.js.map +1 -0
  152. package/dist/redux/billingKickbackResponse/index.d.ts +2 -0
  153. package/dist/redux/billingKickbackResponse/index.js +3 -0
  154. package/dist/redux/billingKickbackResponse/index.js.map +1 -0
  155. package/dist/redux/billingKickbackResponseAccessorial/billingKickbackResponseAccessorialEndpoints.d.ts +32 -0
  156. package/dist/redux/billingKickbackResponseAccessorial/billingKickbackResponseAccessorialEndpoints.js +76 -0
  157. package/dist/redux/billingKickbackResponseAccessorial/billingKickbackResponseAccessorialEndpoints.js.map +1 -0
  158. package/dist/redux/billingKickbackResponseAccessorial/index.d.ts +2 -0
  159. package/dist/redux/billingKickbackResponseAccessorial/index.js +3 -0
  160. package/dist/redux/billingKickbackResponseAccessorial/index.js.map +1 -0
  161. package/dist/redux/billingMessage/billingMessageEndpoints.d.ts +24 -0
  162. package/dist/redux/billingMessage/billingMessageEndpoints.js +64 -0
  163. package/dist/redux/billingMessage/billingMessageEndpoints.js.map +1 -0
  164. package/dist/redux/billingMessage/index.d.ts +2 -0
  165. package/dist/redux/billingMessage/index.js +3 -0
  166. package/dist/redux/billingMessage/index.js.map +1 -0
  167. package/dist/redux/billingNote/billingNoteEndpoints.d.ts +32 -0
  168. package/dist/redux/billingNote/billingNoteEndpoints.js +65 -0
  169. package/dist/redux/billingNote/billingNoteEndpoints.js.map +1 -0
  170. package/dist/redux/billingNote/index.d.ts +2 -0
  171. package/dist/redux/billingNote/index.js +3 -0
  172. package/dist/redux/billingNote/index.js.map +1 -0
  173. package/dist/redux/carrierName/carrierNameEndpoints.d.ts +10 -10
  174. package/dist/redux/claim/claimEndpoints.d.ts +16 -16
  175. package/dist/redux/claimStatus/claimStatusEndpoints.d.ts +9 -9
  176. package/dist/redux/commodity/commodityEndpoints.d.ts +26 -0
  177. package/dist/redux/commodity/commodityEndpoints.js +63 -0
  178. package/dist/redux/commodity/commodityEndpoints.js.map +1 -0
  179. package/dist/redux/commodity/index.d.ts +2 -0
  180. package/dist/redux/commodity/index.js +3 -0
  181. package/dist/redux/commodity/index.js.map +1 -0
  182. package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +11 -11
  183. package/dist/redux/commodityV1/commodityV1Endpoints.js +3 -2
  184. package/dist/redux/commodityV1/commodityV1Endpoints.js.map +1 -1
  185. package/dist/redux/contact/contactEndpoints.d.ts +10 -10
  186. package/dist/redux/customer/customerEndpoints.d.ts +18 -17
  187. package/dist/redux/customer/customerEndpoints.js +8 -1
  188. package/dist/redux/customer/customerEndpoints.js.map +1 -1
  189. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.d.ts +9 -9
  190. package/dist/redux/dispatch/dispatchEndpoints.d.ts +10 -10
  191. package/dist/redux/driverName/driverNameEndpoints.d.ts +9 -9
  192. package/dist/redux/flag/flagEndpoints.d.ts +9 -9
  193. package/dist/redux/generalLedgerAccount/generalLedgerAccountEndpoints.d.ts +25 -0
  194. package/dist/redux/generalLedgerAccount/generalLedgerAccountEndpoints.js +78 -0
  195. package/dist/redux/generalLedgerAccount/generalLedgerAccountEndpoints.js.map +1 -0
  196. package/dist/redux/generalLedgerAccount/index.d.ts +2 -0
  197. package/dist/redux/generalLedgerAccount/index.js +3 -0
  198. package/dist/redux/generalLedgerAccount/index.js.map +1 -0
  199. package/dist/redux/genericTender/genericTenderEndpoints.d.ts +10 -10
  200. package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
  201. package/dist/redux/index.d.ts +10 -0
  202. package/dist/redux/index.js +10 -0
  203. package/dist/redux/index.js.map +1 -1
  204. package/dist/redux/invoice/index.d.ts +2 -0
  205. package/dist/redux/invoice/index.js +3 -0
  206. package/dist/redux/invoice/index.js.map +1 -0
  207. package/dist/redux/invoice/invoiceEndpoints.d.ts +26 -0
  208. package/dist/redux/invoice/invoiceEndpoints.js +63 -0
  209. package/dist/redux/invoice/invoiceEndpoints.js.map +1 -0
  210. package/dist/redux/invoiceAdjustment/index.d.ts +2 -0
  211. package/dist/redux/invoiceAdjustment/index.js +3 -0
  212. package/dist/redux/invoiceAdjustment/index.js.map +1 -0
  213. package/dist/redux/invoiceAdjustment/invoiceAdjustmentEndpoints.d.ts +32 -0
  214. package/dist/redux/invoiceAdjustment/invoiceAdjustmentEndpoints.js +67 -0
  215. package/dist/redux/invoiceAdjustment/invoiceAdjustmentEndpoints.js.map +1 -0
  216. package/dist/redux/invoiceV1/index.d.ts +2 -0
  217. package/dist/redux/invoiceV1/index.js +3 -0
  218. package/dist/redux/invoiceV1/index.js.map +1 -0
  219. package/dist/redux/invoiceV1/invoiceV1Endpoints.d.ts +33 -0
  220. package/dist/redux/invoiceV1/invoiceV1Endpoints.js +73 -0
  221. package/dist/redux/invoiceV1/invoiceV1Endpoints.js.map +1 -0
  222. package/dist/redux/load/loadEndpoints.d.ts +11 -11
  223. package/dist/redux/load/loadEndpoints.js +1 -0
  224. package/dist/redux/load/loadEndpoints.js.map +1 -1
  225. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
  226. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +10 -10
  227. package/dist/redux/loadTender/loadTenderEndpoints.d.ts +12 -12
  228. package/dist/redux/loadV1/loadV1Endpoints.d.ts +63 -53
  229. package/dist/redux/loadV1/loadV1Endpoints.js +11 -1
  230. package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -1
  231. package/dist/redux/location/locationEndpoints.d.ts +14 -14
  232. package/dist/redux/locationV1/locationV1Endpoints.d.ts +19 -19
  233. package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +9 -9
  234. package/dist/redux/nodeName/nodeNameEndpoints.d.ts +10 -10
  235. package/dist/redux/notification/notificationEndpoints.d.ts +13 -13
  236. package/dist/redux/person/personEndpoints.d.ts +11 -11
  237. package/dist/redux/personName/personNameEndpoints.d.ts +10 -10
  238. package/dist/redux/quote/quoteAction.d.ts +4 -0
  239. package/dist/redux/quote/quoteAction.js +8 -0
  240. package/dist/redux/quote/quoteAction.js.map +1 -1
  241. package/dist/redux/quote/quoteEndpoints.d.ts +22 -22
  242. package/dist/redux/quote/quoteHooks.d.ts +2 -2
  243. package/dist/redux/quote/quoteReducer.js +19 -1
  244. package/dist/redux/quote/quoteReducer.js.map +1 -1
  245. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
  246. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +10 -10
  247. package/dist/redux/rateReview/rateReviewEndpoints.d.ts +10 -10
  248. package/dist/redux/shipcon/shipconEndpoints.d.ts +10 -10
  249. package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +16 -16
  250. package/dist/redux/tender/tenderEndpoints.d.ts +10 -10
  251. package/dist/redux/tender/tenderEndpoints.js +2 -2
  252. package/dist/redux/tender/tenderEndpoints.js.map +1 -1
  253. package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
  254. package/dist/redux/types.d.ts +2 -2
  255. package/dist/redux/unitV1/unitV1Endpoints.d.ts +9 -9
  256. package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +10 -10
  257. package/package.json +3 -3
@@ -0,0 +1,68 @@
1
+ export default class InvoiceV1_Entity {
2
+ static requiredFields: string[];
3
+ constructor(invoiceV1Json?: unknown);
4
+ id?: number;
5
+ number?: number;
6
+ date?: string;
7
+ total?: number;
8
+ baserate?: number;
9
+ fuel_surcharge?: number;
10
+ accessorials?: number;
11
+ adjustments?: number;
12
+ load_id?: number;
13
+ terms_id?: number;
14
+ customer_id?: number;
15
+ bill_to?: number;
16
+ method?: string;
17
+ transaction_made?: boolean;
18
+ open?: boolean;
19
+ inv_cancelled?: boolean;
20
+ closed_date?: string;
21
+ person_id?: number;
22
+ cash_flow?: boolean;
23
+ processed?: boolean;
24
+ follow_up?: boolean;
25
+ manual_invoice?: boolean;
26
+ age?: number;
27
+ ar_balance?: number;
28
+ customer_name?: string;
29
+ applied_payments?: number;
30
+ archer_file_id?: number;
31
+ discount_available?: number;
32
+ customer_reference?: string;
33
+ reference_code?: string;
34
+ total_debits?: number;
35
+ total_payments?: number;
36
+ balance?: number;
37
+ total_credits?: number;
38
+ total_discounts?: number;
39
+ total_adjustments?: number;
40
+ company_id?: number;
41
+ person_name?: string;
42
+ total_discount_available?: number;
43
+ total_credits_q?: number;
44
+ current?: number;
45
+ thiry_fiftynine?: number;
46
+ ach_payment?: boolean;
47
+ sixty_eightynine?: number;
48
+ ninety_plus?: number;
49
+ customer_name_q?: string;
50
+ last_note?: string;
51
+ receive_email?: boolean;
52
+ receive_mail?: boolean;
53
+ receive_upload?: boolean;
54
+ customer_email?: string;
55
+ customer_telephone?: string;
56
+ receive_edi?: boolean;
57
+ delivery_date?: string;
58
+ customer_credit_hold?: boolean;
59
+ claim_paid_amount?: string;
60
+ due_date?: string;
61
+ claim_value_amount?: string;
62
+ terms_name?: string;
63
+ archer_file_token?: string;
64
+ claim_status_id?: number;
65
+ product_type?: string;
66
+ pod_approved?: number;
67
+ customer_ar_tms?: boolean;
68
+ }
@@ -0,0 +1,153 @@
1
+ /**
2
+ * InvoiceV1_Entity type guard.
3
+ *
4
+ * @param {any} invoiceV1Json InvoiceV1 object from API
5
+ * @returns {boolean} Return true if type is InvoiceV1_Entity
6
+ */
7
+ function validator(invoiceV1Json) {
8
+ if (typeof invoiceV1Json === "object" && invoiceV1Json != null) {
9
+ InvoiceV1_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(invoiceV1Json).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class InvoiceV1_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(invoiceV1Json) {
19
+ if (validator(invoiceV1Json)) {
20
+ this.id = invoiceV1Json.id;
21
+ this.number = invoiceV1Json.number;
22
+ this.date = invoiceV1Json.date;
23
+ this.total = invoiceV1Json.total;
24
+ this.baserate = invoiceV1Json.baserate;
25
+ this.fuel_surcharge = invoiceV1Json.fuel_surcharge;
26
+ this.accessorials = invoiceV1Json.accessorials;
27
+ this.adjustments = invoiceV1Json.adjustments;
28
+ this.load_id = invoiceV1Json.load_id;
29
+ this.terms_id = invoiceV1Json.terms_id;
30
+ this.customer_id = invoiceV1Json.customer_id;
31
+ this.bill_to = invoiceV1Json.bill_to;
32
+ this.method = invoiceV1Json.method;
33
+ this.transaction_made = invoiceV1Json.transaction_made;
34
+ this.open = invoiceV1Json.open;
35
+ this.inv_cancelled = invoiceV1Json.inv_cancelled;
36
+ this.closed_date = invoiceV1Json.closed_date;
37
+ this.person_id = invoiceV1Json.person_id;
38
+ this.cash_flow = invoiceV1Json.cash_flow;
39
+ this.processed = invoiceV1Json.processed;
40
+ this.follow_up = invoiceV1Json.follow_up;
41
+ this.manual_invoice = invoiceV1Json.manual_invoice;
42
+ this.age = invoiceV1Json.age;
43
+ this.ar_balance = invoiceV1Json.ar_balance;
44
+ this.customer_name = invoiceV1Json.customer_name;
45
+ this.applied_payments = invoiceV1Json.applied_payments;
46
+ this.archer_file_id = invoiceV1Json.archer_file_id;
47
+ this.discount_available = invoiceV1Json.discount_available;
48
+ this.customer_reference = invoiceV1Json.customer_reference;
49
+ this.reference_code = invoiceV1Json.reference_code;
50
+ this.total_debits = invoiceV1Json.total_debits;
51
+ this.total_payments = invoiceV1Json.total_payments;
52
+ this.balance = invoiceV1Json.balance;
53
+ this.total_credits = invoiceV1Json.total_credits;
54
+ this.total_discounts = invoiceV1Json.total_discounts;
55
+ this.total_adjustments = invoiceV1Json.total_adjustments;
56
+ this.company_id = invoiceV1Json.company_id;
57
+ this.person_name = invoiceV1Json.person_name;
58
+ this.total_discount_available = invoiceV1Json.total_discount_available;
59
+ this.total_credits_q = invoiceV1Json.total_credits_q;
60
+ this.current = invoiceV1Json.current;
61
+ this.thiry_fiftynine = invoiceV1Json.thiry_fiftynine;
62
+ this.ach_payment = invoiceV1Json.ach_payment;
63
+ this.sixty_eightynine = invoiceV1Json.sixty_eightynine;
64
+ this.ninety_plus = invoiceV1Json.ninety_plus;
65
+ this.customer_name_q = invoiceV1Json.customer_name_q;
66
+ this.last_note = invoiceV1Json.last_note;
67
+ this.receive_email = invoiceV1Json.receive_email;
68
+ this.receive_mail = invoiceV1Json.receive_mail;
69
+ this.receive_upload = invoiceV1Json.receive_upload;
70
+ this.customer_email = invoiceV1Json.customer_email;
71
+ this.customer_telephone = invoiceV1Json.customer_telephone;
72
+ this.receive_edi = invoiceV1Json.receive_edi;
73
+ this.delivery_date = invoiceV1Json.delivery_date;
74
+ this.customer_credit_hold = invoiceV1Json.customer_credit_hold;
75
+ this.claim_paid_amount = invoiceV1Json.claim_paid_amount;
76
+ this.due_date = invoiceV1Json.due_date;
77
+ this.claim_value_amount = invoiceV1Json.claim_value_amount;
78
+ this.terms_name = invoiceV1Json.terms_name;
79
+ this.archer_file_token = invoiceV1Json.archer_file_token;
80
+ this.claim_status_id = invoiceV1Json.claim_status_id;
81
+ this.product_type = invoiceV1Json.product_type;
82
+ this.pod_approved = invoiceV1Json.pod_approved;
83
+ this.customer_ar_tms = invoiceV1Json.customer_ar_tms;
84
+ }
85
+ else
86
+ throw new Error(`Failed to create new instance of ${InvoiceV1_Entity.name}`);
87
+ }
88
+ id;
89
+ number;
90
+ date;
91
+ total;
92
+ baserate;
93
+ fuel_surcharge;
94
+ accessorials;
95
+ adjustments;
96
+ load_id;
97
+ terms_id;
98
+ customer_id;
99
+ bill_to;
100
+ method;
101
+ transaction_made;
102
+ open;
103
+ inv_cancelled;
104
+ closed_date;
105
+ person_id;
106
+ cash_flow;
107
+ processed;
108
+ follow_up;
109
+ manual_invoice;
110
+ age;
111
+ ar_balance;
112
+ customer_name;
113
+ applied_payments;
114
+ archer_file_id;
115
+ discount_available;
116
+ customer_reference;
117
+ reference_code;
118
+ total_debits;
119
+ total_payments;
120
+ balance;
121
+ total_credits;
122
+ total_discounts;
123
+ total_adjustments;
124
+ company_id;
125
+ person_name;
126
+ total_discount_available;
127
+ total_credits_q;
128
+ current;
129
+ thiry_fiftynine;
130
+ ach_payment;
131
+ sixty_eightynine;
132
+ ninety_plus;
133
+ customer_name_q;
134
+ last_note;
135
+ receive_email;
136
+ receive_mail;
137
+ receive_upload;
138
+ customer_email;
139
+ customer_telephone;
140
+ receive_edi;
141
+ delivery_date;
142
+ customer_credit_hold;
143
+ claim_paid_amount;
144
+ due_date;
145
+ claim_value_amount;
146
+ terms_name;
147
+ archer_file_token;
148
+ claim_status_id;
149
+ product_type;
150
+ pod_approved;
151
+ customer_ar_tms;
152
+ }
153
+ //# sourceMappingURL=invoiceV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoiceV1.js","sourceRoot":"","sources":["../../../src/entities/invoiceV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W,CAAU;IACrB,wBAAwB,CAAU;IAClC,eAAe,CAAU;IACzB,OAAO,CAAU;IACjB,eAAe,CAAU;IACzB,WAAW,CAAW;IACtB,gBAAgB,CAAU;IAC1B,WAAW,CAAU;IACrB,eAAe,CAAU;IACzB,SAAS,CAAU;IACnB,aAAa,CAAW;IACxB,YAAY,CAAW;IACvB,cAAc,CAAW;IACzB,cAAc,CAAU;IACxB,kBAAkB,CAAU;IAC5B,WAAW,CAAW;IACtB,aAAa,CAAU;IACvB,oBAAoB,CAAW;IAC/B,iBAAiB,CAAU;IAC3B,QAAQ,CAAU;IAClB,kBAAkB,CAAU;IAC5B,UAAU,CAAU;IACpB,iBAAiB,CAAU;IAC3B,eAAe,CAAU;IACzB,YAAY,CAAU;IACtB,YAAY,CAAU;IACtB,eAAe,CAAW"}
@@ -109,4 +109,5 @@ export default class Load_Entity {
109
109
  person_ids?: number[];
110
110
  nmfcClassID?: number;
111
111
  companyID?: number;
112
+ invoiceID?: number;
112
113
  }
@@ -126,6 +126,7 @@ export default class Load_Entity {
126
126
  this.person_ids = loadJson.person_ids;
127
127
  this.nmfcClassID = loadJson.nmfcClassID;
128
128
  this.companyID = loadJson.companyID;
129
+ this.invoiceID = loadJson.invoiceID;
129
130
  }
130
131
  else {
131
132
  throw new Error("Failed to create new instance of ${ Load_Entity.name }: ${e}");
@@ -240,5 +241,6 @@ export default class Load_Entity {
240
241
  person_ids;
241
242
  nmfcClassID;
242
243
  companyID;
244
+ invoiceID;
243
245
  }
244
246
  //# sourceMappingURL=load.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"load.js","sourceRoot":"","sources":["../../../src/entities/load/load.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,QAAiB;IAClC,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,IAAI,IAAI,EAAE;QACpD,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7C,IAAI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;IAChC,eAAe,CAAU;IACzB,aAAa,CAAU;IACvB,aAAa,CAAU;IACvB,aAAa,CAAU;IACvB,oBAAoB,CAAW;IAC/B,OAAO,CAAU;IACjB,UAAU,CAAW;IACrB,eAAe,CAAW;IAC1B,SAAS,CAAW;IACpB,SAAS,CAAW;IACpB,UAAU,CAAY;IACtB,WAAW,CAAU;IACrB,SAAS,CAAU;IACnB,SAAS,CAAU"}
@@ -0,0 +1,5 @@
1
+ import Payment_Entity from "./payment";
2
+ export default class Payment extends Payment_Entity {
3
+ static fromList(paymentsJSON: unknown): Array<Payment>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import Payment_Entity from "./payment";
2
+ export default class Payment extends Payment_Entity {
3
+ static fromList(paymentsJSON) {
4
+ const payments = [];
5
+ if (paymentsJSON)
6
+ Array.isArray(paymentsJSON) &&
7
+ paymentsJSON.forEach((paymentJSON) => {
8
+ payments.push(new Payment(paymentJSON));
9
+ });
10
+ return payments;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/payment/helper.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,WAAW,CAAC;AACvC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,cAAc;IACjD,MAAM,CAAC,QAAQ,CAAC,YAAqB;QACnC,MAAM,QAAQ,GAAc,EAAE,CAAC;QAC/B,IAAI,YAAY;YACd,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;gBACzB,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;oBACnC,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;gBAC1C,CAAC,CAAC,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as Payment } from "./helper";
2
+ export { default as Payment_Entity } from "./payment";
@@ -0,0 +1,3 @@
1
+ export { default as Payment } from "./helper";
2
+ export { default as Payment_Entity } from "./payment";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/payment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,13 @@
1
+ export default class Payment_Entity {
2
+ static requiredFields: string[];
3
+ constructor(paymentJson: unknown);
4
+ id: number;
5
+ paymentID: number;
6
+ invoiceID: number;
7
+ amount: number;
8
+ discount: number;
9
+ date: string;
10
+ memo: string;
11
+ createdAt: string;
12
+ updatedAt: string;
13
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Payment_Entity type guard.
3
+ *
4
+ * @param {any} paymentJson Payment object from API
5
+ * @returns {boolean} Return true if type is Payment_Entity
6
+ */
7
+ function validator(paymentJson) {
8
+ if (typeof paymentJson === "object" && paymentJson != null) {
9
+ Payment_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(paymentJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class Payment_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(paymentJson) {
19
+ if (validator(paymentJson)) {
20
+ this.id = paymentJson.id;
21
+ this.createdAt = paymentJson.createdAt;
22
+ this.updatedAt = paymentJson.updatedAt;
23
+ this.paymentID = paymentJson.paymentID;
24
+ this.invoiceID = paymentJson.invoiceID;
25
+ this.amount = paymentJson.amount;
26
+ this.discount = paymentJson.discount;
27
+ this.date = paymentJson.date;
28
+ this.memo = paymentJson.memo;
29
+ }
30
+ else
31
+ throw new Error(`Failed to create new instance of ${Payment_Entity.name}`);
32
+ }
33
+ id;
34
+ paymentID;
35
+ invoiceID;
36
+ amount;
37
+ discount;
38
+ date;
39
+ memo;
40
+ createdAt;
41
+ updatedAt;
42
+ }
43
+ //# sourceMappingURL=payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../src/entities/payment/payment.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,WAAoB;IACrC,IAAI,OAAO,WAAW,KAAK,QAAQ,IAAI,WAAW,IAAI,IAAI,EAAE;QAC1D,cAAc,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAChD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC7C,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,WAAoB;QAC9B,IAAI,SAAS,CAAC,WAAW,CAAC,EAAE;YAC1B,IAAI,CAAC,EAAE,GAAG,WAAW,CAAC,EAAE,CAAC;YACzB,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;YACvC,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;YACvC,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;YACvC,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;YACvC,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;YACjC,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;YACrC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;YAC7B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;SAC9B;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,cAAc,CAAC,IAAI,EAAE,CAC1D,CAAC;IACN,CAAC;IAED,EAAE,CAAS;IACX,SAAS,CAAS;IAClB,SAAS,CAAS;IAClB,MAAM,CAAS;IACf,QAAQ,CAAS;IACjB,IAAI,CAAS;IACb,IAAI,CAAS;IACb,SAAS,CAAS;IAClB,SAAS,CAAS"}
@@ -0,0 +1,5 @@
1
+ import Transaction_Entity from "./transaction";
2
+ export default class Transaction extends Transaction_Entity {
3
+ static fromList(transactionsJSON: unknown): Array<Transaction>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import Transaction_Entity from "./transaction";
2
+ export default class Transaction extends Transaction_Entity {
3
+ static fromList(transactionsJSON) {
4
+ const transactions = [];
5
+ if (transactionsJSON)
6
+ Array.isArray(transactionsJSON) &&
7
+ transactionsJSON.forEach((transactionJSON) => {
8
+ transactions.push(new Transaction(transactionJSON));
9
+ });
10
+ return transactions;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/transaction/helper.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,eAAe,CAAC;AAC/C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,kBAAkB;IACzD,MAAM,CAAC,QAAQ,CAAC,gBAAyB;QACvC,MAAM,YAAY,GAAkB,EAAE,CAAC;QACvC,IAAI,gBAAgB;YAClB,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC;gBAC7B,gBAAgB,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,EAAE;oBAC3C,YAAY,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC;gBACtD,CAAC,CAAC,CAAC;QACP,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as Transaction } from "./helper";
2
+ export { default as Transaction_Entity } from "./transaction";
@@ -0,0 +1,3 @@
1
+ export { default as Transaction } from "./helper";
2
+ export { default as Transaction_Entity } from "./transaction";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,16 @@
1
+ export default class Transaction_Entity {
2
+ static requiredFields: string[];
3
+ constructor(transactionJson: unknown);
4
+ id: number;
5
+ commercialDocumentType: string;
6
+ commercialDocumentID: number;
7
+ date: string;
8
+ description: string;
9
+ account: string;
10
+ account_type: string;
11
+ amountID: number;
12
+ debit: number;
13
+ credit: number;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Transaction_Entity type guard.
3
+ *
4
+ * @param {any} transactionJson Transaction object from API
5
+ * @returns {boolean} Return true if type is Transaction_Entity
6
+ */
7
+ function validator(transactionJson) {
8
+ if (typeof transactionJson === "object" && transactionJson != null) {
9
+ Transaction_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(transactionJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class Transaction_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(transactionJson) {
19
+ if (validator(transactionJson)) {
20
+ this.id = transactionJson.id;
21
+ this.createdAt = transactionJson.createdAt;
22
+ this.updatedAt = transactionJson.updatedAt;
23
+ this.commercialDocumentType = transactionJson.commercialDocumentType;
24
+ this.commercialDocumentID = transactionJson.commercialDocumentID;
25
+ this.date = transactionJson.date;
26
+ this.description = transactionJson.description;
27
+ this.account = transactionJson.account;
28
+ this.account_type = transactionJson.account_type;
29
+ this.amountID = transactionJson.amountID;
30
+ this.debit = transactionJson.debit;
31
+ this.credit = transactionJson.credit;
32
+ }
33
+ else
34
+ throw new Error(`Failed to create new instance of ${Transaction_Entity.name}`);
35
+ }
36
+ id;
37
+ commercialDocumentType;
38
+ commercialDocumentID;
39
+ date;
40
+ description;
41
+ account;
42
+ account_type;
43
+ amountID;
44
+ debit;
45
+ credit;
46
+ createdAt;
47
+ updatedAt;
48
+ }
49
+ //# sourceMappingURL=transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/entities/transaction/transaction.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,eAAwB;IAExB,IAAI,OAAO,eAAe,KAAK,QAAQ,IAAI,eAAe,IAAI,IAAI,EAAE;QAClE,kBAAkB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACpD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACjD,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACrC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,eAAwB;QAClC,IAAI,SAAS,CAAC,eAAe,CAAC,EAAE;YAC9B,IAAI,CAAC,EAAE,GAAG,eAAe,CAAC,EAAE,CAAC;YAC7B,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC;YAC3C,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC;YAC3C,IAAI,CAAC,sBAAsB,GAAG,eAAe,CAAC,sBAAsB,CAAC;YACrE,IAAI,CAAC,oBAAoB,GAAG,eAAe,CAAC,oBAAoB,CAAC;YACjE,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;YACjC,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC;YAC/C,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC;YACvC,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC,YAAY,CAAC;YACjD,IAAI,CAAC,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC;YACzC,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC;YACnC,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;SACtC;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,kBAAkB,CAAC,IAAI,EAAE,CAC9D,CAAC;IACN,CAAC;IAED,EAAE,CAAS;IACX,sBAAsB,CAAS;IAC/B,oBAAoB,CAAS;IAC7B,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,OAAO,CAAS;IAChB,YAAY,CAAS;IACrB,QAAQ,CAAS;IACjB,KAAK,CAAS;IACd,MAAM,CAAS;IACf,SAAS,CAAS;IAClB,SAAS,CAAS"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button, FormControl, FormLabel, Input, Typography, Grid, Checkbox, CircularProgress, Select, Option, FormHelperText, Modal, ModalDialog, Textarea, Tabs, TabList, tabClasses, Tab, TabPanel, Box, useTheme, Autocomplete, } from "@mui/joy";
3
- import { NerdClickToCopy, NerdDatePicker, NerdFileUpload, NerdPhoneField, NerdTimePicker, useNerdConfirm, } from "@nerdjs/nerd-ui";
3
+ import { NerdClickToCopy, NerdCurrencyFieldDataGridAdapter, NerdDatePicker, NerdFileUpload, NerdPhoneField, NerdTimePicker, useNerdConfirm, } from "@nerdjs/nerd-ui";
4
4
  import { useEffect, useMemo, useState } from "react";
5
5
  import { useTranslation } from "react-i18next";
6
6
  import { useDispatch, useSelector } from "react-redux";
@@ -12,6 +12,7 @@ import { Cancel, Delete, Edit, OpenInNew, Save } from "@mui/icons-material";
12
12
  import { useMediaQuery, Select as MuiSelect, MenuItem } from "@mui/material";
13
13
  import { DataGridPremium, GridActionsCellItem, GridRowEditStopReasons, GridRowModes, useGridApiContext, } from "@mui/x-data-grid-premium";
14
14
  import { useDeleteArcherFileMutation, useGetArcherFilesQuery, useShareArcherFileMutation, useUnshareArcherFileMutation, useUploadArcherFileMutation, } from "../../redux/archerFile";
15
+ import { usdFormatter } from "../quote";
15
16
  /**
16
17
  *
17
18
  * @param {object} props props
@@ -153,7 +154,7 @@ export function LocationFormSales({ onCreateLocation, }) {
153
154
  setLoadingMapsLocations(false);
154
155
  });
155
156
  };
156
- return (_jsx(Modal, { open: open, onClose: handleClose, onClick: (event) => event.stopPropagation(), children: _jsx(ModalDialog, { layout: matches ? "fullscreen" : "center", "aria-labelledby": "edit-location-modal-dialog-title", children: loading ? (_jsx(Box, { sx: {
157
+ return (_jsx(Modal, { open: open, onClose: handleClose, children: _jsx(ModalDialog, { layout: matches ? "fullscreen" : "center", "aria-labelledby": "edit-location-modal-dialog-title", children: loading ? (_jsx(Box, { sx: {
157
158
  display: "flex",
158
159
  justifyContent: "center",
159
160
  alignItems: "center",
@@ -257,7 +258,9 @@ export function LocationFormSales({ onCreateLocation, }) {
257
258
  ...l,
258
259
  first_come_first_serve: e.target.checked,
259
260
  }));
260
- } }) }), _jsx(Grid, { lg: 5, children: _jsx(NerdDatePicker, { value: location.first_come_date
261
+ } }) }), _jsx(Grid, { lg: 5, children: _jsx(NerdDatePicker, { inputProps: {
262
+ size: "sm",
263
+ }, value: location.first_come_date
261
264
  ? DateTime.fromISO(location.first_come_date)
262
265
  : null, onChange: (newDate) => {
263
266
  setLocation((l) => ({
@@ -272,6 +275,7 @@ export function LocationFormSales({ onCreateLocation, }) {
272
275
  sx: {
273
276
  width: 100,
274
277
  },
278
+ size: "sm",
275
279
  slotProps: {
276
280
  input: {
277
281
  sx: {
@@ -318,6 +322,7 @@ export function LocationFormSales({ onCreateLocation, }) {
318
322
  sx: {
319
323
  width: 100,
320
324
  },
325
+ size: "sm",
321
326
  slotProps: {
322
327
  input: {
323
328
  sx: {
@@ -411,6 +416,7 @@ export function LocationFormSales({ onCreateLocation, }) {
411
416
  sx: {
412
417
  width: 100,
413
418
  },
419
+ size: "sm",
414
420
  }, label: "Open Time", value: location.time_from
415
421
  ? DateTime.fromISO(location.time_from)
416
422
  .toUTC()
@@ -450,6 +456,7 @@ export function LocationFormSales({ onCreateLocation, }) {
450
456
  sx: {
451
457
  width: 100,
452
458
  },
459
+ size: "sm",
453
460
  }, label: "Close Time", value: location.time_to
454
461
  ? DateTime.fromISO(location.time_to)
455
462
  .toUTC()
@@ -623,6 +630,18 @@ function LocationAccessoralsList({ locationID }) {
623
630
  type: "number",
624
631
  flex: 1,
625
632
  editable: true,
633
+ renderEditCell(params) {
634
+ return _jsx(NerdCurrencyFieldDataGridAdapter, { cellParams: params });
635
+ },
636
+ valueSetter(params) {
637
+ return {
638
+ ...params.row,
639
+ cost_amount: params.value !== undefined ? params.value : 0,
640
+ };
641
+ },
642
+ renderCell(params) {
643
+ return usdFormatter.format(params.value);
644
+ },
626
645
  },
627
646
  {
628
647
  field: "load_type",