@things-factory/sales-base 5.0.13 → 6.0.0-alpha.1

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 (330) hide show
  1. package/dist-server/constants/order.js +4 -1
  2. package/dist-server/constants/order.js.map +1 -1
  3. package/dist-server/constants/release-good.js +5 -1
  4. package/dist-server/constants/release-good.js.map +1 -1
  5. package/dist-server/controllers/ecommerce/ecommerce-controller.js +1 -1
  6. package/dist-server/controllers/ecommerce/ecommerce-controller.js.map +1 -1
  7. package/dist-server/controllers/ecommerce/sellercraft-controller.js +102 -94
  8. package/dist-server/controllers/ecommerce/sellercraft-controller.js.map +1 -1
  9. package/dist-server/controllers/order-controller.js +7 -5
  10. package/dist-server/controllers/order-controller.js.map +1 -1
  11. package/dist-server/service/arrival-notice/arrival-notice-mutation.js +152 -65
  12. package/dist-server/service/arrival-notice/arrival-notice-mutation.js.map +1 -1
  13. package/dist-server/service/arrival-notice/arrival-notice-query.js +15 -16
  14. package/dist-server/service/arrival-notice/arrival-notice-query.js.map +1 -1
  15. package/dist-server/service/arrival-notice/arrival-notice-types.js +1 -2
  16. package/dist-server/service/arrival-notice/arrival-notice-types.js.map +1 -1
  17. package/dist-server/service/arrival-notice/arrival-notice.js +7 -7
  18. package/dist-server/service/arrival-notice/arrival-notice.js.map +1 -1
  19. package/dist-server/service/claim/claim-mutation.js +15 -14
  20. package/dist-server/service/claim/claim-mutation.js.map +1 -1
  21. package/dist-server/service/claim/claim-query.js +8 -10
  22. package/dist-server/service/claim/claim-query.js.map +1 -1
  23. package/dist-server/service/claim/claim.js +7 -7
  24. package/dist-server/service/claim/claim.js.map +1 -1
  25. package/dist-server/service/claim-detail/claim-detail-mutation.js +9 -8
  26. package/dist-server/service/claim-detail/claim-detail-mutation.js.map +1 -1
  27. package/dist-server/service/claim-detail/claim-detail-query.js +9 -10
  28. package/dist-server/service/claim-detail/claim-detail-query.js.map +1 -1
  29. package/dist-server/service/claim-detail/claim-detail.js +3 -4
  30. package/dist-server/service/claim-detail/claim-detail.js.map +1 -1
  31. package/dist-server/service/claim-order/claim-order-mutation.js +9 -8
  32. package/dist-server/service/claim-order/claim-order-mutation.js.map +1 -1
  33. package/dist-server/service/claim-order/claim-order-query.js +9 -10
  34. package/dist-server/service/claim-order/claim-order-query.js.map +1 -1
  35. package/dist-server/service/claim-order/claim-order.js +3 -4
  36. package/dist-server/service/claim-order/claim-order.js.map +1 -1
  37. package/dist-server/service/collection-order/collection-order-mutation.js +15 -14
  38. package/dist-server/service/collection-order/collection-order-mutation.js.map +1 -1
  39. package/dist-server/service/collection-order/collection-order-query.js +14 -14
  40. package/dist-server/service/collection-order/collection-order-query.js.map +1 -1
  41. package/dist-server/service/collection-order/collection-order-types.js +4 -5
  42. package/dist-server/service/collection-order/collection-order-types.js.map +1 -1
  43. package/dist-server/service/collection-order/collection-order.js +7 -7
  44. package/dist-server/service/collection-order/collection-order.js.map +1 -1
  45. package/dist-server/service/delivery-order/delivery-order-mutation.js +138 -51
  46. package/dist-server/service/delivery-order/delivery-order-mutation.js.map +1 -1
  47. package/dist-server/service/delivery-order/delivery-order-query.js +51 -38
  48. package/dist-server/service/delivery-order/delivery-order-query.js.map +1 -1
  49. package/dist-server/service/delivery-order/delivery-order-types.js +22 -3
  50. package/dist-server/service/delivery-order/delivery-order-types.js.map +1 -1
  51. package/dist-server/service/delivery-order/delivery-order.js +92 -7
  52. package/dist-server/service/delivery-order/delivery-order.js.map +1 -1
  53. package/dist-server/service/draft-release-good/draft-release-good-mutation.js +157 -143
  54. package/dist-server/service/draft-release-good/draft-release-good-mutation.js.map +1 -1
  55. package/dist-server/service/draft-release-good/draft-release-good-query.js +54 -24
  56. package/dist-server/service/draft-release-good/draft-release-good-query.js.map +1 -1
  57. package/dist-server/service/draft-release-good/draft-release-good-type.js +3 -4
  58. package/dist-server/service/draft-release-good/draft-release-good-type.js.map +1 -1
  59. package/dist-server/service/draft-release-good/draft-release-good.js +11 -6
  60. package/dist-server/service/draft-release-good/draft-release-good.js.map +1 -1
  61. package/dist-server/service/goods-receival-note/goods-receival-note-mutation.js +12 -11
  62. package/dist-server/service/goods-receival-note/goods-receival-note-mutation.js.map +1 -1
  63. package/dist-server/service/goods-receival-note/goods-receival-note-query.js +104 -12
  64. package/dist-server/service/goods-receival-note/goods-receival-note-query.js.map +1 -1
  65. package/dist-server/service/goods-receival-note/goods-receival-note-types.js +67 -4
  66. package/dist-server/service/goods-receival-note/goods-receival-note-types.js.map +1 -1
  67. package/dist-server/service/goods-receival-note/goods-receival-note.js +46 -5
  68. package/dist-server/service/goods-receival-note/goods-receival-note.js.map +1 -1
  69. package/dist-server/service/inventory-check/inventory-check-mutation.js +6 -6
  70. package/dist-server/service/inventory-check/inventory-check-mutation.js.map +1 -1
  71. package/dist-server/service/inventory-check/inventory-check-query.js +8 -10
  72. package/dist-server/service/inventory-check/inventory-check-query.js.map +1 -1
  73. package/dist-server/service/inventory-check/inventory-check.js +5 -5
  74. package/dist-server/service/inventory-check/inventory-check.js.map +1 -1
  75. package/dist-server/service/invoice/invoice-mutation.js +5 -5
  76. package/dist-server/service/invoice/invoice-mutation.js.map +1 -1
  77. package/dist-server/service/invoice/invoice-query.js +7 -9
  78. package/dist-server/service/invoice/invoice-query.js.map +1 -1
  79. package/dist-server/service/invoice/invoice-types.js +2 -3
  80. package/dist-server/service/invoice/invoice-types.js.map +1 -1
  81. package/dist-server/service/invoice/invoice.js +3 -4
  82. package/dist-server/service/invoice/invoice.js.map +1 -1
  83. package/dist-server/service/invoice-product/invoice-product-mutation.js +1 -1
  84. package/dist-server/service/invoice-product/invoice-product-mutation.js.map +1 -1
  85. package/dist-server/service/invoice-product/invoice-product-query.js +7 -9
  86. package/dist-server/service/invoice-product/invoice-product-query.js.map +1 -1
  87. package/dist-server/service/invoice-product/invoice-product.js +5 -5
  88. package/dist-server/service/invoice-product/invoice-product.js.map +1 -1
  89. package/dist-server/service/job-sheet/job-sheet-mutation.js +5 -5
  90. package/dist-server/service/job-sheet/job-sheet-mutation.js.map +1 -1
  91. package/dist-server/service/job-sheet/job-sheet-query.js +6 -8
  92. package/dist-server/service/job-sheet/job-sheet-query.js.map +1 -1
  93. package/dist-server/service/job-sheet/job-sheet.js +5 -5
  94. package/dist-server/service/job-sheet/job-sheet.js.map +1 -1
  95. package/dist-server/service/manifest/manifest-mutation.js +84 -4
  96. package/dist-server/service/manifest/manifest-mutation.js.map +1 -1
  97. package/dist-server/service/manifest/manifest-query.js +52 -19
  98. package/dist-server/service/manifest/manifest-query.js.map +1 -1
  99. package/dist-server/service/manifest/manifest-type.js +8 -0
  100. package/dist-server/service/manifest/manifest-type.js.map +1 -1
  101. package/dist-server/service/manifest/manifest.js +8 -4
  102. package/dist-server/service/manifest/manifest.js.map +1 -1
  103. package/dist-server/service/order-inventory/order-inventory-mutation.js +3 -3
  104. package/dist-server/service/order-inventory/order-inventory-mutation.js.map +1 -1
  105. package/dist-server/service/order-inventory/order-inventory-query.js +202 -221
  106. package/dist-server/service/order-inventory/order-inventory-query.js.map +1 -1
  107. package/dist-server/service/order-inventory/order-inventory-types.js +15 -15
  108. package/dist-server/service/order-inventory/order-inventory-types.js.map +1 -1
  109. package/dist-server/service/order-inventory/order-inventory.js +45 -15
  110. package/dist-server/service/order-inventory/order-inventory.js.map +1 -1
  111. package/dist-server/service/order-product/order-product-mutation.js +2 -2
  112. package/dist-server/service/order-product/order-product-mutation.js.map +1 -1
  113. package/dist-server/service/order-product/order-product-query.js +44 -14
  114. package/dist-server/service/order-product/order-product-query.js.map +1 -1
  115. package/dist-server/service/order-product/order-product-types.js +18 -19
  116. package/dist-server/service/order-product/order-product-types.js.map +1 -1
  117. package/dist-server/service/order-product/order-product.js +14 -11
  118. package/dist-server/service/order-product/order-product.js.map +1 -1
  119. package/dist-server/service/order-tote/order-tote-mutation.js +2 -2
  120. package/dist-server/service/order-tote/order-tote-mutation.js.map +1 -1
  121. package/dist-server/service/order-tote/order-tote-query.js +13 -14
  122. package/dist-server/service/order-tote/order-tote-query.js.map +1 -1
  123. package/dist-server/service/order-tote/order-tote-types.js +4 -5
  124. package/dist-server/service/order-tote/order-tote-types.js.map +1 -1
  125. package/dist-server/service/order-tote/order-tote.js +6 -5
  126. package/dist-server/service/order-tote/order-tote.js.map +1 -1
  127. package/dist-server/service/order-tote-item/order-tote-item-mutation.js +2 -2
  128. package/dist-server/service/order-tote-item/order-tote-item-mutation.js.map +1 -1
  129. package/dist-server/service/order-tote-item/order-tote-item-query.js +7 -9
  130. package/dist-server/service/order-tote-item/order-tote-item-query.js.map +1 -1
  131. package/dist-server/service/order-tote-item/order-tote-item-types.js +5 -6
  132. package/dist-server/service/order-tote-item/order-tote-item-types.js.map +1 -1
  133. package/dist-server/service/order-tote-item/order-tote-item.js +2 -3
  134. package/dist-server/service/order-tote-item/order-tote-item.js.map +1 -1
  135. package/dist-server/service/order-tote-seal/order-tote-seal-mutation.js +2 -2
  136. package/dist-server/service/order-tote-seal/order-tote-seal-mutation.js.map +1 -1
  137. package/dist-server/service/order-tote-seal/order-tote-seal-query.js +8 -10
  138. package/dist-server/service/order-tote-seal/order-tote-seal-query.js.map +1 -1
  139. package/dist-server/service/order-tote-seal/order-tote-seal-types.js +2 -3
  140. package/dist-server/service/order-tote-seal/order-tote-seal-types.js.map +1 -1
  141. package/dist-server/service/order-tote-seal/order-tote-seal.js +2 -3
  142. package/dist-server/service/order-tote-seal/order-tote-seal.js.map +1 -1
  143. package/dist-server/service/order-vas/order-vas-mutation.js +1 -1
  144. package/dist-server/service/order-vas/order-vas-mutation.js.map +1 -1
  145. package/dist-server/service/order-vas/order-vas-query.js +8 -10
  146. package/dist-server/service/order-vas/order-vas-query.js.map +1 -1
  147. package/dist-server/service/order-vas/order-vas-types.js +16 -17
  148. package/dist-server/service/order-vas/order-vas-types.js.map +1 -1
  149. package/dist-server/service/order-vas/order-vas.js +7 -7
  150. package/dist-server/service/order-vas/order-vas.js.map +1 -1
  151. package/dist-server/service/others/other-query.js +48 -30
  152. package/dist-server/service/others/other-query.js.map +1 -1
  153. package/dist-server/service/purchase-order/purchase-order-mutation.js +36 -34
  154. package/dist-server/service/purchase-order/purchase-order-mutation.js.map +1 -1
  155. package/dist-server/service/purchase-order/purchase-order-query.js +11 -12
  156. package/dist-server/service/purchase-order/purchase-order-query.js.map +1 -1
  157. package/dist-server/service/purchase-order/purchase-order-types.js +8 -9
  158. package/dist-server/service/purchase-order/purchase-order-types.js.map +1 -1
  159. package/dist-server/service/purchase-order/purchase-order.js +8 -8
  160. package/dist-server/service/purchase-order/purchase-order.js.map +1 -1
  161. package/dist-server/service/purchase-order-other-charge/purchase-order-other-charge-mutation.js +1 -1
  162. package/dist-server/service/purchase-order-other-charge/purchase-order-other-charge-mutation.js.map +1 -1
  163. package/dist-server/service/purchase-order-other-charge/purchase-order-other-charge-query.js +9 -10
  164. package/dist-server/service/purchase-order-other-charge/purchase-order-other-charge-query.js.map +1 -1
  165. package/dist-server/service/purchase-order-other-charge/purchase-order-other-charge.js +3 -4
  166. package/dist-server/service/purchase-order-other-charge/purchase-order-other-charge.js.map +1 -1
  167. package/dist-server/service/release-good/release-good-mutation.js +182 -94
  168. package/dist-server/service/release-good/release-good-mutation.js.map +1 -1
  169. package/dist-server/service/release-good/release-good-query.js +251 -172
  170. package/dist-server/service/release-good/release-good-query.js.map +1 -1
  171. package/dist-server/service/release-good/release-good-types.js +181 -9
  172. package/dist-server/service/release-good/release-good-types.js.map +1 -1
  173. package/dist-server/service/release-good/release-good.js +64 -13
  174. package/dist-server/service/release-good/release-good.js.map +1 -1
  175. package/dist-server/service/retail-replenishment-order/retail-replenishment-order-mutation.js +19 -14
  176. package/dist-server/service/retail-replenishment-order/retail-replenishment-order-mutation.js.map +1 -1
  177. package/dist-server/service/retail-replenishment-order/retail-replenishment-order-query.js +8 -10
  178. package/dist-server/service/retail-replenishment-order/retail-replenishment-order-query.js.map +1 -1
  179. package/dist-server/service/retail-replenishment-order/retail-replenishment-order-types.js +6 -7
  180. package/dist-server/service/retail-replenishment-order/retail-replenishment-order-types.js.map +1 -1
  181. package/dist-server/service/retail-replenishment-order/retail-replenishment-order.js +5 -5
  182. package/dist-server/service/retail-replenishment-order/retail-replenishment-order.js.map +1 -1
  183. package/dist-server/service/return-order/return-order-mutation.js +38 -27
  184. package/dist-server/service/return-order/return-order-mutation.js.map +1 -1
  185. package/dist-server/service/return-order/return-order-query.js +14 -16
  186. package/dist-server/service/return-order/return-order-query.js.map +1 -1
  187. package/dist-server/service/return-order/return-order-types.js +9 -9
  188. package/dist-server/service/return-order/return-order-types.js.map +1 -1
  189. package/dist-server/service/return-order/return-order.js +6 -6
  190. package/dist-server/service/return-order/return-order.js.map +1 -1
  191. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-mutation.js +17 -13
  192. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-mutation.js.map +1 -1
  193. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-query.js +13 -14
  194. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-query.js.map +1 -1
  195. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-type.js +9 -9
  196. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-type.js.map +1 -1
  197. package/dist-server/service/reverse-kitting-order/reverse-kitting-order.js +8 -8
  198. package/dist-server/service/reverse-kitting-order/reverse-kitting-order.js.map +1 -1
  199. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.js +4 -4
  200. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.js.map +1 -1
  201. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-query.js +7 -9
  202. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-query.js.map +1 -1
  203. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-type.js +4 -5
  204. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-type.js.map +1 -1
  205. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory.js +7 -7
  206. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory.js.map +1 -1
  207. package/dist-server/service/shipping-order/shipping-order-mutation.js +2 -2
  208. package/dist-server/service/shipping-order/shipping-order-mutation.js.map +1 -1
  209. package/dist-server/service/shipping-order/shipping-order-query.js +9 -10
  210. package/dist-server/service/shipping-order/shipping-order-query.js.map +1 -1
  211. package/dist-server/service/shipping-order/shipping-order-types.js +21 -1
  212. package/dist-server/service/shipping-order/shipping-order-types.js.map +1 -1
  213. package/dist-server/service/shipping-order/shipping-order.js +27 -7
  214. package/dist-server/service/shipping-order/shipping-order.js.map +1 -1
  215. package/dist-server/service/transfer-order/transfer-order-mutation.js +19 -14
  216. package/dist-server/service/transfer-order/transfer-order-mutation.js.map +1 -1
  217. package/dist-server/service/transfer-order/transfer-order-query.js +8 -10
  218. package/dist-server/service/transfer-order/transfer-order-query.js.map +1 -1
  219. package/dist-server/service/transfer-order/transfer-order-types.js +1 -2
  220. package/dist-server/service/transfer-order/transfer-order-types.js.map +1 -1
  221. package/dist-server/service/transfer-order/transfer-order.js +5 -5
  222. package/dist-server/service/transfer-order/transfer-order.js.map +1 -1
  223. package/dist-server/service/vas/vas-mutation.js +2 -2
  224. package/dist-server/service/vas/vas-mutation.js.map +1 -1
  225. package/dist-server/service/vas/vas-query.js +8 -10
  226. package/dist-server/service/vas/vas-query.js.map +1 -1
  227. package/dist-server/service/vas/vas.js +3 -4
  228. package/dist-server/service/vas/vas.js.map +1 -1
  229. package/dist-server/service/vas-order/vas-order-mutation.js +20 -15
  230. package/dist-server/service/vas-order/vas-order-mutation.js.map +1 -1
  231. package/dist-server/service/vas-order/vas-order-query.js +11 -12
  232. package/dist-server/service/vas-order/vas-order-query.js.map +1 -1
  233. package/dist-server/service/vas-order/vas-order.js +5 -5
  234. package/dist-server/service/vas-order/vas-order.js.map +1 -1
  235. package/dist-server/tsconfig.tsbuildinfo +1 -1
  236. package/dist-server/utils/datetime-util.js +49 -0
  237. package/dist-server/utils/datetime-util.js.map +1 -0
  238. package/dist-server/utils/index.js +1 -0
  239. package/dist-server/utils/index.js.map +1 -1
  240. package/dist-server/utils/inventory-util.js +89 -29
  241. package/dist-server/utils/inventory-util.js.map +1 -1
  242. package/package.json +13 -13
  243. package/server/constants/order.ts +4 -1
  244. package/server/constants/release-good.ts +6 -3
  245. package/server/controllers/ecommerce/ecommerce-controller.ts +1 -1
  246. package/server/controllers/ecommerce/sellercraft-controller.ts +124 -107
  247. package/server/controllers/order-controller.ts +7 -5
  248. package/server/service/arrival-notice/arrival-notice-mutation.ts +204 -91
  249. package/server/service/arrival-notice/arrival-notice-query.ts +17 -17
  250. package/server/service/claim/claim-mutation.ts +20 -14
  251. package/server/service/claim/claim-query.ts +10 -9
  252. package/server/service/claim-detail/claim-detail-mutation.ts +16 -10
  253. package/server/service/claim-detail/claim-detail-query.ts +13 -8
  254. package/server/service/claim-order/claim-order-mutation.ts +16 -10
  255. package/server/service/claim-order/claim-order-query.ts +10 -8
  256. package/server/service/collection-order/collection-order-mutation.ts +31 -32
  257. package/server/service/collection-order/collection-order-query.ts +18 -15
  258. package/server/service/delivery-order/delivery-order-mutation.ts +206 -73
  259. package/server/service/delivery-order/delivery-order-query.ts +90 -53
  260. package/server/service/delivery-order/delivery-order-types.ts +15 -0
  261. package/server/service/delivery-order/delivery-order.ts +68 -0
  262. package/server/service/draft-release-good/draft-release-good-mutation.ts +208 -183
  263. package/server/service/draft-release-good/draft-release-good-query.ts +81 -44
  264. package/server/service/draft-release-good/draft-release-good.ts +7 -3
  265. package/server/service/goods-receival-note/goods-receival-note-mutation.ts +23 -18
  266. package/server/service/goods-receival-note/goods-receival-note-query.ts +126 -15
  267. package/server/service/goods-receival-note/goods-receival-note-types.ts +48 -0
  268. package/server/service/goods-receival-note/goods-receival-note.ts +32 -0
  269. package/server/service/inventory-check/inventory-check-mutation.ts +24 -19
  270. package/server/service/inventory-check/inventory-check-query.ts +10 -9
  271. package/server/service/invoice/invoice-mutation.ts +14 -11
  272. package/server/service/invoice/invoice-query.ts +8 -9
  273. package/server/service/invoice-product/invoice-product-mutation.ts +4 -4
  274. package/server/service/invoice-product/invoice-product-query.ts +8 -9
  275. package/server/service/job-sheet/job-sheet-mutation.ts +12 -10
  276. package/server/service/job-sheet/job-sheet-query.ts +16 -11
  277. package/server/service/manifest/manifest-mutation.ts +93 -8
  278. package/server/service/manifest/manifest-query.ts +73 -23
  279. package/server/service/manifest/manifest-type.ts +6 -0
  280. package/server/service/manifest/manifest.ts +6 -2
  281. package/server/service/order-inventory/order-inventory-mutation.ts +13 -12
  282. package/server/service/order-inventory/order-inventory-query.ts +226 -253
  283. package/server/service/order-inventory/order-inventory.ts +26 -2
  284. package/server/service/order-product/order-product-mutation.ts +11 -10
  285. package/server/service/order-product/order-product-query.ts +55 -18
  286. package/server/service/order-product/order-product.ts +7 -0
  287. package/server/service/order-tote/order-tote-mutation.ts +10 -9
  288. package/server/service/order-tote/order-tote-query.ts +13 -15
  289. package/server/service/order-tote/order-tote.ts +13 -2
  290. package/server/service/order-tote-item/order-tote-item-mutation.ts +10 -9
  291. package/server/service/order-tote-item/order-tote-item-query.ts +12 -18
  292. package/server/service/order-tote-seal/order-tote-seal-mutation.ts +10 -9
  293. package/server/service/order-tote-seal/order-tote-seal-query.ts +10 -11
  294. package/server/service/order-vas/order-vas-mutation.ts +4 -5
  295. package/server/service/order-vas/order-vas-query.ts +10 -9
  296. package/server/service/others/other-query.ts +76 -54
  297. package/server/service/purchase-order/purchase-order-mutation.ts +46 -46
  298. package/server/service/purchase-order/purchase-order-query.ts +13 -11
  299. package/server/service/purchase-order-other-charge/purchase-order-other-charge-mutation.ts +7 -7
  300. package/server/service/purchase-order-other-charge/purchase-order-other-charge-query.ts +14 -9
  301. package/server/service/release-good/release-good-mutation.ts +297 -134
  302. package/server/service/release-good/release-good-query.ts +268 -186
  303. package/server/service/release-good/release-good-types.ts +132 -4
  304. package/server/service/release-good/release-good.ts +55 -24
  305. package/server/service/retail-replenishment-order/retail-replenishment-order-mutation.ts +35 -29
  306. package/server/service/retail-replenishment-order/retail-replenishment-order-query.ts +13 -9
  307. package/server/service/retail-replenishment-order/retail-replenishment-order-types.ts +7 -5
  308. package/server/service/return-order/return-order-mutation.ts +82 -54
  309. package/server/service/return-order/return-order-query.ts +21 -19
  310. package/server/service/reverse-kitting-order/reverse-kitting-order-mutation.ts +38 -23
  311. package/server/service/reverse-kitting-order/reverse-kitting-order-query.ts +19 -16
  312. package/server/service/reverse-kitting-order/reverse-kitting-order.ts +2 -2
  313. package/server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.ts +9 -9
  314. package/server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-query.ts +7 -8
  315. package/server/service/shipping-order/shipping-order-mutation.ts +11 -11
  316. package/server/service/shipping-order/shipping-order-query.ts +13 -11
  317. package/server/service/shipping-order/shipping-order-types.ts +16 -1
  318. package/server/service/shipping-order/shipping-order.ts +18 -2
  319. package/server/service/transfer-order/transfer-order-mutation.ts +34 -25
  320. package/server/service/transfer-order/transfer-order-query.ts +11 -10
  321. package/server/service/vas/vas-mutation.ts +13 -15
  322. package/server/service/vas/vas-query.ts +12 -10
  323. package/server/service/vas-order/vas-order-mutation.ts +38 -28
  324. package/server/service/vas-order/vas-order-query.ts +15 -13
  325. package/server/utils/datetime-util.ts +54 -0
  326. package/server/utils/index.ts +1 -0
  327. package/server/utils/inventory-util.ts +128 -34
  328. package/translations/en.json +4 -0
  329. package/translations/ko.json +6 -2
  330. package/translations/ms.json +5 -1
@@ -1 +1 @@
1
- {"version":3,"file":"release-good-types.js","sourceRoot":"","sources":["../../../server/service/release-good/release-good-types.ts"],"names":[],"mappings":";;;;;AAAA,+CAAuE;AAEvE,+DAAsD;AACtD,iDAAiD;AACjD,mEAAyD;AAEzD,iFAA2E;AAC3E,oFAA4E;AAC5E,kEAA0D;AAC1D,iDAA4C;AAG5C,IAAa,eAAe,GAA5B,MAAa,eAAe;CAM3B,CAAA;A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B;IAD5B,IAAA,wBAAS,GAAE;GACC,gBAAgB,CAqK5B;AArKY,4CAAgB","sourcesContent":["import { Field, Float, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { Product } from '@things-factory/product-base'\nimport { ObjectRef } from '@things-factory/shell'\nimport { Location } from '@things-factory/warehouse-base'\n\nimport { ArrivalNoticePatch } from '../arrival-notice/arrival-notice-types'\nimport { NewOrderInventory } from '../order-inventory/order-inventory-types'\nimport { NewOrderVas } from '../order-vas/order-vas-types'\nimport { ReleaseGood } from './release-good'\n\n@ObjectType()\nexport class ReleaseGoodList {\n @Field(type => [ReleaseGood], { nullable: true })\n items: ReleaseGood[]\n\n @Field(type => Int, { nullable: false })\n total: number\n}\n\n@ObjectType()\nexport class ReleasableInventoryList {\n @Field(type => [ReleasableInventory], { nullable: true })\n items: ReleasableInventory[]\n\n @Field(type => Int, { nullable: true })\n total: number\n}\n\n@ObjectType()\nexport class ReleasableInventory {\n @Field({ nullable: true })\n batchId: string\n\n @Field({ nullable: true })\n containerNo: string\n\n @Field({ nullable: true })\n packingType: string\n\n @Field(type => Float, { nullable: false })\n remainQty: number\n\n @Field(type => Float, { nullable: true })\n remainWeight: number\n\n @Field(type => Product, { nullable: true })\n product: Product\n\n @Field({ nullable: true })\n productName: string\n}\n\n@ObjectType()\nexport class InventoryInfos {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n batchId?: string\n\n @Field({ nullable: true })\n batchIdRef?: string\n\n @Field({ nullable: true })\n palletId?: string\n\n @Field({ nullable: true })\n productIdRef?: string\n\n @Field({ nullable: true })\n productName?: string\n\n @Field(type => Product, { nullable: true })\n product?: Product\n\n @Field({ nullable: true })\n packingType?: string\n\n @Field(type => Float, { nullable: true })\n packingSize?: number\n\n @Field(type => Int, { nullable: false })\n qty?: number\n\n @Field(type => Float, { nullable: true })\n weight?: number\n\n @Field(type => Float, { nullable: true })\n releaseQty?: number\n\n @Field(type => Float, { nullable: true })\n releaseWeight?: number\n\n @Field({ nullable: true })\n inventoryName?: string\n\n @Field(type => Location, { nullable: true })\n location?: Location\n\n @Field({ nullable: true })\n status?: string\n\n @Field(type => Float, { nullable: true })\n releaseUomValue?: number\n\n @Field(type => Float, { nullable: true })\n uomValue?: number\n\n @Field({ nullable: true })\n uom?: string\n\n @Field(type => Float, { nullable: true })\n returnQty?: number\n\n @Field(type => Float, { nullable: true })\n returnUomValue?: number\n\n @Field({ nullable: true })\n remark?: string\n\n @Field({ nullable: true })\n lockedQty?: number\n\n @Field({ nullable: true })\n lockedUomValue?: number\n}\n\n@ObjectType()\nexport class ShippingOrderInfo {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n containerNo?: string\n\n @Field({ nullable: true })\n containerLeavingDate?: string\n\n @Field({ nullable: true })\n containerArrivalDate?: string\n\n @Field({ nullable: true })\n containerLeavingDateTime?: string\n\n @Field({ nullable: true })\n containerArrivalDateTime?: string\n\n @Field({ nullable: true })\n shipName?: string\n}\n\n@InputType()\nexport class NewReleaseGood {\n @Field({ nullable: true })\n name: string\n\n @Field({ nullable: true })\n bundleInfo: string\n\n @Field({ nullable: true })\n releaseDate: string\n\n @Field({ nullable: true })\n type: string\n\n @Field({ nullable: true })\n releaseDateTime: string\n\n @Field({ nullable: true })\n collectionOrderNo: string\n\n @Field({ nullable: true })\n ownTransport: Boolean\n\n @Field({ nullable: true })\n crossDocking: Boolean\n\n @Field({ nullable: true })\n courierOption: Boolean\n\n @Field({ nullable: true })\n packingOption: Boolean\n\n @Field({ nullable: true })\n packageId: string\n\n @Field({ nullable: true })\n truckNo: string\n\n @Field({ nullable: true })\n refNo: string\n\n @Field({ nullable: true })\n refNo2: string\n\n @Field({ nullable: true })\n refNo3: string\n\n @Field({ nullable: true })\n pickupAddress: string\n\n @Field({ nullable: true })\n pickupTime: string\n\n @Field({ nullable: true })\n handoverType: string\n\n @Field({ nullable: true })\n dropoffAddress: string\n\n @Field({ nullable: true })\n marketplaceOrderStatus: string\n\n @Field({ nullable: true })\n billingAddress: string\n\n @Field({ nullable: true })\n deliveryAddress1: string\n\n @Field({ nullable: true })\n deliveryAddress2: string\n\n @Field({ nullable: true })\n deliveryAddress3: string\n\n @Field({ nullable: true })\n deliveryAddress4: string\n\n @Field({ nullable: true })\n deliveryAddress5: string\n\n @Field({ nullable: true })\n attentionTo: string\n\n @Field({ nullable: true })\n attentionCompany: string\n\n @Field({ nullable: true })\n city: string\n\n @Field({ nullable: true })\n state: string\n\n @Field({ nullable: true })\n postalCode: string\n\n @Field({ nullable: true })\n country: string\n\n @Field({ nullable: true })\n phone1: string\n\n @Field({ nullable: true })\n phone2: string\n\n @Field({ nullable: true })\n email: string\n\n @Field({ nullable: true })\n transporter: string\n\n @Field({ nullable: true })\n trackingNo: string\n\n @Field({ nullable: true })\n airwayBill: string\n\n @Field({ nullable: true })\n invoice: string\n\n @Field(type => ArrivalNoticePatch, { nullable: true })\n arrivalNotice: ArrivalNoticePatch\n\n @Field({ nullable: true })\n ganNo: string\n\n @Field()\n exportOption: Boolean\n\n @Field(type => ObjectRef, { nullable: true })\n shippingOrder: ObjectRef\n\n @Field(type => [NewOrderInventory], { nullable: true })\n orderInventories: NewOrderInventory[]\n\n @Field(type => [NewOrderVas], { nullable: true })\n orderVass: NewOrderVas[]\n\n @Field({ nullable: true })\n status: string\n\n @Field({ nullable: true })\n description: string\n\n @Field({ nullable: true })\n warehouseId: string // outletID\n\n @Field({ nullable: true })\n deliverTo: string\n\n @Field({ nullable: true })\n customerBizplaceId: string\n\n @Field({ nullable: true })\n partnerBizplaceId: string\n\n /* Mainly used for rawReleaseGood*/\n @Field({ nullable: true })\n productId: string\n\n @Field({ nullable: true })\n productDetailId: string\n\n @Field({ nullable: true })\n sku: string\n\n @Field({ nullable: true })\n packingType: string\n\n @Field({ nullable: true })\n packingSize: number\n\n @Field({ nullable: true })\n uom: string\n\n @Field({ nullable: true })\n releaseQty: number\n\n @Field({ nullable: true })\n assignedQty: number\n\n @Field({ nullable: true })\n assignedUomValue: number\n\n @Field(type => Float, { nullable: true })\n remainQty: number\n\n @Field({ nullable: true })\n remainUomValue: number\n\n @Field({ nullable: true })\n remark: string\n\n @Field({ nullable: true })\n errorMsg: string\n\n @Field({ nullable: true })\n storeName: string\n\n @Field({ nullable: true })\n storeId: string\n\n @Field({ nullable: true })\n routeId: string\n\n @Field({ nullable: true })\n stopId: string\n}\n\n@InputType()\nexport class ReleaseGoodPatch {\n @Field({ nullable: true })\n id: string\n\n @Field({ nullable: true })\n name: string\n\n @Field({ nullable: true })\n releaseDate: string\n\n @Field({ nullable: true })\n releaseDateTime: string\n\n @Field({ nullable: true })\n collectionOrderNo: string\n\n @Field({ nullable: true })\n ownTransport: Boolean\n\n @Field({ nullable: true })\n crossDocking: Boolean\n\n @Field({ nullable: true })\n type: string\n\n @Field({ nullable: true })\n truckNo: string\n\n @Field({ nullable: true })\n inventoryId: string\n\n @Field({ nullable: true })\n productId: string\n\n @Field({ nullable: true })\n ganNo: string\n\n @Field(type => ArrivalNoticePatch, { nullable: true })\n arrivalNotice: ArrivalNoticePatch\n\n @Field({ nullable: true })\n packageId: string\n\n @Field({ nullable: true })\n pickupAddress: string\n\n @Field({ nullable: true })\n pickupTime: string\n\n @Field({ nullable: true })\n handoverType: string\n\n @Field({ nullable: true })\n dropoffAddress: string\n\n @Field({ nullable: true })\n refNo: string\n\n @Field({ nullable: true })\n refNo2: string\n\n @Field({ nullable: true })\n refNo3: string\n\n @Field({ nullable: true })\n exportOption: Boolean\n\n @Field({ nullable: true })\n courierOption: Boolean\n\n @Field({ nullable: true })\n packingOption: Boolean\n\n @Field(type => ObjectRef, { nullable: true })\n shippingOrder: ObjectRef\n\n @Field(type => [ObjectRef], { nullable: true })\n deliveryOrders: ObjectRef[]\n\n @Field(type => [ObjectRef], { nullable: true })\n orderInventories: ObjectRef[]\n\n @Field(type => [ObjectRef], { nullable: true })\n orderVass: ObjectRef[]\n\n @Field({ nullable: true })\n status: string\n\n @Field({ nullable: true })\n remark: string\n\n @Field({ nullable: true })\n marketplaceOrderStatus: string\n\n @Field({ nullable: true })\n billingAddress: string\n\n @Field({ nullable: true })\n deliveryAddress1: string\n\n @Field({ nullable: true })\n deliveryAddress2: string\n\n @Field({ nullable: true })\n deliveryAddress3: string\n\n @Field({ nullable: true })\n deliveryAddress4: string\n\n @Field({ nullable: true })\n deliveryAddress5: string\n\n @Field({ nullable: true })\n attentionTo: string\n\n @Field({ nullable: true })\n attentionCompany: string\n\n @Field({ nullable: true })\n city: string\n\n @Field({ nullable: true })\n state: string\n\n @Field({ nullable: true })\n postalCode: string\n\n @Field({ nullable: true })\n country: string\n\n @Field({ nullable: true })\n phone1: string\n\n @Field({ nullable: true })\n phone2: string\n\n @Field({ nullable: true })\n email: string\n\n @Field({ nullable: true })\n transporter: string\n\n @Field({ nullable: true })\n trackingNo: string\n\n @Field({ nullable: true })\n airwayBill: string\n\n @Field({ nullable: true })\n invoice: string\n\n @Field({ nullable: true })\n description: string\n\n @Field({ nullable: true })\n storeName: string\n\n @Field({ nullable: true })\n storeId: string\n\n @Field({ nullable: true })\n routeId: string\n\n @Field({ nullable: true })\n stopId: string\n}\n"]}
1
+ {"version":3,"file":"release-good-types.js","sourceRoot":"","sources":["../../../server/service/release-good/release-good-types.ts"],"names":[],"mappings":";;;;;AAAA,+CAAuE;AAEvE,+DAAsD;AACtD,iDAAiD;AACjD,mEAAyD;AAEzD,iFAA2E;AAC3E,oFAA4E;AAC5E,kEAA0D;AAC1D,iDAA4C;AAG5C,IAAa,eAAe,GAA5B,MAAa,eAAe;CAM3B,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,0BAAW,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC7B;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;8CAC3B;AALF,eAA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,EAAE,CAAC;;oDACd;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACR;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACD;AAGzB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACA;AAG1B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEACC;AApEhB,sBAAsB;IADlC,IAAA,wBAAS,GAAE;GACC,sBAAsB,CAqElC;AArEY,wDAAsB","sourcesContent":["import { Field, Float, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { Product } from '@things-factory/product-base'\nimport { ObjectRef } from '@things-factory/shell'\nimport { Location } from '@things-factory/warehouse-base'\n\nimport { ArrivalNoticePatch } from '../arrival-notice/arrival-notice-types'\nimport { NewOrderInventory } from '../order-inventory/order-inventory-types'\nimport { NewOrderVas } from '../order-vas/order-vas-types'\nimport { ReleaseGood } from './release-good'\n\n@ObjectType()\nexport class ReleaseGoodList {\n @Field(type => [ReleaseGood], { nullable: true })\n items: ReleaseGood[]\n\n @Field(type => Int, { nullable: false })\n total: number\n}\n\n@ObjectType()\nexport class ReleasableInventoryList {\n @Field(type => [ReleasableInventory], { nullable: true })\n items: ReleasableInventory[]\n\n @Field(type => Int, { nullable: true })\n total: number\n}\n\n@ObjectType()\nexport class ReleasableInventory {\n @Field({ nullable: true })\n batchId: string\n\n @Field({ nullable: true })\n containerNo: string\n\n @Field({ nullable: true })\n packingType: string\n\n @Field(type => Float, { nullable: false })\n remainQty: number\n\n @Field(type => Float, { nullable: true })\n remainWeight: number\n\n @Field(type => Product, { nullable: true })\n product: Product\n\n @Field({ nullable: true })\n productName: string\n}\n\n@ObjectType()\nexport class InventoryInfos {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n batchId?: string\n\n @Field({ nullable: true })\n batchIdRef?: string\n\n @Field({ nullable: true })\n palletId?: string\n\n @Field({ nullable: true })\n productIdRef?: string\n\n @Field({ nullable: true })\n productName?: string\n\n @Field(type => Product, { nullable: true })\n product?: Product\n\n @Field({ nullable: true })\n packingType?: string\n\n @Field(type => Float, { nullable: true })\n packingSize?: number\n\n @Field(type => Int, { nullable: false })\n qty?: number\n\n @Field(type => Float, { nullable: true })\n weight?: number\n\n @Field(type => Float, { nullable: true })\n releaseQty?: number\n\n @Field(type => Float, { nullable: true })\n releaseWeight?: number\n\n @Field({ nullable: true })\n inventoryName?: string\n\n @Field(type => Location, { nullable: true })\n location?: Location\n\n @Field({ nullable: true })\n status?: string\n\n @Field(type => Float, { nullable: true })\n releaseUomValue?: number\n\n @Field(type => Float, { nullable: true })\n uomValue?: number\n\n @Field({ nullable: true })\n uom?: string\n\n @Field(type => Float, { nullable: true })\n returnQty?: number\n\n @Field(type => Float, { nullable: true })\n returnUomValue?: number\n\n @Field({ nullable: true })\n remark?: string\n\n @Field({ nullable: true })\n lockedQty?: number\n\n @Field({ nullable: true })\n lockedUomValue?: number\n\n @Field({ nullable: true })\n refWorksheetId?: string\n}\n\n@ObjectType()\nexport class ShippingOrderInfo {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n containerNo?: string\n\n @Field({ nullable: true })\n containerSize?: string\n\n @Field({ nullable: true })\n containerLeavingDate?: string\n\n @Field({ nullable: true })\n containerArrivalDate?: string\n\n @Field({ nullable: true })\n containerClosureDate?: string\n\n @Field({ nullable: true })\n containerLeavingDateTime?: string\n\n @Field({ nullable: true })\n containerArrivalDateTime?: string\n\n @Field({ nullable: true })\n shipName?: string\n\n @Field({ nullable: true })\n remark?: string\n\n @Field({ nullable: true })\n remindContainerDeparture: boolean\n}\n\n@InputType()\nexport class NewReleaseGood {\n @Field({ nullable: true })\n name: string\n\n @Field({ nullable: true })\n bundleInfo: string\n\n @Field({ nullable: true })\n releaseDate: string\n\n @Field({ nullable: true })\n type: string\n\n @Field({ nullable: true })\n orderMethod: string\n\n\n\n @Field({ nullable: true })\n collectionOrderNo: string\n\n @Field({ nullable: true })\n ownTransport: Boolean\n\n @Field({ nullable: true })\n crossDocking: Boolean\n\n @Field({ nullable: true })\n courierOption: Boolean\n\n @Field({ nullable: true })\n packingOption: Boolean\n\n @Field({ nullable: true })\n packageId: string\n\n @Field({ nullable: true })\n truckNo: string\n\n @Field({ nullable: true })\n refNo: string\n\n @Field({ nullable: true })\n refNo2: string\n\n @Field({ nullable: true })\n refNo3: string\n\n @Field({ nullable: true })\n pickupAddress: string\n\n @Field({ nullable: true })\n pickupTime: string\n\n @Field({ nullable: true })\n handoverType: string\n\n @Field({ nullable: true })\n dropoffAddress: string\n\n @Field({ nullable: true })\n marketplaceOrderStatus: string\n\n @Field({ nullable: true })\n billingAddress: string\n\n @Field({ nullable: true })\n deliveryAddress1: string\n\n @Field({ nullable: true })\n deliveryAddress2: string\n\n @Field({ nullable: true })\n deliveryAddress3: string\n\n @Field({ nullable: true })\n deliveryAddress4: string\n\n @Field({ nullable: true })\n deliveryAddress5: string\n\n @Field({ nullable: true })\n attentionTo: string\n\n @Field({ nullable: true })\n attentionCompany: string\n\n @Field({ nullable: true })\n city: string\n\n @Field({ nullable: true })\n state: string\n\n @Field({ nullable: true })\n postalCode: string\n\n @Field({ nullable: true })\n country: string\n\n @Field({ nullable: true })\n phone1: string\n\n @Field({ nullable: true })\n phone2: string\n\n @Field({ nullable: true })\n email: string\n\n @Field({ nullable: true })\n transporter: string\n\n @Field({ nullable: true })\n trackingNo: string\n\n @Field({ nullable: true })\n airwayBill: string\n\n @Field({ nullable: true })\n invoice: string\n\n @Field(type => ArrivalNoticePatch, { nullable: true })\n arrivalNotice: ArrivalNoticePatch\n\n @Field({ nullable: true })\n ganNo: string\n\n @Field()\n exportOption: Boolean\n\n @Field(type => ObjectRef, { nullable: true })\n shippingOrder: ObjectRef\n\n @Field(type => [NewOrderInventory], { nullable: true })\n orderInventories: NewOrderInventory[]\n\n @Field(type => [NewOrderVas], { nullable: true })\n orderVass: NewOrderVas[]\n\n @Field({ nullable: true })\n status: string\n\n @Field({ nullable: true })\n description: string\n\n @Field({ nullable: true })\n warehouseId: string // outletID\n\n @Field({ nullable: true })\n deliverTo: string\n\n @Field({ nullable: true })\n customerBizplaceId: string\n\n @Field({ nullable: true })\n partnerBizplaceId: string\n\n /* Mainly used for rawReleaseGood*/\n @Field({ nullable: true })\n productId: string\n\n @Field({ nullable: true })\n productDetailId: string\n\n @Field({ nullable: true })\n sku: string\n\n @Field({ nullable: true })\n packingType: string\n\n @Field({ nullable: true })\n packingSize: number\n\n @Field({ nullable: true })\n uom: string\n\n @Field({ nullable: true })\n releaseQty: number\n\n @Field({ nullable: true })\n assignedQty: number\n\n @Field({ nullable: true })\n assignedUomValue: number\n\n @Field(type => Float, { nullable: true })\n remainQty: number\n\n @Field({ nullable: true })\n remainUomValue: number\n\n @Field({ nullable: true })\n remark: string\n\n @Field({ nullable: true })\n errorMsg: string\n\n @Field({ nullable: true })\n storeName: string\n\n @Field({ nullable: true })\n storeId: string\n\n @Field({ nullable: true })\n routeId: string\n\n @Field({ nullable: true })\n stopId: string\n\n @Field({ nullable: true })\n billingCity: string\n\n @Field({ nullable: true })\n billingPostalCode: string\n\n @Field({ nullable: true })\n billingCountry: string\n\n @Field({ nullable: true })\n billingState: string\n\n @Field({ nullable: true })\n recall: boolean\n}\n\n@InputType()\nexport class ReleaseGoodPatch {\n @Field({ nullable: true })\n id: string\n\n @Field({ nullable: true })\n name: string\n\n @Field({ nullable: true })\n releaseDate: string\n\n @Field({ nullable: true })\n collectionOrderNo: string\n\n @Field({ nullable: true })\n ownTransport: Boolean\n\n @Field({ nullable: true })\n crossDocking: Boolean\n\n @Field({ nullable: true })\n type: string\n\n @Field({ nullable: true })\n orderMethod: string\n\n @Field({ nullable: true })\n truckNo: string\n\n @Field({ nullable: true })\n inventoryId: string\n\n @Field({ nullable: true })\n productId: string\n\n @Field({ nullable: true })\n ganNo: string\n\n @Field(type => ArrivalNoticePatch, { nullable: true })\n arrivalNotice: ArrivalNoticePatch\n\n @Field({ nullable: true })\n packageId: string\n\n @Field({ nullable: true })\n pickupAddress: string\n\n @Field({ nullable: true })\n pickupTime: string\n\n @Field({ nullable: true })\n handoverType: string\n\n @Field({ nullable: true })\n dropoffAddress: string\n\n @Field({ nullable: true })\n refNo: string\n\n @Field({ nullable: true })\n refNo2: string\n\n @Field({ nullable: true })\n refNo3: string\n\n @Field({ nullable: true })\n exportOption: Boolean\n\n @Field({ nullable: true })\n courierOption: Boolean\n\n @Field({ nullable: true })\n packingOption: Boolean\n\n @Field(type => ObjectRef, { nullable: true })\n shippingOrder: ObjectRef\n\n @Field(type => [ObjectRef], { nullable: true })\n deliveryOrders: ObjectRef[]\n\n @Field(type => [ObjectRef], { nullable: true })\n orderInventories: ObjectRef[]\n\n @Field(type => [ObjectRef], { nullable: true })\n orderVass: ObjectRef[]\n\n @Field({ nullable: true })\n status: string\n\n @Field({ nullable: true })\n remark: string\n\n @Field({ nullable: true })\n marketplaceOrderStatus: string\n\n @Field({ nullable: true })\n billingAddress: string\n\n @Field({ nullable: true })\n deliveryAddress1: string\n\n @Field({ nullable: true })\n deliveryAddress2: string\n\n @Field({ nullable: true })\n deliveryAddress3: string\n\n @Field({ nullable: true })\n deliveryAddress4: string\n\n @Field({ nullable: true })\n deliveryAddress5: string\n\n @Field({ nullable: true })\n attentionTo: string\n\n @Field({ nullable: true })\n attentionCompany: string\n\n @Field({ nullable: true })\n city: string\n\n @Field({ nullable: true })\n state: string\n\n @Field({ nullable: true })\n postalCode: string\n\n @Field({ nullable: true })\n country: string\n\n @Field({ nullable: true })\n phone1: string\n\n @Field({ nullable: true })\n phone2: string\n\n @Field({ nullable: true })\n email: string\n\n @Field({ nullable: true })\n transporter: string\n\n @Field({ nullable: true })\n trackingNo: string\n\n @Field({ nullable: true })\n airwayBill: string\n\n @Field({ nullable: true })\n invoice: string\n\n @Field({ nullable: true })\n description: string\n\n @Field({ nullable: true })\n storeName: string\n\n @Field({ nullable: true })\n storeId: string\n\n @Field({ nullable: true })\n routeId: string\n\n @Field({ nullable: true })\n stopId: string\n}\n\n@InputType()\nexport class ExportInformationPatch {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n containerNo?: string\n\n @Field({ nullable: true })\n containerLeavingDate?: string\n\n @Field({ nullable: true })\n containerArrivalDate?: string\n\n @Field({ nullable: true })\n containerLeavingDateTime?: string\n\n @Field({ nullable: true })\n containerArrivalDateTime?: string\n\n @Field({ nullable: true })\n shipName?: string\n}\n\n@InputType()\nexport class ShippingOrderInfoPatch {\n @Field({ nullable: true })\n billingAddress: string\n\n @Field({ nullable: true })\n billingCity: string\n\n @Field({ nullable: true })\n billingPostalCode: string\n\n @Field({ nullable: true })\n billingState: string\n\n @Field({ nullable: true })\n billingCountry: string\n\n @Field({ nullable: true })\n companyName: string\n\n @Field({ nullable: true })\n contact: string\n\n @Field({ nullable: true })\n deliveryAddress: string\n\n @Field({ nullable: true })\n deliveryCity: string\n\n @Field({ nullable: true })\n deliveryCountry: string\n\n @Field({ nullable: true })\n deliveryPostalCode: string\n\n @Field({ nullable: true })\n deliveryState: string\n\n @Field({ nullable: true })\n attentionTo: string\n\n @Field({ nullable: true })\n deliveryAddress1: string\n\n @Field({ nullable: true })\n country: string\n\n @Field({ nullable: true })\n city: string\n\n @Field({ nullable: true })\n state: string\n\n @Field({ nullable: true })\n phone1: string\n\n @Field({ nullable: true })\n postalCode: string\n\n @Field({ nullable: true })\n attentionCompany: string\n\n @Field({ nullable: true })\n collectionOrderNo: string\n\n @Field({ nullable: true })\n billingFullAddress: string\n\n @Field({ nullable: true })\n deliveryFullAddress: string\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var _a, _b, _c, _d, _e, _f, _g;
2
+ var _a, _b;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ReleaseGood = exports.DispatchmentStatus = void 0;
5
5
  const tslib_1 = require("tslib");
@@ -33,7 +33,7 @@ tslib_1.__decorate([
33
33
  tslib_1.__decorate([
34
34
  (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
35
35
  (0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true }),
36
- tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
36
+ tslib_1.__metadata("design:type", shell_1.Domain)
37
37
  ], ReleaseGood.prototype, "domain", void 0);
38
38
  tslib_1.__decorate([
39
39
  (0, typeorm_1.RelationId)((releaseGood) => releaseGood.domain),
@@ -42,7 +42,7 @@ tslib_1.__decorate([
42
42
  tslib_1.__decorate([
43
43
  (0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
44
44
  (0, type_graphql_1.Field)(type => biz_base_1.Bizplace, { nullable: true }),
45
- tslib_1.__metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
45
+ tslib_1.__metadata("design:type", typeof (_a = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _a : Object)
46
46
  ], ReleaseGood.prototype, "bizplace", void 0);
47
47
  tslib_1.__decorate([
48
48
  (0, typeorm_1.RelationId)((releaseGood) => releaseGood.bizplace),
@@ -111,6 +111,11 @@ tslib_1.__decorate([
111
111
  (0, type_graphql_1.Field)(),
112
112
  tslib_1.__metadata("design:type", Boolean)
113
113
  ], ReleaseGood.prototype, "crossDocking", void 0);
114
+ tslib_1.__decorate([
115
+ (0, typeorm_1.Column)({ nullable: true }),
116
+ (0, type_graphql_1.Field)({ nullable: true }),
117
+ tslib_1.__metadata("design:type", String)
118
+ ], ReleaseGood.prototype, "orderMethod", void 0);
114
119
  tslib_1.__decorate([
115
120
  (0, typeorm_1.ManyToOne)(type => __1.ArrivalNotice),
116
121
  (0, type_graphql_1.Field)(type => __1.ArrivalNotice, { nullable: true }),
@@ -167,11 +172,6 @@ tslib_1.__decorate([
167
172
  }),
168
173
  tslib_1.__metadata("design:type", String)
169
174
  ], ReleaseGood.prototype, "dispatchmentStatus", void 0);
170
- tslib_1.__decorate([
171
- (0, typeorm_1.Column)({ nullable: true }),
172
- (0, type_graphql_1.Field)({ nullable: true }),
173
- tslib_1.__metadata("design:type", Date)
174
- ], ReleaseGood.prototype, "releaseDateTime", void 0);
175
175
  tslib_1.__decorate([
176
176
  (0, typeorm_1.Column)({ nullable: true }),
177
177
  (0, type_graphql_1.Field)({ nullable: true }),
@@ -207,6 +207,26 @@ tslib_1.__decorate([
207
207
  (0, type_graphql_1.Field)({ nullable: true }),
208
208
  tslib_1.__metadata("design:type", String)
209
209
  ], ReleaseGood.prototype, "billingAddress", void 0);
210
+ tslib_1.__decorate([
211
+ (0, typeorm_1.Column)({ nullable: true }),
212
+ (0, type_graphql_1.Field)({ nullable: true }),
213
+ tslib_1.__metadata("design:type", String)
214
+ ], ReleaseGood.prototype, "billingCountry", void 0);
215
+ tslib_1.__decorate([
216
+ (0, typeorm_1.Column)({ nullable: true }),
217
+ (0, type_graphql_1.Field)({ nullable: true }),
218
+ tslib_1.__metadata("design:type", String)
219
+ ], ReleaseGood.prototype, "billingPostalCode", void 0);
220
+ tslib_1.__decorate([
221
+ (0, typeorm_1.Column)({ nullable: true }),
222
+ (0, type_graphql_1.Field)({ nullable: true }),
223
+ tslib_1.__metadata("design:type", String)
224
+ ], ReleaseGood.prototype, "billingState", void 0);
225
+ tslib_1.__decorate([
226
+ (0, typeorm_1.Column)({ nullable: true }),
227
+ (0, type_graphql_1.Field)({ nullable: true }),
228
+ tslib_1.__metadata("design:type", String)
229
+ ], ReleaseGood.prototype, "billingCity", void 0);
210
230
  tslib_1.__decorate([
211
231
  (0, typeorm_1.Column)({ nullable: true }),
212
232
  (0, type_graphql_1.Field)({ nullable: true }),
@@ -322,6 +342,11 @@ tslib_1.__decorate([
322
342
  (0, type_graphql_1.Field)({ nullable: true }),
323
343
  tslib_1.__metadata("design:type", String)
324
344
  ], ReleaseGood.prototype, "invoice", void 0);
345
+ tslib_1.__decorate([
346
+ (0, typeorm_1.Column)({ nullable: true }),
347
+ (0, type_graphql_1.Field)({ nullable: true }),
348
+ tslib_1.__metadata("design:type", Boolean)
349
+ ], ReleaseGood.prototype, "recall", void 0);
325
350
  tslib_1.__decorate([
326
351
  (0, typeorm_1.Column)({ nullable: true }),
327
352
  tslib_1.__metadata("design:type", String)
@@ -344,7 +369,7 @@ tslib_1.__decorate([
344
369
  tslib_1.__decorate([
345
370
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User),
346
371
  (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
347
- tslib_1.__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
372
+ tslib_1.__metadata("design:type", auth_base_1.User)
348
373
  ], ReleaseGood.prototype, "checkedRemarkUser", void 0);
349
374
  tslib_1.__decorate([
350
375
  (0, typeorm_1.Column)({ nullable: true }),
@@ -359,7 +384,7 @@ tslib_1.__decorate([
359
384
  tslib_1.__decorate([
360
385
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User),
361
386
  (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
362
- tslib_1.__metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
387
+ tslib_1.__metadata("design:type", auth_base_1.User)
363
388
  ], ReleaseGood.prototype, "acceptedBy", void 0);
364
389
  tslib_1.__decorate([
365
390
  (0, typeorm_1.RelationId)((releaseGood) => releaseGood.acceptedBy),
@@ -373,7 +398,7 @@ tslib_1.__decorate([
373
398
  tslib_1.__decorate([
374
399
  (0, typeorm_1.ManyToOne)(type => biz_base_1.ContactPoint),
375
400
  (0, type_graphql_1.Field)(type => biz_base_1.ContactPoint, { nullable: true }),
376
- tslib_1.__metadata("design:type", typeof (_e = typeof biz_base_1.ContactPoint !== "undefined" && biz_base_1.ContactPoint) === "function" ? _e : Object)
401
+ tslib_1.__metadata("design:type", typeof (_b = typeof biz_base_1.ContactPoint !== "undefined" && biz_base_1.ContactPoint) === "function" ? _b : Object)
377
402
  ], ReleaseGood.prototype, "deliverTo", void 0);
378
403
  tslib_1.__decorate([
379
404
  (0, typeorm_1.RelationId)((releaseGood) => releaseGood.deliverTo),
@@ -382,7 +407,7 @@ tslib_1.__decorate([
382
407
  tslib_1.__decorate([
383
408
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User),
384
409
  (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
385
- tslib_1.__metadata("design:type", typeof (_f = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _f : Object)
410
+ tslib_1.__metadata("design:type", auth_base_1.User)
386
411
  ], ReleaseGood.prototype, "creator", void 0);
387
412
  tslib_1.__decorate([
388
413
  (0, typeorm_1.RelationId)((releaseGood) => releaseGood.creator),
@@ -391,7 +416,7 @@ tslib_1.__decorate([
391
416
  tslib_1.__decorate([
392
417
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User),
393
418
  (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
394
- tslib_1.__metadata("design:type", typeof (_g = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _g : Object)
419
+ tslib_1.__metadata("design:type", auth_base_1.User)
395
420
  ], ReleaseGood.prototype, "updater", void 0);
396
421
  tslib_1.__decorate([
397
422
  (0, typeorm_1.RelationId)((releaseGood) => releaseGood.updater),
@@ -487,14 +512,40 @@ tslib_1.__decorate([
487
512
  (0, type_graphql_1.Field)({ nullable: true }),
488
513
  tslib_1.__metadata("design:type", String)
489
514
  ], ReleaseGood.prototype, "stopId", void 0);
515
+ tslib_1.__decorate([
516
+ (0, typeorm_1.Column)({ nullable: true }),
517
+ (0, type_graphql_1.Field)({ nullable: true }),
518
+ tslib_1.__metadata("design:type", Date)
519
+ ], ReleaseGood.prototype, "manifestedAt", void 0);
520
+ tslib_1.__decorate([
521
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User),
522
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
523
+ tslib_1.__metadata("design:type", auth_base_1.User)
524
+ ], ReleaseGood.prototype, "manifestedBy", void 0);
525
+ tslib_1.__decorate([
526
+ (0, typeorm_1.RelationId)((releaseGood) => releaseGood.manifestedBy),
527
+ tslib_1.__metadata("design:type", String)
528
+ ], ReleaseGood.prototype, "manifestedById", void 0);
490
529
  tslib_1.__decorate([
491
530
  (0, type_graphql_1.Field)({ nullable: true }),
492
531
  tslib_1.__metadata("design:type", Boolean)
493
532
  ], ReleaseGood.prototype, "orderRemark", void 0);
533
+ tslib_1.__decorate([
534
+ (0, type_graphql_1.Field)({ nullable: true }),
535
+ tslib_1.__metadata("design:type", Number)
536
+ ], ReleaseGood.prototype, "totalInventoriesByBin", void 0);
537
+ tslib_1.__decorate([
538
+ (0, type_graphql_1.Field)({ nullable: true }),
539
+ tslib_1.__metadata("design:type", Boolean)
540
+ ], ReleaseGood.prototype, "isOrderInventoryBin", void 0);
494
541
  tslib_1.__decorate([
495
542
  (0, type_graphql_1.Field)({ nullable: true }),
496
543
  tslib_1.__metadata("design:type", String)
497
544
  ], ReleaseGood.prototype, "invStatus", void 0);
545
+ tslib_1.__decorate([
546
+ (0, type_graphql_1.Field)({ nullable: true }),
547
+ tslib_1.__metadata("design:type", Boolean)
548
+ ], ReleaseGood.prototype, "matchDeliveryAddress", void 0);
498
549
  ReleaseGood = tslib_1.__decorate([
499
550
  (0, typeorm_1.Entity)(),
500
551
  (0, typeorm_1.Index)('ix_release-good_0', (releaseGood) => [releaseGood.domain, releaseGood.name], { unique: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"release-good.js","sourceRoot":"","sources":["../../../server/service/release-good/release-good.ts"],"names":[],"mappings":";;;;;AAAA,+CAKqB;AACrB,qCAYgB;AAEhB,qEAA4D;AAC5D,yDAAgD;AAChD,uDAGiC;AACjC,6CAA4C;AAC5C,iDAA8C;AAE9C,2BAUY;AAEZ,+CAAkD;AAElD,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAEpC,iCAAiC;AACjC,iBAAiB;AACjB,gBAAgB;AAChB,IAAI;AAEJ,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,6DAAuC,CAAA;IACvC,+CAAyB,CAAA;AAC3B,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAQD,IAAa,WAAW,GAAxB,MAAa,WAAW;CAuXvB,CAAA;AApXC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;uCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DAClC,cAAM,oBAAN,cAAM;2CAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,WAAwB,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC;;6CAC7C;AAIhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,CAAC;IAC3B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DAClC,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AAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACb,OAAO;gDAAA;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAC,QAAQ,EAAC,IAAI,EAAC,CAAC;sCACZ,MAAM;8CAAA;AAtXN,WAAW;IANvB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAClH,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACjG,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClG,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClG,IAAA,yBAAU,GAAE;GACA,WAAW,CAuXvB;AAvXY,kCAAW","sourcesContent":["import {\n Field,\n Float,\n ID,\n ObjectType\n} from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n JoinColumn,\n ManyToOne,\n OneToMany,\n OneToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { Attachment } from '@things-factory/attachment-base'\nimport { User } from '@things-factory/auth-base'\nimport {\n Bizplace,\n ContactPoint\n} from '@things-factory/biz-base'\nimport { config } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport {\n ArrivalNotice,\n DeliveryOrder,\n InventoryInfos,\n Manifest,\n OrderInventory,\n OrderProduct,\n OrderVas,\n ShippingOrder,\n ShippingOrderInfo,\n} from '../'\n\nimport { ReleaseOrderType } from '../../constants'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n// export enum ReleaseOrderType {\n// B2B = 'b2b',\n// B2C = 'b2c'\n// }\n\nexport enum DispatchmentStatus {\n READY_TO_DISPATCH = 'READY_TO_DISPATCH',\n DISPATCHED = 'DISPATCHED'\n}\n\n@Entity()\n@Index('ix_release-good_0', (releaseGood: ReleaseGood) => [releaseGood.domain, releaseGood.name], { unique: true })\n@Index('ix_release-good_1', (releaseGood: ReleaseGood) => [releaseGood.domain, releaseGood.refNo])\n@Index('ix_release-good_2', (releaseGood: ReleaseGood) => [releaseGood.domain, releaseGood.refNo2])\n@Index('ix_release-good_3', (releaseGood: ReleaseGood) => [releaseGood.domain, releaseGood.remark])\n@ObjectType()\nexport class ReleaseGood {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true })\n domain: Domain\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.domain)\n domainId: string\n\n @ManyToOne(type => Bizplace)\n @Field(type => Bizplace, { nullable: true })\n bizplace: Bizplace\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.bizplace)\n bizplaceId: string\n\n @ManyToOne(type => Manifest)\n @Field(type => Manifest, { nullable: true })\n manifest: Manifest\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n collectionOrderNo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n truckNo: string\n\n @Column({\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: ReleaseOrderType,\n default: ReleaseOrderType.B2B\n })\n @Field()\n type: ReleaseOrderType\n\n @Column({ default: false })\n @Field()\n exportOption: Boolean\n\n @Column({ default: false })\n @Field()\n courierOption: Boolean\n\n @Column({ default: false })\n @Field()\n packingOption: Boolean\n\n @Column()\n @Field()\n ownTransport: Boolean\n\n @Column({ default: false })\n @Field()\n crossDocking: Boolean\n\n @ManyToOne(type => ArrivalNotice)\n @Field(type => ArrivalNotice, { nullable: true })\n arrivalNotice: ArrivalNotice\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.arrivalNotice)\n arrivalNoticeId: string\n\n @OneToMany(type => DeliveryOrder, deliveryOrder => deliveryOrder.releaseGood)\n @Field(type => [DeliveryOrder], { nullable: true })\n deliveryOrders: DeliveryOrder[]\n\n @OneToOne(type => ShippingOrder)\n @JoinColumn()\n @Field(type => ShippingOrder, { nullable: true })\n shippingOrder: ShippingOrder\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.shippingOrder)\n shippingOrderId: string\n\n @OneToMany(type => OrderVas, orderVas => orderVas.releaseGood)\n @Field(type => [OrderVas], { nullable: true })\n orderVass?: OrderVas[]\n\n @OneToMany(type => OrderInventory, orderInventory => orderInventory.releaseGood)\n @Field(type => [OrderInventory], { nullable: true })\n orderInventories: OrderInventory[]\n\n @OneToMany(type => OrderProduct, orderProduct => orderProduct.releaseGood)\n @Field(type => [OrderProduct], { nullable: true })\n orderProducts: OrderProduct[]\n\n @Column()\n @Field()\n status: string\n\n @Column({\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: DispatchmentStatus,\n default: DispatchmentStatus.READY_TO_DISPATCH\n })\n dispatchmentStatus: DispatchmentStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n releaseDateTime: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refNo: String\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refNo2: String\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refNo3: String\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n releaseDate: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n remark: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n marketplaceOrderStatus: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n billingAddress: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n pickupAddress: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n pickupTime: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n handoverType: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n dropoffAddress: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress1: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress3: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress4: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress5: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n attentionTo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n attentionCompany: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n city: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n postalCode: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n country: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n phone1: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n phone2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n email: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n packageId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n transporter: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n trackingNo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n airwayBill: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n invoice: string\n\n @Column({ nullable: true })\n bundleInfo: string\n\n @Column({ type: 'int', nullable: true })\n @Field({ nullable: true })\n noOfItems: number\n\n @CreateDateColumn()\n @Field()\n createdAt: Date\n\n @UpdateDateColumn()\n @Field()\n updatedAt: Date\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n checkedRemarkUser: User\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n checkedRemarkBy: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n checkedRemarkAt: Date\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n acceptedBy: User\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.acceptedBy)\n acceptedById: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n acceptedAt: Date\n\n @ManyToOne(type => ContactPoint)\n @Field(type => ContactPoint, { nullable: true })\n deliverTo: ContactPoint\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.deliverTo)\n deliverToId: string\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n creator: User\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.creator)\n creatorId: string\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n updater: User\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.updater)\n updaterId: string\n\n @Field(type => [Attachment], { nullable: true })\n attachment?: Attachment[]\n\n @Field(type => [InventoryInfos], { nullable: true })\n inventoryInfos?: InventoryInfos[]\n\n @Field(type => ShippingOrderInfo, { nullable: true })\n shippingOrderInfo?: ShippingOrderInfo\n\n /* Mainly used for rawReleaseGood*/\n @Field({ nullable: true })\n productId: string\n\n @Field({ nullable: true })\n productDetailId: string\n\n @Field({ nullable: true })\n productInfo: string\n\n @Field({ nullable: true })\n sku: string\n\n @Field({ nullable: true })\n batchId: string\n\n @Field({ nullable: true })\n packingType: string\n\n @Field({ nullable: true })\n packingSize: number\n\n @Field({ nullable: true })\n uom: string\n\n @Field({ nullable: true })\n releaseQty: number\n\n @Field({ nullable: true })\n assignedQty: number\n\n @Field({ nullable: true })\n assignedUomValue: number\n\n @Field(type => Float, { nullable: true })\n remainQty: number\n\n @Field({ nullable: true })\n remainUomValue: number\n\n @Field({ nullable: true })\n errorMsg: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n storeId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n storeName: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n routeId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n stopId: string\n\n @Field({ nullable: true })\n orderRemark: Boolean\n\n @Field({nullable:true})\n invStatus: String\n}\n"]}
1
+ {"version":3,"file":"release-good.js","sourceRoot":"","sources":["../../../server/service/release-good/release-good.ts"],"names":[],"mappings":";;;;;AAAA,+CAA2D;AAC3D,qCAYgB;AAEhB,qEAA4D;AAC5D,yDAAgD;AAChD,uDAAiE;AACjE,6CAA4C;AAC5C,iDAA8C;AAE9C,2BAUY;AACZ,+CAAkD;AAElD,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAEpC,iCAAiC;AACjC,iBAAiB;AACjB,gBAAgB;AAChB,IAAI;AAEJ,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,6DAAuC,CAAA;IACvC,+CAAyB,CAAA;AAC3B,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAQD,IAAa,WAAW,GAAxB,MAAa,WAAW;CA+ZvB,CAAA;AA5ZC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;uCACC;AAInB;IAFC,IAAA,m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CAAC;IAClG,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClG,IAAA,yBAAU,GAAE;GACA,WAAW,CA+ZvB;AA/ZY,kCAAW","sourcesContent":["import { Field, Float, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n JoinColumn,\n ManyToOne,\n OneToMany,\n OneToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { Attachment } from '@things-factory/attachment-base'\nimport { User } from '@things-factory/auth-base'\nimport { Bizplace, ContactPoint } from '@things-factory/biz-base'\nimport { config } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport {\n ArrivalNotice,\n DeliveryOrder,\n InventoryInfos,\n Manifest,\n OrderInventory,\n OrderProduct,\n OrderVas,\n ShippingOrder,\n ShippingOrderInfo\n} from '../'\nimport { ReleaseOrderType } from '../../constants'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n// export enum ReleaseOrderType {\n// B2B = 'b2b',\n// B2C = 'b2c'\n// }\n\nexport enum DispatchmentStatus {\n READY_TO_DISPATCH = 'READY_TO_DISPATCH',\n DISPATCHED = 'DISPATCHED'\n}\n\n@Entity()\n@Index('ix_release-good_0', (releaseGood: ReleaseGood) => [releaseGood.domain, releaseGood.name], { unique: true })\n@Index('ix_release-good_1', (releaseGood: ReleaseGood) => [releaseGood.domain, releaseGood.refNo])\n@Index('ix_release-good_2', (releaseGood: ReleaseGood) => [releaseGood.domain, releaseGood.refNo2])\n@Index('ix_release-good_3', (releaseGood: ReleaseGood) => [releaseGood.domain, releaseGood.remark])\n@ObjectType()\nexport class ReleaseGood {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true })\n domain: Domain\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.domain)\n domainId: string\n\n @ManyToOne(type => Bizplace)\n @Field(type => Bizplace, { nullable: true })\n bizplace: Bizplace\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.bizplace)\n bizplaceId: string\n\n @ManyToOne(type => Manifest)\n @Field(type => Manifest, { nullable: true })\n manifest: Manifest\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n collectionOrderNo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n truckNo: string\n\n @Column({\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: ReleaseOrderType,\n default: ReleaseOrderType.B2B\n })\n @Field()\n type: ReleaseOrderType\n\n @Column({ default: false })\n @Field()\n exportOption: Boolean\n\n @Column({ default: false })\n @Field()\n courierOption: Boolean\n\n @Column({ default: false })\n @Field()\n packingOption: Boolean\n\n @Column()\n @Field()\n ownTransport: Boolean\n\n @Column({ default: false })\n @Field()\n crossDocking: Boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n orderMethod: string\n\n @ManyToOne(type => ArrivalNotice)\n @Field(type => ArrivalNotice, { nullable: true })\n arrivalNotice: ArrivalNotice\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.arrivalNotice)\n arrivalNoticeId: string\n\n @OneToMany(type => DeliveryOrder, deliveryOrder => deliveryOrder.releaseGood)\n @Field(type => [DeliveryOrder], { nullable: true })\n deliveryOrders: DeliveryOrder[]\n\n @OneToOne(type => ShippingOrder)\n @JoinColumn()\n @Field(type => ShippingOrder, { nullable: true })\n shippingOrder: ShippingOrder\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.shippingOrder)\n shippingOrderId: string\n\n @OneToMany(type => OrderVas, orderVas => orderVas.releaseGood)\n @Field(type => [OrderVas], { nullable: true })\n orderVass?: OrderVas[]\n\n @OneToMany(type => OrderInventory, orderInventory => orderInventory.releaseGood)\n @Field(type => [OrderInventory], { nullable: true })\n orderInventories: OrderInventory[]\n\n @OneToMany(type => OrderProduct, orderProduct => orderProduct.releaseGood)\n @Field(type => [OrderProduct], { nullable: true })\n orderProducts: OrderProduct[]\n\n @Column()\n @Field()\n status: string\n\n @Column({\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: DispatchmentStatus,\n default: DispatchmentStatus.READY_TO_DISPATCH\n })\n dispatchmentStatus: DispatchmentStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refNo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refNo2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refNo3: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n releaseDate: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n remark: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n marketplaceOrderStatus: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n billingAddress: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n billingCountry: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n billingPostalCode: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n billingState: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n billingCity: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n pickupAddress: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n pickupTime: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n handoverType: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n dropoffAddress: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress1: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress3: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress4: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deliveryAddress5: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n attentionTo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n attentionCompany: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n city: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n postalCode: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n country: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n phone1: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n phone2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n email: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n packageId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n transporter: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n trackingNo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n airwayBill: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n invoice: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n recall: boolean\n\n @Column({ nullable: true })\n bundleInfo: string\n\n @Column({ type: 'int', nullable: true })\n @Field({ nullable: true })\n noOfItems: number\n\n @CreateDateColumn()\n @Field()\n createdAt: Date\n\n @UpdateDateColumn()\n @Field()\n updatedAt: Date\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n checkedRemarkUser: User\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n checkedRemarkBy: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n checkedRemarkAt: Date\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n acceptedBy: User\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.acceptedBy)\n acceptedById: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n acceptedAt: Date\n\n @ManyToOne(type => ContactPoint)\n @Field(type => ContactPoint, { nullable: true })\n deliverTo: ContactPoint\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.deliverTo)\n deliverToId: string\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n creator: User\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.creator)\n creatorId: string\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n updater: User\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.updater)\n updaterId: string\n\n @Field(type => [Attachment], { nullable: true })\n attachment?: Attachment[]\n\n @Field(type => [InventoryInfos], { nullable: true })\n inventoryInfos?: InventoryInfos[]\n\n @Field(type => ShippingOrderInfo, { nullable: true })\n shippingOrderInfo?: ShippingOrderInfo\n\n /* Mainly used for rawReleaseGood*/\n @Field({ nullable: true })\n productId: string\n\n @Field({ nullable: true })\n productDetailId: string\n\n @Field({ nullable: true })\n productInfo: string\n\n @Field({ nullable: true })\n sku: string\n\n @Field({ nullable: true })\n batchId: string\n\n @Field({ nullable: true })\n packingType: string\n\n @Field({ nullable: true })\n packingSize: number\n\n @Field({ nullable: true })\n uom: string\n\n @Field({ nullable: true })\n releaseQty: number\n\n @Field({ nullable: true })\n assignedQty: number\n\n @Field({ nullable: true })\n assignedUomValue: number\n\n @Field(type => Float, { nullable: true })\n remainQty: number\n\n @Field({ nullable: true })\n remainUomValue: number\n\n @Field({ nullable: true })\n errorMsg: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n storeId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n storeName: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n routeId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n stopId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n manifestedAt: Date\n\n @ManyToOne(type => User)\n @Field(type => User, { nullable: true })\n manifestedBy: User\n\n @RelationId((releaseGood: ReleaseGood) => releaseGood.manifestedBy)\n manifestedById: string\n\n @Field({ nullable: true })\n orderRemark: Boolean\n\n @Field({ nullable:true })\n totalInventoriesByBin: Number\n\n @Field({ nullable:true })\n isOrderInventoryBin: Boolean\n\n @Field({ nullable: true })\n invStatus: String\n\n @Field({ nullable: true })\n matchDeliveryAddress: Boolean\n}\n"]}
@@ -2,12 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addRetailReplenishmentOrderProducts = exports.RetailReplenishmentOrderMutation = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const typeorm_1 = require("typeorm");
5
7
  const biz_base_1 = require("@things-factory/biz-base");
6
8
  const id_rule_base_1 = require("@things-factory/id-rule-base");
7
9
  const product_base_1 = require("@things-factory/product-base");
8
10
  const setting_base_1 = require("@things-factory/setting-base");
9
- const type_graphql_1 = require("type-graphql");
10
- const typeorm_1 = require("typeorm");
11
+ const shell_1 = require("@things-factory/shell");
11
12
  const __1 = require("../");
12
13
  const constants_1 = require("../../constants");
13
14
  const utils_1 = require("../../utils");
@@ -31,7 +32,7 @@ let RetailReplenishmentOrderMutation = class RetailReplenishmentOrderMutation {
31
32
  const retailReplenishmentOrder = await tx
32
33
  .getRepository(retail_replenishment_order_1.RetailReplenishmentOrder)
33
34
  .findOne({
34
- where: { domain, bizplace, name: patch.name },
35
+ where: { domain: { id: domain.id }, bizplace, name: patch.name },
35
36
  relations: ['orderProducts']
36
37
  });
37
38
  if (!retailReplenishmentOrder)
@@ -55,7 +56,7 @@ let RetailReplenishmentOrderMutation = class RetailReplenishmentOrderMutation {
55
56
  }
56
57
  async createRetailReplenishmentOrder(retailReplenishmentOrder, context) {
57
58
  const { tx, domain, user } = context.state;
58
- const settingRepo = (tx === null || tx === void 0 ? void 0 : tx.getRepository(setting_base_1.Setting)) || (0, typeorm_1.getRepository)(setting_base_1.Setting);
59
+ const settingRepo = (tx === null || tx === void 0 ? void 0 : tx.getRepository(setting_base_1.Setting)) || (0, shell_1.getRepository)(setting_base_1.Setting);
59
60
  let orderVass = retailReplenishmentOrder.orderVass;
60
61
  const myBizplace = await (0, biz_base_1.getOutletBizplace)(retailReplenishmentOrder.warehouseId);
61
62
  // #1 check for allocated qty to identify the status: APPROVED or PENDING
@@ -68,7 +69,7 @@ let RetailReplenishmentOrderMutation = class RetailReplenishmentOrderMutation {
68
69
  });
69
70
  const rrNoSetting = await settingRepo.findOne({
70
71
  where: {
71
- domain,
72
+ domain: { id: domain.id },
72
73
  name: constants_1.ORDER_NUMBER_SETTING_KEY.RR_NUMBER_RULE
73
74
  }
74
75
  });
@@ -121,7 +122,7 @@ let RetailReplenishmentOrderMutation = class RetailReplenishmentOrderMutation {
121
122
  let partialReceived = false;
122
123
  // #1 Find Retail Replenishment Order
123
124
  const foundRRO = await tx.getRepository(retail_replenishment_order_1.RetailReplenishmentOrder).findOne({
124
- where: { domain, name: patch.name, bizplace: myBizplace },
125
+ where: { domain: { id: domain.id }, name: patch.name, bizplace: myBizplace },
125
126
  relations: ['orderProducts']
126
127
  });
127
128
  if (!foundRRO)
@@ -130,7 +131,7 @@ let RetailReplenishmentOrderMutation = class RetailReplenishmentOrderMutation {
130
131
  throw new Error(`Retail replenishment order is already completed.`);
131
132
  // #2 Find related order inventories
132
133
  let foundOPs = await tx.getRepository(__1.OrderProduct).find({
133
- where: { domain, transferOrder: foundRRO }
134
+ where: { domain: { id: domain.id } /* CONFIRMME regarding TYPEORM , transferOrder: foundRRO */ }
134
135
  });
135
136
  if (!foundOPs)
136
137
  throw new Error(`Order products were not found.`);
@@ -153,7 +154,7 @@ let RetailReplenishmentOrderMutation = class RetailReplenishmentOrderMutation {
153
154
  const repository = tx.getRepository(retail_replenishment_order_1.RetailReplenishmentOrder);
154
155
  delete patch.warehouseId; //exclude warehouse Id from patch
155
156
  const retailReplenishmentOrder = await repository.findOne({
156
- where: { domain, name, bizplace },
157
+ where: { domain: { id: domain.id }, name, bizplace },
157
158
  relations: ['orderProducts', 'orderProducts.product']
158
159
  });
159
160
  if (!retailReplenishmentOrder)
@@ -178,7 +179,7 @@ let RetailReplenishmentOrderMutation = class RetailReplenishmentOrderMutation {
178
179
  if (_updateRecords.length > 0) {
179
180
  for (let i = 0; i < _updateRecords.length; i++) {
180
181
  const newRecord = _updateRecords[i];
181
- const retailReplenishmentOrder = await retailReplenishmentOrderRepo.findOne(newRecord.id);
182
+ const retailReplenishmentOrder = await retailReplenishmentOrderRepo.findOneBy({ id: newRecord.id });
182
183
  const result = await retailReplenishmentOrderRepo.save(Object.assign(Object.assign(Object.assign({}, retailReplenishmentOrder), newRecord), { updater: user }));
183
184
  results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
184
185
  }
@@ -193,7 +194,7 @@ let RetailReplenishmentOrderMutation = class RetailReplenishmentOrderMutation {
193
194
  async deleteRetailReplenishmentOrders(names, context) {
194
195
  const { tx, domain } = context.state;
195
196
  await tx.getRepository(retail_replenishment_order_1.RetailReplenishmentOrder).delete({
196
- domain,
197
+ domain: { id: domain.id },
197
198
  name: (0, typeorm_1.In)(names)
198
199
  });
199
200
  return true;
@@ -279,16 +280,20 @@ RetailReplenishmentOrderMutation = tslib_1.__decorate([
279
280
  exports.RetailReplenishmentOrderMutation = RetailReplenishmentOrderMutation;
280
281
  async function addRetailReplenishmentOrderProducts(domain, retailReplenishmentOrder, orderProducts, user, tx) {
281
282
  var _a;
282
- const productRepo = (tx === null || tx === void 0 ? void 0 : tx.getRepository(product_base_1.Product)) || (0, typeorm_1.getRepository)(product_base_1.Product);
283
- const orderProductRepo = (tx === null || tx === void 0 ? void 0 : tx.getRepository(__1.OrderProduct)) || (0, typeorm_1.getRepository)(__1.OrderProduct);
283
+ const productRepo = (tx === null || tx === void 0 ? void 0 : tx.getRepository(product_base_1.Product)) || (0, shell_1.getRepository)(product_base_1.Product);
284
+ const orderProductRepo = (tx === null || tx === void 0 ? void 0 : tx.getRepository(__1.OrderProduct)) || (0, shell_1.getRepository)(__1.OrderProduct);
284
285
  if (!(retailReplenishmentOrder === null || retailReplenishmentOrder === void 0 ? void 0 : retailReplenishmentOrder.bizplace) || !((_a = retailReplenishmentOrder === null || retailReplenishmentOrder === void 0 ? void 0 : retailReplenishmentOrder.orderProducts) === null || _a === void 0 ? void 0 : _a.length)) {
285
286
  retailReplenishmentOrder = await tx.getRepository(retail_replenishment_order_1.RetailReplenishmentOrder).findOne({
286
- where: Object.assign({}, retailReplenishmentOrder),
287
+ where: { id: retailReplenishmentOrder.id },
287
288
  relations: ['bizplace', 'orderProducts']
288
289
  });
289
290
  }
290
291
  orderProducts = await Promise.all(orderProducts.map(async (op) => {
291
- const foundProduct = await productRepo.findOne({ domain, sku: op.product.sku, name: op.product.name });
292
+ const foundProduct = await productRepo.findOneBy({
293
+ domain: { id: domain.id },
294
+ sku: op.product.sku,
295
+ name: op.product.name
296
+ });
292
297
  if (!foundProduct)
293
298
  throw new Error(`Product ${op.product.name} (${op.product.sku}) is not exist.`);
294
299
  return Object.assign(Object.assign({}, op), { domain, bizplace: retailReplenishmentOrder.bizplace, name: utils_1.OrderNoGenerator.orderProduct(), product: foundProduct, retailReplenishmentOrder,