asv-hlps 1.3.63 → 1.3.65

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 (649) hide show
  1. package/lib/cjs/bills/models/Bill.d.ts +1 -1
  2. package/lib/cjs/bills/models/BillCat.d.ts +1 -1
  3. package/lib/cjs/bills/models/BillCat.js +0 -4
  4. package/lib/cjs/bills/models/index.d.ts +1 -0
  5. package/lib/cjs/estates/models/HousingRented.d.ts +5 -5
  6. package/lib/cjs/products/models/Product.d.ts +2 -0
  7. package/lib/{esm/models/products/ProductFg.d.ts → cjs/products/models/ProductWay.d.ts} +1 -1
  8. package/lib/cjs/products/product.d.ts +1 -0
  9. package/lib/cjs/products/product.js +15 -1
  10. package/lib/cjs/utils.d.ts +2 -0
  11. package/lib/cjs/utils.js +13 -3
  12. package/lib/esm/bills/models/Bill.d.ts +1 -1
  13. package/lib/esm/bills/models/BillCat.d.ts +1 -1
  14. package/lib/esm/bills/models/BillCat.js +1 -2
  15. package/lib/esm/bills/models/index.d.ts +1 -0
  16. package/lib/esm/estates/models/HousingRented.d.ts +5 -5
  17. package/lib/esm/products/models/Product.d.ts +2 -0
  18. package/lib/{cjs/models/products/ProductFg.d.ts → esm/products/models/ProductWay.d.ts} +1 -1
  19. package/lib/esm/products/product.d.ts +1 -0
  20. package/lib/esm/products/product.js +13 -0
  21. package/lib/esm/utils.d.ts +2 -0
  22. package/lib/esm/utils.js +9 -1
  23. package/package.json +7 -7
  24. package/lib/cjs/auth.d.ts +0 -27
  25. package/lib/cjs/auth.js +0 -66
  26. package/lib/cjs/back-end/hlpQbuilder.d.ts +0 -7
  27. package/lib/cjs/back-end/hlpQbuilder.js +0 -45
  28. package/lib/cjs/back-end/index.d.ts +0 -1
  29. package/lib/cjs/back-end/index.js +0 -8
  30. package/lib/cjs/bill.d.ts +0 -20
  31. package/lib/cjs/bill.js +0 -79
  32. package/lib/cjs/helpers/hlpEntry.d.ts +0 -17
  33. package/lib/cjs/helpers/hlpEntry.js +0 -90
  34. package/lib/cjs/helpers/hlpProduct.d.ts +0 -18
  35. package/lib/cjs/helpers/hlpProduct.js +0 -129
  36. package/lib/cjs/helpers/pipes/amount-on-bill-pipe.d.ts +0 -6
  37. package/lib/cjs/helpers/pipes/amount-on-bill-pipe.js +0 -9
  38. package/lib/cjs/helpers/pipes/amount-on-list-bill-pipe.d.ts +0 -6
  39. package/lib/cjs/helpers/pipes/amount-on-list-bill-pipe.js +0 -18
  40. package/lib/cjs/helpers/pipes/stock-pipe.d.ts +0 -6
  41. package/lib/cjs/helpers/pipes/stock-pipe.js +0 -24
  42. package/lib/cjs/models/acts/Act.d.ts +0 -18
  43. package/lib/cjs/models/acts/ActCat.d.ts +0 -4
  44. package/lib/cjs/models/acts/ActCat.js +0 -2
  45. package/lib/cjs/models/acts/ActLine.d.ts +0 -13
  46. package/lib/cjs/models/acts/ActLine.js +0 -2
  47. package/lib/cjs/models/acts/index.d.ts +0 -4
  48. package/lib/cjs/models/acts/index.js +0 -2
  49. package/lib/cjs/models/auth/AuthTag.d.ts +0 -6
  50. package/lib/cjs/models/auth/AuthTag.js +0 -2
  51. package/lib/cjs/models/auth/AuthTagCat.d.ts +0 -5
  52. package/lib/cjs/models/auth/AuthTagCat.js +0 -2
  53. package/lib/cjs/models/auth/index.d.ts +0 -3
  54. package/lib/cjs/models/auth/index.js +0 -2
  55. package/lib/cjs/models/bills/Bill.d.ts +0 -40
  56. package/lib/cjs/models/bills/Bill.js +0 -2
  57. package/lib/cjs/models/bills/BillCat.d.ts +0 -4
  58. package/lib/cjs/models/bills/BillCat.js +0 -6
  59. package/lib/cjs/models/bills/BillLine.d.ts +0 -9
  60. package/lib/cjs/models/bills/BillLine.js +0 -2
  61. package/lib/cjs/models/bills/BillPayment.d.ts +0 -21
  62. package/lib/cjs/models/bills/BillPayment.js +0 -2
  63. package/lib/cjs/models/bills/BillPaymentMethod.d.ts +0 -5
  64. package/lib/cjs/models/bills/BillPaymentMethod.js +0 -2
  65. package/lib/cjs/models/bills/CBillPeriod.d.ts +0 -4
  66. package/lib/cjs/models/bills/CBillPeriod.js +0 -8
  67. package/lib/cjs/models/bills/EBillPeriod.d.ts +0 -5
  68. package/lib/cjs/models/bills/EBillPeriod.js +0 -9
  69. package/lib/cjs/models/bills/EPayMethod.d.ts +0 -5
  70. package/lib/cjs/models/bills/EPayMethod.js +0 -9
  71. package/lib/cjs/models/bills/index.d.ts +0 -8
  72. package/lib/cjs/models/bills/index.js +0 -9
  73. package/lib/cjs/models/buys/Buy.d.ts +0 -19
  74. package/lib/cjs/models/buys/Buy.js +0 -2
  75. package/lib/cjs/models/buys/BuyCart.d.ts +0 -4
  76. package/lib/cjs/models/buys/BuyCart.js +0 -2
  77. package/lib/cjs/models/buys/BuyItem.d.ts +0 -5
  78. package/lib/cjs/models/buys/BuyItem.js +0 -2
  79. package/lib/cjs/models/buys/BuyItems.d.ts +0 -6
  80. package/lib/cjs/models/buys/BuyItems.js +0 -6
  81. package/lib/cjs/models/buys/index.d.ts +0 -5
  82. package/lib/cjs/models/buys/index.js +0 -5
  83. package/lib/cjs/models/cashs/Account.d.ts +0 -6
  84. package/lib/cjs/models/cashs/Account.js +0 -2
  85. package/lib/cjs/models/cashs/Bank.d.ts +0 -4
  86. package/lib/cjs/models/cashs/Bank.js +0 -2
  87. package/lib/cjs/models/cashs/Currency.d.ts +0 -10
  88. package/lib/cjs/models/cashs/Currency.js +0 -2
  89. package/lib/cjs/models/cashs/Deposit.d.ts +0 -12
  90. package/lib/cjs/models/cashs/Deposit.js +0 -2
  91. package/lib/cjs/models/cashs/Feed.d.ts +0 -17
  92. package/lib/cjs/models/cashs/Feed.js +0 -2
  93. package/lib/cjs/models/cashs/Spent.d.ts +0 -14
  94. package/lib/cjs/models/cashs/Spent.js +0 -2
  95. package/lib/cjs/models/cashs/index.d.ts +0 -7
  96. package/lib/cjs/models/cashs/index.js +0 -2
  97. package/lib/cjs/models/comptas/Entry.d.ts +0 -31
  98. package/lib/cjs/models/comptas/Entry.js +0 -2
  99. package/lib/cjs/models/comptas/EntryAccount.d.ts +0 -5
  100. package/lib/cjs/models/comptas/EntryAccount.js +0 -2
  101. package/lib/cjs/models/comptas/EntryCat.d.ts +0 -5
  102. package/lib/cjs/models/comptas/EntryCat.js +0 -2
  103. package/lib/cjs/models/comptas/EntryLine.d.ts +0 -23
  104. package/lib/cjs/models/comptas/EntryLine.js +0 -2
  105. package/lib/cjs/models/comptas/OhadaAbs.d.ts +0 -6
  106. package/lib/cjs/models/comptas/OhadaAbs.js +0 -6
  107. package/lib/cjs/models/comptas/OhadaCat.d.ts +0 -5
  108. package/lib/cjs/models/comptas/OhadaCat.js +0 -2
  109. package/lib/cjs/models/comptas/OhadaGrp.d.ts +0 -5
  110. package/lib/cjs/models/comptas/OhadaGrp.js +0 -2
  111. package/lib/cjs/models/comptas/OhadaPlan.d.ts +0 -3
  112. package/lib/cjs/models/comptas/OhadaPlan.js +0 -2
  113. package/lib/cjs/models/comptas/OhadaSubCat.d.ts +0 -5
  114. package/lib/cjs/models/comptas/OhadaSubCat.js +0 -2
  115. package/lib/cjs/models/comptas/index.d.ts +0 -9
  116. package/lib/cjs/models/comptas/index.js +0 -2
  117. package/lib/cjs/models/docs/Docu.d.ts +0 -12
  118. package/lib/cjs/models/docs/Docu.js +0 -2
  119. package/lib/cjs/models/docs/DocuCat.d.ts +0 -10
  120. package/lib/cjs/models/docs/DocuCat.js +0 -2
  121. package/lib/cjs/models/docs/Faq.d.ts +0 -10
  122. package/lib/cjs/models/docs/Faq.js +0 -2
  123. package/lib/cjs/models/docs/FaqCat.d.ts +0 -12
  124. package/lib/cjs/models/docs/FaqCat.js +0 -2
  125. package/lib/cjs/models/docs/Memo.d.ts +0 -8
  126. package/lib/cjs/models/docs/Memo.js +0 -2
  127. package/lib/cjs/models/docs/MemoCat.d.ts +0 -8
  128. package/lib/cjs/models/docs/MemoCat.js +0 -2
  129. package/lib/cjs/models/docs/index.d.ts +0 -7
  130. package/lib/cjs/models/docs/index.js +0 -2
  131. package/lib/cjs/models/index.d.ts +0 -14
  132. package/lib/cjs/models/index.js +0 -30
  133. package/lib/cjs/models/mails/Mail.d.ts +0 -9
  134. package/lib/cjs/models/mails/Mail.js +0 -2
  135. package/lib/cjs/models/mails/MailMass.d.ts +0 -8
  136. package/lib/cjs/models/mails/MailMass.js +0 -2
  137. package/lib/cjs/models/mails/MsgAbs.d.ts +0 -6
  138. package/lib/cjs/models/mails/MsgAbs.js +0 -6
  139. package/lib/cjs/models/mails/MsgAlert.d.ts +0 -9
  140. package/lib/cjs/models/mails/MsgAlert.js +0 -2
  141. package/lib/cjs/models/mails/MsgChat.d.ts +0 -4
  142. package/lib/cjs/models/mails/MsgChat.js +0 -2
  143. package/lib/cjs/models/mails/index.d.ts +0 -5
  144. package/lib/cjs/models/mails/index.js +0 -2
  145. package/lib/cjs/models/products/Product.d.ts +0 -78
  146. package/lib/cjs/models/products/Product.js +0 -2
  147. package/lib/cjs/models/products/ProductAgcy.d.ts +0 -6
  148. package/lib/cjs/models/products/ProductAgcy.js +0 -2
  149. package/lib/cjs/models/products/ProductAmm.d.ts +0 -10
  150. package/lib/cjs/models/products/ProductAmm.js +0 -2
  151. package/lib/cjs/models/products/ProductBuy.d.ts +0 -10
  152. package/lib/cjs/models/products/ProductBuy.js +0 -2
  153. package/lib/cjs/models/products/ProductCat.d.ts +0 -6
  154. package/lib/cjs/models/products/ProductCat.js +0 -2
  155. package/lib/cjs/models/products/ProductDci.d.ts +0 -6
  156. package/lib/cjs/models/products/ProductDci.js +0 -2
  157. package/lib/cjs/models/products/ProductDepot.d.ts +0 -9
  158. package/lib/cjs/models/products/ProductDepot.js +0 -2
  159. package/lib/cjs/models/products/ProductDos.d.ts +0 -5
  160. package/lib/cjs/models/products/ProductDos.js +0 -2
  161. package/lib/cjs/models/products/ProductFg.js +0 -2
  162. package/lib/cjs/models/products/ProductIn.d.ts +0 -8
  163. package/lib/cjs/models/products/ProductIn.js +0 -2
  164. package/lib/cjs/models/products/ProductInOut.d.ts +0 -26
  165. package/lib/cjs/models/products/ProductInOut.js +0 -2
  166. package/lib/cjs/models/products/ProductInventory.d.ts +0 -8
  167. package/lib/cjs/models/products/ProductInventory.js +0 -2
  168. package/lib/cjs/models/products/ProductLabo.d.ts +0 -5
  169. package/lib/cjs/models/products/ProductLabo.js +0 -2
  170. package/lib/cjs/models/products/ProductLoc.d.ts +0 -7
  171. package/lib/cjs/models/products/ProductLoc.js +0 -2
  172. package/lib/cjs/models/products/ProductMvt.d.ts +0 -24
  173. package/lib/cjs/models/products/ProductMvt.js +0 -2
  174. package/lib/cjs/models/products/ProductMvtInventory.d.ts +0 -8
  175. package/lib/cjs/models/products/ProductMvtInventory.js +0 -2
  176. package/lib/cjs/models/products/ProductOutReason.d.ts +0 -6
  177. package/lib/cjs/models/products/ProductOutReason.js +0 -2
  178. package/lib/cjs/models/products/ProductPromo.d.ts +0 -15
  179. package/lib/cjs/models/products/ProductPromo.js +0 -6
  180. package/lib/cjs/models/products/ProductPvd.d.ts +0 -6
  181. package/lib/cjs/models/products/ProductPvd.js +0 -2
  182. package/lib/cjs/models/products/ProductSof.d.ts +0 -6
  183. package/lib/cjs/models/products/ProductSof.js +0 -2
  184. package/lib/cjs/models/products/ProductStore.d.ts +0 -29
  185. package/lib/cjs/models/products/ProductStore.js +0 -2
  186. package/lib/cjs/models/products/ProductTcl.d.ts +0 -10
  187. package/lib/cjs/models/products/ProductTcl.js +0 -2
  188. package/lib/cjs/models/products/ProductTclGrp.d.ts +0 -8
  189. package/lib/cjs/models/products/ProductTclGrp.js +0 -2
  190. package/lib/cjs/models/products/ProductTransfert.d.ts +0 -14
  191. package/lib/cjs/models/products/ProductTransfert.js +0 -2
  192. package/lib/cjs/models/products/ProductWanted.d.ts +0 -8
  193. package/lib/cjs/models/products/ProductWanted.js +0 -2
  194. package/lib/cjs/models/products/index.d.ts +0 -26
  195. package/lib/cjs/models/products/index.js +0 -5
  196. package/lib/cjs/models/sales/CartItem.d.ts +0 -8
  197. package/lib/cjs/models/sales/CartItem.js +0 -2
  198. package/lib/cjs/models/sales/DeliveryProcess.d.ts +0 -6
  199. package/lib/cjs/models/sales/DeliveryProcess.js +0 -2
  200. package/lib/cjs/models/sales/Sale.d.ts +0 -55
  201. package/lib/cjs/models/sales/Sale.js +0 -2
  202. package/lib/cjs/models/sales/SaleDelivery.d.ts +0 -15
  203. package/lib/cjs/models/sales/SaleDelivery.js +0 -2
  204. package/lib/cjs/models/sales/SaleInfo.d.ts +0 -11
  205. package/lib/cjs/models/sales/SaleInfo.js +0 -2
  206. package/lib/cjs/models/sales/SaleItems.d.ts +0 -8
  207. package/lib/cjs/models/sales/SaleItems.js +0 -6
  208. package/lib/cjs/models/sales/SaleProduct.d.ts +0 -26
  209. package/lib/cjs/models/sales/SaleProduct.js +0 -6
  210. package/lib/cjs/models/sales/SaleProductLot.d.ts +0 -11
  211. package/lib/cjs/models/sales/SaleProductLot.js +0 -6
  212. package/lib/cjs/models/sales/SaleProductQtityIssue.d.ts +0 -9
  213. package/lib/cjs/models/sales/SaleProductQtityIssue.js +0 -2
  214. package/lib/cjs/models/sales/SaleShop.d.ts +0 -47
  215. package/lib/cjs/models/sales/SaleShop.js +0 -6
  216. package/lib/cjs/models/sales/ShopCart.d.ts +0 -4
  217. package/lib/cjs/models/sales/ShopCart.js +0 -9
  218. package/lib/cjs/models/sales/enums/SaleTreatStatus.d.ts +0 -6
  219. package/lib/cjs/models/sales/enums/SaleTreatStatus.js +0 -10
  220. package/lib/cjs/models/sales/index.d.ts +0 -13
  221. package/lib/cjs/models/sales/index.js +0 -15
  222. package/lib/cjs/models/shared/EDate.d.ts +0 -7
  223. package/lib/cjs/models/shared/EDate.js +0 -11
  224. package/lib/cjs/models/shared/EInOutMotive.d.ts +0 -12
  225. package/lib/cjs/models/shared/EInOutMotive.js +0 -16
  226. package/lib/cjs/models/shared/EPayMethod.d.ts +0 -5
  227. package/lib/cjs/models/shared/EPayMethod.js +0 -9
  228. package/lib/cjs/models/shared/IParam.d.ts +0 -26
  229. package/lib/cjs/models/shared/IParam.js +0 -2
  230. package/lib/cjs/models/shared/IPath.d.ts +0 -14
  231. package/lib/cjs/models/shared/IPath.js +0 -11
  232. package/lib/cjs/models/shared/NaAc.d.ts +0 -6
  233. package/lib/cjs/models/shared/NaAc.js +0 -2
  234. package/lib/cjs/models/shared/NaCoAc.d.ts +0 -4
  235. package/lib/cjs/models/shared/NaCoAc.js +0 -2
  236. package/lib/cjs/models/shared/NaCoShortAc.d.ts +0 -4
  237. package/lib/cjs/models/shared/NaCoShortAc.js +0 -2
  238. package/lib/cjs/models/shared/index.d.ts +0 -7
  239. package/lib/cjs/models/shared/index.js +0 -5
  240. package/lib/cjs/models/users/Address.d.ts +0 -13
  241. package/lib/cjs/models/users/Address.js +0 -2
  242. package/lib/cjs/models/users/DutyPhcie.d.ts +0 -11
  243. package/lib/cjs/models/users/DutyPhcie.js +0 -2
  244. package/lib/cjs/models/users/Gender.d.ts +0 -6
  245. package/lib/cjs/models/users/Gender.js +0 -2
  246. package/lib/cjs/models/users/Leave.d.ts +0 -14
  247. package/lib/cjs/models/users/Leave.js +0 -2
  248. package/lib/cjs/models/users/Ste.d.ts +0 -16
  249. package/lib/cjs/models/users/Ste.js +0 -2
  250. package/lib/cjs/models/users/SteGrp.d.ts +0 -7
  251. package/lib/cjs/models/users/SteGrp.js +0 -2
  252. package/lib/cjs/models/users/User.d.ts +0 -44
  253. package/lib/cjs/models/users/User.js +0 -2
  254. package/lib/cjs/models/users/UserAbs.d.ts +0 -31
  255. package/lib/cjs/models/users/UserAbs.js +0 -2
  256. package/lib/cjs/models/users/UserBase.d.ts +0 -31
  257. package/lib/cjs/models/users/UserBase.js +0 -2
  258. package/lib/cjs/models/users/UserCredit.d.ts +0 -14
  259. package/lib/cjs/models/users/UserCredit.js +0 -6
  260. package/lib/cjs/models/users/UserGrp.d.ts +0 -4
  261. package/lib/cjs/models/users/UserGrp.js +0 -2
  262. package/lib/cjs/models/users/UserNotatial.d.ts +0 -9
  263. package/lib/cjs/models/users/UserNotatial.js +0 -2
  264. package/lib/cjs/models/users/UserNote.d.ts +0 -7
  265. package/lib/cjs/models/users/UserNote.js +0 -2
  266. package/lib/cjs/models/users/UserOnline.d.ts +0 -9
  267. package/lib/cjs/models/users/UserOnline.js +0 -2
  268. package/lib/cjs/models/users/UserRole.d.ts +0 -5
  269. package/lib/cjs/models/users/UserRole.js +0 -2
  270. package/lib/cjs/models/users/UserTitr.d.ts +0 -5
  271. package/lib/cjs/models/users/UserTitr.js +0 -2
  272. package/lib/cjs/models/users/Zone.d.ts +0 -11
  273. package/lib/cjs/models/users/Zone.js +0 -2
  274. package/lib/cjs/models/users/index.d.ts +0 -17
  275. package/lib/cjs/models/users/index.js +0 -5
  276. package/lib/cjs/models/utilities/Todo.d.ts +0 -9
  277. package/lib/cjs/models/utilities/Todo.js +0 -6
  278. package/lib/cjs/models/utilities/Vehicle.d.ts +0 -8
  279. package/lib/cjs/models/utilities/Vehicle.js +0 -2
  280. package/lib/cjs/models/utilities/Wish.d.ts +0 -14
  281. package/lib/cjs/models/utilities/Wish.js +0 -6
  282. package/lib/cjs/models/utilities/index.d.ts +0 -4
  283. package/lib/cjs/models/utilities/index.js +0 -7
  284. package/lib/cjs/models/world/City.d.ts +0 -15
  285. package/lib/cjs/models/world/City.js +0 -6
  286. package/lib/cjs/models/world/Continent.d.ts +0 -6
  287. package/lib/cjs/models/world/Continent.js +0 -6
  288. package/lib/cjs/models/world/Country.d.ts +0 -12
  289. package/lib/cjs/models/world/Country.js +0 -2
  290. package/lib/cjs/models/world/Department.d.ts +0 -10
  291. package/lib/cjs/models/world/Department.js +0 -2
  292. package/lib/cjs/models/world/Quarter.d.ts +0 -7
  293. package/lib/cjs/models/world/Quarter.js +0 -2
  294. package/lib/cjs/models/world/Region.d.ts +0 -9
  295. package/lib/cjs/models/world/Region.js +0 -6
  296. package/lib/cjs/models/world/index.d.ts +0 -7
  297. package/lib/cjs/models/world/index.js +0 -9
  298. package/lib/cjs/pdfs/invoices/amountInvoice.d.ts +0 -66
  299. package/lib/cjs/pdfs/invoices/amountInvoice.js +0 -152
  300. package/lib/cjs/pdfs/invoices/infoInvoice.d.ts +0 -32
  301. package/lib/cjs/pdfs/invoices/infoInvoice.js +0 -79
  302. package/lib/cjs/pdfs/tools/tools.d.ts +0 -41
  303. package/lib/cjs/pdfs/tools/tools.js +0 -54
  304. package/lib/cjs/product.d.ts +0 -4
  305. package/lib/cjs/product.js +0 -23
  306. package/lib/cjs/react-utils.d.ts +0 -1
  307. package/lib/cjs/react-utils.js +0 -14
  308. package/lib/cjs/salaries/Salary.d.ts +0 -7
  309. package/lib/cjs/salaries/Salary.js +0 -2
  310. package/lib/cjs/salaries/SalaryScale.d.ts +0 -25
  311. package/lib/cjs/salaries/SalaryScale.js +0 -2
  312. package/lib/cjs/sale.d.ts +0 -19
  313. package/lib/cjs/sale.js +0 -137
  314. package/lib/cjs/services/authService.d.ts +0 -20
  315. package/lib/cjs/services/authService.js +0 -101
  316. package/lib/cjs/services/storageService.d.ts +0 -7
  317. package/lib/cjs/services/storageService.js +0 -64
  318. package/lib/cjs/shared/EDate.d.ts +0 -8
  319. package/lib/cjs/shared/EDate.js +0 -11
  320. package/lib/cjs/shared/EInOutMotive.d.ts +0 -13
  321. package/lib/cjs/shared/EInOutMotive.js +0 -16
  322. package/lib/cjs/shared/EPayMethod.d.ts +0 -6
  323. package/lib/cjs/shared/EPayMethod.js +0 -9
  324. package/lib/cjs/shared/IParam.d.ts +0 -26
  325. package/lib/cjs/shared/IParam.js +0 -2
  326. package/lib/cjs/shared/IPath.d.ts +0 -14
  327. package/lib/cjs/shared/IPath.js +0 -11
  328. package/lib/cjs/shared/NaAc.d.ts +0 -6
  329. package/lib/cjs/shared/NaAc.js +0 -2
  330. package/lib/cjs/shared/NaCoAc.d.ts +0 -4
  331. package/lib/cjs/shared/NaCoAc.js +0 -2
  332. package/lib/cjs/shared/NaCoShortAc.d.ts +0 -4
  333. package/lib/cjs/shared/NaCoShortAc.js +0 -2
  334. package/lib/cjs/user.d.ts +0 -35
  335. package/lib/cjs/user.js +0 -149
  336. package/lib/esm/auth.d.ts +0 -27
  337. package/lib/esm/auth.js +0 -63
  338. package/lib/esm/back-end/hlpQbuilder.d.ts +0 -7
  339. package/lib/esm/back-end/hlpQbuilder.js +0 -43
  340. package/lib/esm/back-end/index.d.ts +0 -1
  341. package/lib/esm/back-end/index.js +0 -1
  342. package/lib/esm/bill.d.ts +0 -20
  343. package/lib/esm/bill.js +0 -58
  344. package/lib/esm/helpers/hlpEntry.d.ts +0 -17
  345. package/lib/esm/helpers/hlpEntry.js +0 -86
  346. package/lib/esm/helpers/hlpProduct.d.ts +0 -18
  347. package/lib/esm/helpers/hlpProduct.js +0 -127
  348. package/lib/esm/helpers/pipes/amount-on-bill-pipe.d.ts +0 -6
  349. package/lib/esm/helpers/pipes/amount-on-bill-pipe.js +0 -7
  350. package/lib/esm/helpers/pipes/amount-on-list-bill-pipe.d.ts +0 -6
  351. package/lib/esm/helpers/pipes/amount-on-list-bill-pipe.js +0 -16
  352. package/lib/esm/helpers/pipes/stock-pipe.d.ts +0 -6
  353. package/lib/esm/helpers/pipes/stock-pipe.js +0 -19
  354. package/lib/esm/models/acts/Act.d.ts +0 -18
  355. package/lib/esm/models/acts/ActCat.d.ts +0 -4
  356. package/lib/esm/models/acts/ActCat.js +0 -1
  357. package/lib/esm/models/acts/ActLine.d.ts +0 -13
  358. package/lib/esm/models/acts/ActLine.js +0 -1
  359. package/lib/esm/models/acts/index.d.ts +0 -4
  360. package/lib/esm/models/acts/index.js +0 -1
  361. package/lib/esm/models/auth/AuthTag.d.ts +0 -6
  362. package/lib/esm/models/auth/AuthTag.js +0 -1
  363. package/lib/esm/models/auth/AuthTagCat.d.ts +0 -5
  364. package/lib/esm/models/auth/AuthTagCat.js +0 -1
  365. package/lib/esm/models/auth/index.d.ts +0 -3
  366. package/lib/esm/models/auth/index.js +0 -1
  367. package/lib/esm/models/bills/Bill.d.ts +0 -40
  368. package/lib/esm/models/bills/Bill.js +0 -1
  369. package/lib/esm/models/bills/BillCat.d.ts +0 -4
  370. package/lib/esm/models/bills/BillCat.js +0 -2
  371. package/lib/esm/models/bills/BillLine.d.ts +0 -9
  372. package/lib/esm/models/bills/BillLine.js +0 -1
  373. package/lib/esm/models/bills/BillPayment.d.ts +0 -21
  374. package/lib/esm/models/bills/BillPayment.js +0 -1
  375. package/lib/esm/models/bills/BillPaymentMethod.d.ts +0 -5
  376. package/lib/esm/models/bills/BillPaymentMethod.js +0 -1
  377. package/lib/esm/models/bills/CBillPeriod.d.ts +0 -4
  378. package/lib/esm/models/bills/CBillPeriod.js +0 -5
  379. package/lib/esm/models/bills/EBillPeriod.d.ts +0 -5
  380. package/lib/esm/models/bills/EBillPeriod.js +0 -6
  381. package/lib/esm/models/bills/EPayMethod.d.ts +0 -5
  382. package/lib/esm/models/bills/EPayMethod.js +0 -6
  383. package/lib/esm/models/bills/index.d.ts +0 -8
  384. package/lib/esm/models/bills/index.js +0 -4
  385. package/lib/esm/models/buys/Buy.d.ts +0 -19
  386. package/lib/esm/models/buys/Buy.js +0 -1
  387. package/lib/esm/models/buys/BuyCart.d.ts +0 -4
  388. package/lib/esm/models/buys/BuyCart.js +0 -1
  389. package/lib/esm/models/buys/BuyItem.d.ts +0 -5
  390. package/lib/esm/models/buys/BuyItem.js +0 -1
  391. package/lib/esm/models/buys/BuyItems.d.ts +0 -6
  392. package/lib/esm/models/buys/BuyItems.js +0 -2
  393. package/lib/esm/models/buys/index.d.ts +0 -5
  394. package/lib/esm/models/buys/index.js +0 -2
  395. package/lib/esm/models/cashs/Account.d.ts +0 -6
  396. package/lib/esm/models/cashs/Account.js +0 -1
  397. package/lib/esm/models/cashs/Bank.d.ts +0 -4
  398. package/lib/esm/models/cashs/Bank.js +0 -1
  399. package/lib/esm/models/cashs/Currency.d.ts +0 -10
  400. package/lib/esm/models/cashs/Currency.js +0 -1
  401. package/lib/esm/models/cashs/Deposit.d.ts +0 -12
  402. package/lib/esm/models/cashs/Deposit.js +0 -1
  403. package/lib/esm/models/cashs/Feed.d.ts +0 -17
  404. package/lib/esm/models/cashs/Feed.js +0 -1
  405. package/lib/esm/models/cashs/Spent.d.ts +0 -14
  406. package/lib/esm/models/cashs/Spent.js +0 -1
  407. package/lib/esm/models/cashs/index.d.ts +0 -7
  408. package/lib/esm/models/cashs/index.js +0 -1
  409. package/lib/esm/models/comptas/Entry.d.ts +0 -31
  410. package/lib/esm/models/comptas/Entry.js +0 -1
  411. package/lib/esm/models/comptas/EntryAccount.d.ts +0 -5
  412. package/lib/esm/models/comptas/EntryAccount.js +0 -1
  413. package/lib/esm/models/comptas/EntryCat.d.ts +0 -5
  414. package/lib/esm/models/comptas/EntryCat.js +0 -1
  415. package/lib/esm/models/comptas/EntryLine.d.ts +0 -23
  416. package/lib/esm/models/comptas/EntryLine.js +0 -1
  417. package/lib/esm/models/comptas/OhadaAbs.d.ts +0 -6
  418. package/lib/esm/models/comptas/OhadaAbs.js +0 -2
  419. package/lib/esm/models/comptas/OhadaCat.d.ts +0 -5
  420. package/lib/esm/models/comptas/OhadaCat.js +0 -1
  421. package/lib/esm/models/comptas/OhadaGrp.d.ts +0 -5
  422. package/lib/esm/models/comptas/OhadaGrp.js +0 -1
  423. package/lib/esm/models/comptas/OhadaPlan.d.ts +0 -3
  424. package/lib/esm/models/comptas/OhadaPlan.js +0 -1
  425. package/lib/esm/models/comptas/OhadaSubCat.d.ts +0 -5
  426. package/lib/esm/models/comptas/OhadaSubCat.js +0 -1
  427. package/lib/esm/models/comptas/index.d.ts +0 -9
  428. package/lib/esm/models/comptas/index.js +0 -1
  429. package/lib/esm/models/docs/Docu.d.ts +0 -12
  430. package/lib/esm/models/docs/Docu.js +0 -1
  431. package/lib/esm/models/docs/DocuCat.d.ts +0 -10
  432. package/lib/esm/models/docs/DocuCat.js +0 -1
  433. package/lib/esm/models/docs/Faq.d.ts +0 -10
  434. package/lib/esm/models/docs/Faq.js +0 -1
  435. package/lib/esm/models/docs/FaqCat.d.ts +0 -12
  436. package/lib/esm/models/docs/FaqCat.js +0 -1
  437. package/lib/esm/models/docs/Memo.d.ts +0 -8
  438. package/lib/esm/models/docs/Memo.js +0 -1
  439. package/lib/esm/models/docs/MemoCat.d.ts +0 -8
  440. package/lib/esm/models/docs/MemoCat.js +0 -1
  441. package/lib/esm/models/docs/index.d.ts +0 -7
  442. package/lib/esm/models/docs/index.js +0 -1
  443. package/lib/esm/models/index.d.ts +0 -14
  444. package/lib/esm/models/index.js +0 -14
  445. package/lib/esm/models/mails/Mail.d.ts +0 -9
  446. package/lib/esm/models/mails/Mail.js +0 -1
  447. package/lib/esm/models/mails/MailMass.d.ts +0 -8
  448. package/lib/esm/models/mails/MailMass.js +0 -1
  449. package/lib/esm/models/mails/MsgAbs.d.ts +0 -6
  450. package/lib/esm/models/mails/MsgAbs.js +0 -2
  451. package/lib/esm/models/mails/MsgAlert.d.ts +0 -9
  452. package/lib/esm/models/mails/MsgAlert.js +0 -1
  453. package/lib/esm/models/mails/MsgChat.d.ts +0 -4
  454. package/lib/esm/models/mails/MsgChat.js +0 -1
  455. package/lib/esm/models/mails/index.d.ts +0 -5
  456. package/lib/esm/models/mails/index.js +0 -1
  457. package/lib/esm/models/products/Product.d.ts +0 -78
  458. package/lib/esm/models/products/Product.js +0 -1
  459. package/lib/esm/models/products/ProductAgcy.d.ts +0 -6
  460. package/lib/esm/models/products/ProductAgcy.js +0 -1
  461. package/lib/esm/models/products/ProductAmm.d.ts +0 -10
  462. package/lib/esm/models/products/ProductAmm.js +0 -1
  463. package/lib/esm/models/products/ProductBuy.d.ts +0 -10
  464. package/lib/esm/models/products/ProductBuy.js +0 -1
  465. package/lib/esm/models/products/ProductCat.d.ts +0 -6
  466. package/lib/esm/models/products/ProductCat.js +0 -1
  467. package/lib/esm/models/products/ProductDci.d.ts +0 -6
  468. package/lib/esm/models/products/ProductDci.js +0 -1
  469. package/lib/esm/models/products/ProductDepot.d.ts +0 -9
  470. package/lib/esm/models/products/ProductDepot.js +0 -1
  471. package/lib/esm/models/products/ProductDos.d.ts +0 -5
  472. package/lib/esm/models/products/ProductDos.js +0 -1
  473. package/lib/esm/models/products/ProductFg.js +0 -1
  474. package/lib/esm/models/products/ProductIn.d.ts +0 -8
  475. package/lib/esm/models/products/ProductIn.js +0 -1
  476. package/lib/esm/models/products/ProductInOut.d.ts +0 -26
  477. package/lib/esm/models/products/ProductInOut.js +0 -1
  478. package/lib/esm/models/products/ProductInventory.d.ts +0 -8
  479. package/lib/esm/models/products/ProductInventory.js +0 -1
  480. package/lib/esm/models/products/ProductLabo.d.ts +0 -5
  481. package/lib/esm/models/products/ProductLabo.js +0 -1
  482. package/lib/esm/models/products/ProductLoc.d.ts +0 -7
  483. package/lib/esm/models/products/ProductLoc.js +0 -1
  484. package/lib/esm/models/products/ProductMvt.d.ts +0 -24
  485. package/lib/esm/models/products/ProductMvt.js +0 -1
  486. package/lib/esm/models/products/ProductMvtInventory.d.ts +0 -8
  487. package/lib/esm/models/products/ProductMvtInventory.js +0 -1
  488. package/lib/esm/models/products/ProductOutReason.d.ts +0 -6
  489. package/lib/esm/models/products/ProductOutReason.js +0 -1
  490. package/lib/esm/models/products/ProductPromo.d.ts +0 -15
  491. package/lib/esm/models/products/ProductPromo.js +0 -2
  492. package/lib/esm/models/products/ProductPvd.d.ts +0 -6
  493. package/lib/esm/models/products/ProductPvd.js +0 -1
  494. package/lib/esm/models/products/ProductSof.d.ts +0 -6
  495. package/lib/esm/models/products/ProductSof.js +0 -1
  496. package/lib/esm/models/products/ProductStore.d.ts +0 -29
  497. package/lib/esm/models/products/ProductStore.js +0 -1
  498. package/lib/esm/models/products/ProductTcl.d.ts +0 -10
  499. package/lib/esm/models/products/ProductTcl.js +0 -1
  500. package/lib/esm/models/products/ProductTclGrp.d.ts +0 -8
  501. package/lib/esm/models/products/ProductTclGrp.js +0 -1
  502. package/lib/esm/models/products/ProductTransfert.d.ts +0 -14
  503. package/lib/esm/models/products/ProductTransfert.js +0 -1
  504. package/lib/esm/models/products/ProductWanted.d.ts +0 -8
  505. package/lib/esm/models/products/ProductWanted.js +0 -1
  506. package/lib/esm/models/products/index.d.ts +0 -26
  507. package/lib/esm/models/products/index.js +0 -2
  508. package/lib/esm/models/sales/CartItem.d.ts +0 -8
  509. package/lib/esm/models/sales/CartItem.js +0 -1
  510. package/lib/esm/models/sales/DeliveryProcess.d.ts +0 -6
  511. package/lib/esm/models/sales/DeliveryProcess.js +0 -1
  512. package/lib/esm/models/sales/Sale.d.ts +0 -55
  513. package/lib/esm/models/sales/Sale.js +0 -1
  514. package/lib/esm/models/sales/SaleDelivery.d.ts +0 -15
  515. package/lib/esm/models/sales/SaleDelivery.js +0 -1
  516. package/lib/esm/models/sales/SaleInfo.d.ts +0 -11
  517. package/lib/esm/models/sales/SaleInfo.js +0 -1
  518. package/lib/esm/models/sales/SaleItems.d.ts +0 -8
  519. package/lib/esm/models/sales/SaleItems.js +0 -2
  520. package/lib/esm/models/sales/SaleProduct.d.ts +0 -26
  521. package/lib/esm/models/sales/SaleProduct.js +0 -2
  522. package/lib/esm/models/sales/SaleProductLot.d.ts +0 -11
  523. package/lib/esm/models/sales/SaleProductLot.js +0 -2
  524. package/lib/esm/models/sales/SaleProductQtityIssue.d.ts +0 -9
  525. package/lib/esm/models/sales/SaleProductQtityIssue.js +0 -1
  526. package/lib/esm/models/sales/SaleShop.d.ts +0 -47
  527. package/lib/esm/models/sales/SaleShop.js +0 -2
  528. package/lib/esm/models/sales/ShopCart.d.ts +0 -4
  529. package/lib/esm/models/sales/ShopCart.js +0 -5
  530. package/lib/esm/models/sales/enums/SaleTreatStatus.d.ts +0 -6
  531. package/lib/esm/models/sales/enums/SaleTreatStatus.js +0 -7
  532. package/lib/esm/models/sales/index.d.ts +0 -13
  533. package/lib/esm/models/sales/index.js +0 -7
  534. package/lib/esm/models/shared/EDate.d.ts +0 -7
  535. package/lib/esm/models/shared/EDate.js +0 -8
  536. package/lib/esm/models/shared/EInOutMotive.d.ts +0 -12
  537. package/lib/esm/models/shared/EInOutMotive.js +0 -13
  538. package/lib/esm/models/shared/EPayMethod.d.ts +0 -5
  539. package/lib/esm/models/shared/EPayMethod.js +0 -6
  540. package/lib/esm/models/shared/IParam.d.ts +0 -26
  541. package/lib/esm/models/shared/IParam.js +0 -1
  542. package/lib/esm/models/shared/IPath.d.ts +0 -14
  543. package/lib/esm/models/shared/IPath.js +0 -10
  544. package/lib/esm/models/shared/NaAc.d.ts +0 -6
  545. package/lib/esm/models/shared/NaAc.js +0 -1
  546. package/lib/esm/models/shared/NaCoAc.d.ts +0 -4
  547. package/lib/esm/models/shared/NaCoAc.js +0 -1
  548. package/lib/esm/models/shared/NaCoShortAc.d.ts +0 -4
  549. package/lib/esm/models/shared/NaCoShortAc.js +0 -1
  550. package/lib/esm/models/shared/index.d.ts +0 -7
  551. package/lib/esm/models/shared/index.js +0 -2
  552. package/lib/esm/models/users/Address.d.ts +0 -13
  553. package/lib/esm/models/users/Address.js +0 -1
  554. package/lib/esm/models/users/DutyPhcie.d.ts +0 -11
  555. package/lib/esm/models/users/DutyPhcie.js +0 -1
  556. package/lib/esm/models/users/Gender.d.ts +0 -6
  557. package/lib/esm/models/users/Gender.js +0 -1
  558. package/lib/esm/models/users/Leave.d.ts +0 -14
  559. package/lib/esm/models/users/Leave.js +0 -1
  560. package/lib/esm/models/users/Ste.d.ts +0 -16
  561. package/lib/esm/models/users/Ste.js +0 -1
  562. package/lib/esm/models/users/SteGrp.d.ts +0 -7
  563. package/lib/esm/models/users/SteGrp.js +0 -1
  564. package/lib/esm/models/users/User.d.ts +0 -44
  565. package/lib/esm/models/users/User.js +0 -1
  566. package/lib/esm/models/users/UserAbs.d.ts +0 -31
  567. package/lib/esm/models/users/UserAbs.js +0 -1
  568. package/lib/esm/models/users/UserBase.d.ts +0 -31
  569. package/lib/esm/models/users/UserBase.js +0 -1
  570. package/lib/esm/models/users/UserCredit.d.ts +0 -14
  571. package/lib/esm/models/users/UserCredit.js +0 -2
  572. package/lib/esm/models/users/UserGrp.d.ts +0 -4
  573. package/lib/esm/models/users/UserGrp.js +0 -1
  574. package/lib/esm/models/users/UserNotatial.d.ts +0 -9
  575. package/lib/esm/models/users/UserNotatial.js +0 -1
  576. package/lib/esm/models/users/UserNote.d.ts +0 -7
  577. package/lib/esm/models/users/UserNote.js +0 -1
  578. package/lib/esm/models/users/UserOnline.d.ts +0 -9
  579. package/lib/esm/models/users/UserOnline.js +0 -1
  580. package/lib/esm/models/users/UserRole.d.ts +0 -5
  581. package/lib/esm/models/users/UserRole.js +0 -1
  582. package/lib/esm/models/users/UserTitr.d.ts +0 -5
  583. package/lib/esm/models/users/UserTitr.js +0 -1
  584. package/lib/esm/models/users/Zone.d.ts +0 -11
  585. package/lib/esm/models/users/Zone.js +0 -1
  586. package/lib/esm/models/users/index.d.ts +0 -17
  587. package/lib/esm/models/users/index.js +0 -2
  588. package/lib/esm/models/utilities/Todo.d.ts +0 -9
  589. package/lib/esm/models/utilities/Todo.js +0 -2
  590. package/lib/esm/models/utilities/Vehicle.d.ts +0 -8
  591. package/lib/esm/models/utilities/Vehicle.js +0 -1
  592. package/lib/esm/models/utilities/Wish.d.ts +0 -14
  593. package/lib/esm/models/utilities/Wish.js +0 -2
  594. package/lib/esm/models/utilities/index.d.ts +0 -4
  595. package/lib/esm/models/utilities/index.js +0 -3
  596. package/lib/esm/models/world/City.d.ts +0 -15
  597. package/lib/esm/models/world/City.js +0 -2
  598. package/lib/esm/models/world/Continent.d.ts +0 -6
  599. package/lib/esm/models/world/Continent.js +0 -2
  600. package/lib/esm/models/world/Country.d.ts +0 -12
  601. package/lib/esm/models/world/Country.js +0 -1
  602. package/lib/esm/models/world/Department.d.ts +0 -10
  603. package/lib/esm/models/world/Department.js +0 -1
  604. package/lib/esm/models/world/Quarter.d.ts +0 -7
  605. package/lib/esm/models/world/Quarter.js +0 -1
  606. package/lib/esm/models/world/Region.d.ts +0 -9
  607. package/lib/esm/models/world/Region.js +0 -2
  608. package/lib/esm/models/world/index.d.ts +0 -7
  609. package/lib/esm/models/world/index.js +0 -4
  610. package/lib/esm/pdfs/invoices/amountInvoice.d.ts +0 -66
  611. package/lib/esm/pdfs/invoices/amountInvoice.js +0 -145
  612. package/lib/esm/pdfs/invoices/infoInvoice.d.ts +0 -32
  613. package/lib/esm/pdfs/invoices/infoInvoice.js +0 -74
  614. package/lib/esm/pdfs/tools/tools.d.ts +0 -41
  615. package/lib/esm/pdfs/tools/tools.js +0 -48
  616. package/lib/esm/product.d.ts +0 -4
  617. package/lib/esm/product.js +0 -18
  618. package/lib/esm/react-utils.d.ts +0 -1
  619. package/lib/esm/react-utils.js +0 -10
  620. package/lib/esm/salaries/Salary.d.ts +0 -7
  621. package/lib/esm/salaries/Salary.js +0 -1
  622. package/lib/esm/salaries/SalaryScale.d.ts +0 -25
  623. package/lib/esm/salaries/SalaryScale.js +0 -1
  624. package/lib/esm/sale.d.ts +0 -19
  625. package/lib/esm/sale.js +0 -116
  626. package/lib/esm/services/authService.d.ts +0 -20
  627. package/lib/esm/services/authService.js +0 -94
  628. package/lib/esm/services/storageService.d.ts +0 -7
  629. package/lib/esm/services/storageService.js +0 -62
  630. package/lib/esm/shared/EDate.d.ts +0 -8
  631. package/lib/esm/shared/EDate.js +0 -9
  632. package/lib/esm/shared/EInOutMotive.d.ts +0 -13
  633. package/lib/esm/shared/EInOutMotive.js +0 -14
  634. package/lib/esm/shared/EPayMethod.d.ts +0 -6
  635. package/lib/esm/shared/EPayMethod.js +0 -7
  636. package/lib/esm/shared/IParam.d.ts +0 -26
  637. package/lib/esm/shared/IParam.js +0 -1
  638. package/lib/esm/shared/IPath.d.ts +0 -14
  639. package/lib/esm/shared/IPath.js +0 -10
  640. package/lib/esm/shared/NaAc.d.ts +0 -6
  641. package/lib/esm/shared/NaAc.js +0 -1
  642. package/lib/esm/shared/NaCoAc.d.ts +0 -4
  643. package/lib/esm/shared/NaCoAc.js +0 -1
  644. package/lib/esm/shared/NaCoShortAc.d.ts +0 -4
  645. package/lib/esm/shared/NaCoShortAc.js +0 -1
  646. package/lib/esm/user.d.ts +0 -35
  647. package/lib/esm/user.js +0 -106
  648. /package/lib/cjs/{models/acts/Act.js → products/models/ProductWay.js} +0 -0
  649. /package/lib/esm/{models/acts/Act.js → products/models/ProductWay.js} +0 -0
@@ -3,7 +3,7 @@ import Entry from "../../comptas/models/Entry";
3
3
  import HousingRented from "../../estates/models/HousingRented";
4
4
  import Sale from "../../sales/models/Sale";
5
5
  import User from "../../users/models/User";
6
- import { BillCat } from "./BillCat";
6
+ import BillCat from "./BillCat";
7
7
  import BillLine from "./BillLine";
8
8
  import BillPayment from "./BillPayment";
9
9
  export default interface Bill {
@@ -1,4 +1,4 @@
1
- export declare class BillCat {
1
+ export default interface BillCat {
2
2
  id: number;
3
3
  name: string;
4
4
  }
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BillCat = void 0;
4
- class BillCat {
5
- }
6
- exports.BillCat = BillCat;
@@ -1,4 +1,5 @@
1
1
  export { default as Bill } from "./Bill";
2
+ export { default as BillCat } from "./BillCat";
2
3
  export { default as BillLine } from "./BillLine";
3
4
  export { default as BillPayment } from "./BillPayment";
4
5
  export { default as BillPaymentMethod } from "./BillPaymentMethod";
@@ -4,12 +4,12 @@ export default interface HousingRented {
4
4
  id: number;
5
5
  dateIn: Date;
6
6
  dateOut: Date;
7
- price: number;
8
7
  deposit: number;
9
- prepaid: number;
8
+ encoder?: User;
9
+ housing?: Housing;
10
+ housingId?: number;
10
11
  lodger?: User;
11
12
  lodgerId?: number;
12
- housingId?: number;
13
- housing?: Housing;
14
- encoder?: User;
13
+ prepaid: number;
14
+ price: number;
15
15
  }
@@ -11,6 +11,7 @@ import ProductPromo from "./ProductPromo";
11
11
  import ProductSof from "./ProductSof";
12
12
  import ProductStore from "./ProductStore";
13
13
  import ProductTcl from "./ProductTcl";
14
+ import ProductWay from "./ProductWay";
14
15
  export default interface Product {
15
16
  id: number;
16
17
  ref?: string;
@@ -75,4 +76,5 @@ export default interface Product {
75
76
  promos?: ProductPromo[];
76
77
  stores?: ProductStore[];
77
78
  store?: ProductStore;
79
+ way?: ProductWay;
78
80
  }
@@ -1,4 +1,4 @@
1
- export interface ProductFg {
1
+ export default interface ProductWay {
2
2
  id?: number;
3
3
  name?: string;
4
4
  isActive?: boolean;
@@ -1,4 +1,5 @@
1
1
  import User from "../users/models/User";
2
2
  import Product from "./models/Product";
3
3
  export declare const unitPriceByClientCat: (product: Product, client: User, speUnitPrice?: number, addDiscount?: boolean) => number;
4
+ export declare const unitPriceByClientCatInPhcy: (product: Product, client: User, speUnitPrice?: number, addDiscount?: boolean) => number;
4
5
  export declare const productCatCode: (product: Product, catCodes: string[]) => boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.productCatCode = exports.unitPriceByClientCat = void 0;
3
+ exports.productCatCode = exports.unitPriceByClientCatInPhcy = exports.unitPriceByClientCat = void 0;
4
4
  const user_1 = require("../users/user");
5
5
  const utils_1 = require("../utils");
6
6
  const unitPriceByClientCat = (product, client, speUnitPrice = 0, addDiscount = false) => {
@@ -17,6 +17,20 @@ const unitPriceByClientCat = (product, client, speUnitPrice = 0, addDiscount = f
17
17
  : Math.ceil(product.stores[0].salePrice * clientCoef);
18
18
  };
19
19
  exports.unitPriceByClientCat = unitPriceByClientCat;
20
+ const unitPriceByClientCatInPhcy = (product, client, speUnitPrice = 0, addDiscount = false) => {
21
+ if (speUnitPrice > 0) {
22
+ return speUnitPrice;
23
+ }
24
+ // const store = await getCustomRepository(ProductStoreRepository).getOneStoreByParams({storeName: 'cpa', productId: product.id})
25
+ if (product.store.discountRate && addDiscount) {
26
+ return Math.ceil(product.store.publicPrice) - Math.ceil((0, utils_1.calculPercent)(product.store.publicPrice, product.store.discountRate));
27
+ }
28
+ const clientCoef = !client ? 1 : (0, user_1.userCoef)(client);
29
+ return (0, exports.productCatCode)(product, ["spe", "para"])
30
+ ? Math.ceil(product.store.publicPrice)
31
+ : Math.ceil(product.store.publicPrice * clientCoef);
32
+ };
33
+ exports.unitPriceByClientCatInPhcy = unitPriceByClientCatInPhcy;
20
34
  const productCatCode = (product, catCodes) => {
21
35
  return catCodes.includes(product.cat.code && product.cat.code.toLowerCase());
22
36
  };
@@ -20,6 +20,7 @@ export declare const titleCase: (str: string) => string;
20
20
  export declare const limitTo: (value: string, limit?: number, trail?: string) => string;
21
21
  export declare const sleep: (ms: number) => Promise<unknown>;
22
22
  export declare const wakeUp: (sleep: any) => void;
23
+ export declare const checkAuth: (auth?: boolean) => boolean;
23
24
  export declare const formatToString: (val: number, separator?: string, currency?: string) => string;
24
25
  export declare const currencyFormatter: (val: number, separator?: string, currency?: string) => string;
25
26
  export declare const formatToStringCfa: (val: number) => string;
@@ -33,6 +34,7 @@ export declare const deepClone: (obj: any) => any;
33
34
  export declare const diffArraysByFunc: (arr1: any[], arr2: any[], func: any) => any[];
34
35
  export declare const diffArraysByProp: (arr1: any[], arr2: any[], propArr1?: string, propArr2?: string) => any[];
35
36
  export declare const removeString: (text: string, word: string) => string;
37
+ export declare const stringifyFormatter: (data: any, space?: string | number) => string;
36
38
  export declare const removeBackSlashOccurences: (text: string, toChar: string) => string;
37
39
  export declare const genSequenceRef: (refs: any[], startChars: string, zeroFillWidth: number, dateFormat?: string) => string;
38
40
  export declare const sesStorageSet: (key: string, val: any) => void;
package/lib/cjs/utils.js CHANGED
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.padStartWithZero = exports.formatMonthYearToLocaleString = exports.calculPercent = exports.validEmail = exports.convertToCfa = exports.packAndUnit = exports.unCheckedAll = exports.inputChecked = exports.arrayMultiChecked = exports.getPeriodDateColor = exports.getColorAccordingToDate = exports.genRandomColour = exports.formatNgbDate = exports.getNbOfDaysBetweenTwoDates = exports.displayDateRangeFr = exports.reformatDates = exports.dateToString = exports.dateDiff = exports.dateFormatter = exports.replaceSpacesWith = exports.replaceAllIn = exports.toPlural = exports.sesStorageGet = exports.sesStorageSet = exports.genSequenceRef = exports.removeBackSlashOccurences = exports.removeString = exports.diffArraysByProp = exports.diffArraysByFunc = exports.deepClone = exports.findFirstSequenceMissing = exports.fillNumWithZero = exports.findSequencesMissing = exports.sequencesToNumbers = exports.notInSequence = exports.currencyFormatterCfa = exports.formatToStringCfa = exports.currencyFormatter = exports.formatToString = exports.wakeUp = exports.sleep = exports.limitTo = exports.titleCase = exports.toObjectDate = exports.duplicateObjects = exports.removeDuplicateObjects = exports.getRandomColor = exports.calPercent = exports.percentOf = exports.genDateMinutesStep = void 0;
7
- exports.toggleProp = exports.roundLastNDigits = exports.removeParamKeyName = exports.countryIsoToFlag = exports.monthStringName = exports.returnBool = exports.formatAmountToString = exports.reduceSum = exports.sumAmount = exports.fillEndWithZero = exports.fillStartWithZero = exports.absFromSequence = exports.returnDates = exports.displayFrDatePeriode = exports.getArrayOfRandomColor = exports.randomHslColor = exports.randomHexColor = exports.randomRgbColor = exports.randomInteger = exports.insertAtInArray = exports.isBirthday = exports.padEndWithZero = void 0;
6
+ exports.calculPercent = exports.validEmail = exports.convertToCfa = exports.packAndUnit = exports.unCheckedAll = exports.inputChecked = exports.arrayMultiChecked = exports.getPeriodDateColor = exports.getColorAccordingToDate = exports.genRandomColour = exports.formatNgbDate = exports.getNbOfDaysBetweenTwoDates = exports.displayDateRangeFr = exports.reformatDates = exports.dateToString = exports.dateDiff = exports.dateFormatter = exports.replaceSpacesWith = exports.replaceAllIn = exports.toPlural = exports.sesStorageGet = exports.sesStorageSet = exports.genSequenceRef = exports.removeBackSlashOccurences = exports.stringifyFormatter = exports.removeString = exports.diffArraysByProp = exports.diffArraysByFunc = exports.deepClone = exports.findFirstSequenceMissing = exports.fillNumWithZero = exports.findSequencesMissing = exports.sequencesToNumbers = exports.notInSequence = exports.currencyFormatterCfa = exports.formatToStringCfa = exports.currencyFormatter = exports.formatToString = exports.checkAuth = exports.wakeUp = exports.sleep = exports.limitTo = exports.titleCase = exports.toObjectDate = exports.duplicateObjects = exports.removeDuplicateObjects = exports.getRandomColor = exports.calPercent = exports.percentOf = exports.genDateMinutesStep = void 0;
7
+ exports.toggleProp = exports.roundLastNDigits = exports.removeParamKeyName = exports.countryIsoToFlag = exports.monthStringName = exports.returnBool = exports.formatAmountToString = exports.reduceSum = exports.sumAmount = exports.fillEndWithZero = exports.fillStartWithZero = exports.absFromSequence = exports.returnDates = exports.displayFrDatePeriode = exports.getArrayOfRandomColor = exports.randomHslColor = exports.randomHexColor = exports.randomRgbColor = exports.randomInteger = exports.insertAtInArray = exports.isBirthday = exports.padEndWithZero = exports.padStartWithZero = exports.formatMonthYearToLocaleString = void 0;
8
8
  const dayjs_1 = __importDefault(require("dayjs"));
9
9
  const relativeTime_1 = __importDefault(require("dayjs/plugin/relativeTime"));
10
10
  const lodash_1 = __importDefault(require("lodash"));
@@ -161,6 +161,10 @@ const wakeUp = (sleep) => {
161
161
  clearInterval(sleep);
162
162
  };
163
163
  exports.wakeUp = wakeUp;
164
+ const checkAuth = (auth = true) => {
165
+ return auth;
166
+ };
167
+ exports.checkAuth = checkAuth;
164
168
  // -- to remove later
165
169
  const formatToString = (val, separator = " ", currency = "") => {
166
170
  // return String(val).replace(/(.)(?=(\d{3})+$)/g, '$1,');
@@ -236,6 +240,10 @@ const removeString = (text, word) => {
236
240
  return text.toLowerCase().replace(word.toLowerCase(), "") || text;
237
241
  };
238
242
  exports.removeString = removeString;
243
+ const stringifyFormatter = (data, space = "\t") => {
244
+ return JSON.stringify(data, null, space);
245
+ };
246
+ exports.stringifyFormatter = stringifyFormatter;
239
247
  const removeBackSlashOccurences = (text, toChar) => {
240
248
  const regex = /\/+/gi;
241
249
  return String(text).toLowerCase().replace(regex, toChar) || text;
@@ -645,7 +653,9 @@ const sumAmount = (tobs, property) => {
645
653
  exports.sumAmount = sumAmount;
646
654
  const reduceSum = (tobs, property) => {
647
655
  return tobs.reduce((prev, curr) => {
648
- return +prev + +curr[property];
656
+ if (curr) {
657
+ return +prev + +curr[property];
658
+ }
649
659
  }, 0);
650
660
  };
651
661
  exports.reduceSum = reduceSum;
@@ -3,7 +3,7 @@ import Entry from "../../comptas/models/Entry";
3
3
  import HousingRented from "../../estates/models/HousingRented";
4
4
  import Sale from "../../sales/models/Sale";
5
5
  import User from "../../users/models/User";
6
- import { BillCat } from "./BillCat";
6
+ import BillCat from "./BillCat";
7
7
  import BillLine from "./BillLine";
8
8
  import BillPayment from "./BillPayment";
9
9
  export default interface Bill {
@@ -1,4 +1,4 @@
1
- export declare class BillCat {
1
+ export default interface BillCat {
2
2
  id: number;
3
3
  name: string;
4
4
  }
@@ -1,2 +1 @@
1
- export class BillCat {
2
- }
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  export { default as Bill } from "./Bill";
2
+ export { default as BillCat } from "./BillCat";
2
3
  export { default as BillLine } from "./BillLine";
3
4
  export { default as BillPayment } from "./BillPayment";
4
5
  export { default as BillPaymentMethod } from "./BillPaymentMethod";
@@ -4,12 +4,12 @@ export default interface HousingRented {
4
4
  id: number;
5
5
  dateIn: Date;
6
6
  dateOut: Date;
7
- price: number;
8
7
  deposit: number;
9
- prepaid: number;
8
+ encoder?: User;
9
+ housing?: Housing;
10
+ housingId?: number;
10
11
  lodger?: User;
11
12
  lodgerId?: number;
12
- housingId?: number;
13
- housing?: Housing;
14
- encoder?: User;
13
+ prepaid: number;
14
+ price: number;
15
15
  }
@@ -11,6 +11,7 @@ import ProductPromo from "./ProductPromo";
11
11
  import ProductSof from "./ProductSof";
12
12
  import ProductStore from "./ProductStore";
13
13
  import ProductTcl from "./ProductTcl";
14
+ import ProductWay from "./ProductWay";
14
15
  export default interface Product {
15
16
  id: number;
16
17
  ref?: string;
@@ -75,4 +76,5 @@ export default interface Product {
75
76
  promos?: ProductPromo[];
76
77
  stores?: ProductStore[];
77
78
  store?: ProductStore;
79
+ way?: ProductWay;
78
80
  }
@@ -1,4 +1,4 @@
1
- export interface ProductFg {
1
+ export default interface ProductWay {
2
2
  id?: number;
3
3
  name?: string;
4
4
  isActive?: boolean;
@@ -1,4 +1,5 @@
1
1
  import User from "../users/models/User";
2
2
  import Product from "./models/Product";
3
3
  export declare const unitPriceByClientCat: (product: Product, client: User, speUnitPrice?: number, addDiscount?: boolean) => number;
4
+ export declare const unitPriceByClientCatInPhcy: (product: Product, client: User, speUnitPrice?: number, addDiscount?: boolean) => number;
4
5
  export declare const productCatCode: (product: Product, catCodes: string[]) => boolean;
@@ -13,6 +13,19 @@ export const unitPriceByClientCat = (product, client, speUnitPrice = 0, addDisco
13
13
  ? Math.ceil(product.stores[0].salePrice)
14
14
  : Math.ceil(product.stores[0].salePrice * clientCoef);
15
15
  };
16
+ export const unitPriceByClientCatInPhcy = (product, client, speUnitPrice = 0, addDiscount = false) => {
17
+ if (speUnitPrice > 0) {
18
+ return speUnitPrice;
19
+ }
20
+ // const store = await getCustomRepository(ProductStoreRepository).getOneStoreByParams({storeName: 'cpa', productId: product.id})
21
+ if (product.store.discountRate && addDiscount) {
22
+ return Math.ceil(product.store.publicPrice) - Math.ceil(calculPercent(product.store.publicPrice, product.store.discountRate));
23
+ }
24
+ const clientCoef = !client ? 1 : userCoef(client);
25
+ return productCatCode(product, ["spe", "para"])
26
+ ? Math.ceil(product.store.publicPrice)
27
+ : Math.ceil(product.store.publicPrice * clientCoef);
28
+ };
16
29
  export const productCatCode = (product, catCodes) => {
17
30
  return catCodes.includes(product.cat.code && product.cat.code.toLowerCase());
18
31
  };
@@ -20,6 +20,7 @@ export declare const titleCase: (str: string) => string;
20
20
  export declare const limitTo: (value: string, limit?: number, trail?: string) => string;
21
21
  export declare const sleep: (ms: number) => Promise<unknown>;
22
22
  export declare const wakeUp: (sleep: any) => void;
23
+ export declare const checkAuth: (auth?: boolean) => boolean;
23
24
  export declare const formatToString: (val: number, separator?: string, currency?: string) => string;
24
25
  export declare const currencyFormatter: (val: number, separator?: string, currency?: string) => string;
25
26
  export declare const formatToStringCfa: (val: number) => string;
@@ -33,6 +34,7 @@ export declare const deepClone: (obj: any) => any;
33
34
  export declare const diffArraysByFunc: (arr1: any[], arr2: any[], func: any) => any[];
34
35
  export declare const diffArraysByProp: (arr1: any[], arr2: any[], propArr1?: string, propArr2?: string) => any[];
35
36
  export declare const removeString: (text: string, word: string) => string;
37
+ export declare const stringifyFormatter: (data: any, space?: string | number) => string;
36
38
  export declare const removeBackSlashOccurences: (text: string, toChar: string) => string;
37
39
  export declare const genSequenceRef: (refs: any[], startChars: string, zeroFillWidth: number, dateFormat?: string) => string;
38
40
  export declare const sesStorageSet: (key: string, val: any) => void;
package/lib/esm/utils.js CHANGED
@@ -143,6 +143,9 @@ export const sleep = (ms) => {
143
143
  export const wakeUp = (sleep) => {
144
144
  clearInterval(sleep);
145
145
  };
146
+ export const checkAuth = (auth = true) => {
147
+ return auth;
148
+ };
146
149
  // -- to remove later
147
150
  export const formatToString = (val, separator = " ", currency = "") => {
148
151
  // return String(val).replace(/(.)(?=(\d{3})+$)/g, '$1,');
@@ -205,6 +208,9 @@ export const diffArraysByProp = (arr1, arr2, propArr1 = "id", propArr2 = "id") =
205
208
  export const removeString = (text, word) => {
206
209
  return text.toLowerCase().replace(word.toLowerCase(), "") || text;
207
210
  };
211
+ export const stringifyFormatter = (data, space = "\t") => {
212
+ return JSON.stringify(data, null, space);
213
+ };
208
214
  export const removeBackSlashOccurences = (text, toChar) => {
209
215
  const regex = /\/+/gi;
210
216
  return String(text).toLowerCase().replace(regex, toChar) || text;
@@ -574,7 +580,9 @@ export const sumAmount = (tobs, property) => {
574
580
  };
575
581
  export const reduceSum = (tobs, property) => {
576
582
  return tobs.reduce((prev, curr) => {
577
- return +prev + +curr[property];
583
+ if (curr) {
584
+ return +prev + +curr[property];
585
+ }
578
586
  }, 0);
579
587
  };
580
588
  export const formatAmountToString = (amount, opt) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.3.63",
3
+ "version": "1.3.65",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -18,23 +18,23 @@
18
18
  "devDependencies": {
19
19
  "@types/bcryptjs": "^2.4.6",
20
20
  "@types/express": "^4.17.21",
21
- "@types/lodash": "^4.14.202",
21
+ "@types/lodash": "^4.17.0",
22
22
  "@types/pdfmake": "^0.2.9",
23
23
  "@types/randomatic": "^3.1.5",
24
- "@types/react": "^18.2.61"
24
+ "@types/react": "^18.2.66"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "^1.6.7",
27
+ "axios": "^1.6.8",
28
28
  "bcryptjs": "^2.4.3",
29
29
  "classnames": "^2.5.1",
30
30
  "dayjs": "^1.11.10",
31
31
  "express": "^4.18.3",
32
32
  "jwt-decode": "^4.0.0",
33
33
  "lodash": "^4.17.21",
34
- "pdfmake": "^0.2.9",
34
+ "pdfmake": "^0.2.10",
35
35
  "randomatic": "^3.1.1",
36
36
  "typeorm": "^0.3.20",
37
- "typescript": "^5.3.3",
38
- "yup": "^1.3.3"
37
+ "typescript": "^5.4.2",
38
+ "yup": "^1.4.0"
39
39
  }
40
40
  }
package/lib/cjs/auth.d.ts DELETED
@@ -1,27 +0,0 @@
1
- import { AuthTag, Ste, SteGrp, UserGrp, UserRole } from "./models";
2
- interface AuthParam {
3
- tag?: string;
4
- roles?: string[];
5
- grps?: string[];
6
- staff?: {
7
- roles?: string[];
8
- steGrps?: string[];
9
- };
10
- client?: {
11
- roles?: string[];
12
- steGrps?: string[];
13
- };
14
- rolesClient?: string[];
15
- steGrps?: string[];
16
- steNames?: string[];
17
- url?: string;
18
- }
19
- type TData = {
20
- tags?: AuthTag[];
21
- ste: Ste;
22
- role: UserRole;
23
- grp: UserGrp;
24
- steGrp: SteGrp;
25
- };
26
- declare const getAuth: <T extends TData>(authUser: T, authSte: string[], param?: AuthParam) => boolean;
27
- export { AuthParam, getAuth };
package/lib/cjs/auth.js DELETED
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAuth = void 0;
4
- const user_1 = require("./user");
5
- // const getAuth = <T extends TData>(authUser: User | UserNotarial, authSte: string[], param?: AuthParam) => {
6
- const getAuth = (authUser, authSte, param) => {
7
- var _a, _b, _c, _d, _e, _f;
8
- if ((param === null || param === void 0 ? void 0 : param.tag) && (authUser === null || authUser === void 0 ? void 0 : authUser.tags.length)) {
9
- const tags = [];
10
- for (const tag of authUser.tags) {
11
- tags.push(tag.code.toLowerCase());
12
- }
13
- const authIn = tags.includes(param.tag.toLowerCase());
14
- if (authIn) {
15
- return true;
16
- }
17
- }
18
- if (((_a = param === null || param === void 0 ? void 0 : param.roles) === null || _a === void 0 ? void 0 : _a.length) > 0) {
19
- if ((0, user_1.isStaffSte)(authSte, authUser.ste.name) && ["sadm", ...param.roles].includes(authUser.role.code.toLowerCase())) {
20
- return true;
21
- }
22
- }
23
- // ------ staff ------
24
- if (param === null || param === void 0 ? void 0 : param.staff) {
25
- if (((_b = param === null || param === void 0 ? void 0 : param.staff.roles) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
26
- (0, user_1.isStaffSte)(authSte, authUser.ste.name) &&
27
- ["sadm", ...param.roles].includes(authUser.role.code.toLowerCase())) {
28
- return true;
29
- }
30
- }
31
- // ------ client ------
32
- if (param === null || param === void 0 ? void 0 : param.client) {
33
- if (!(0, user_1.isStaffSte)(authSte, authUser.ste.name)) {
34
- if (param.client.roles &&
35
- !param.client.steGrps &&
36
- param.client.roles.length > 0 &&
37
- ["ceo", ...param === null || param === void 0 ? void 0 : param.client.roles].includes(authUser.role.code.toLowerCase())) {
38
- return true;
39
- }
40
- if (!param.client.roles &&
41
- param.client.steGrps &&
42
- param.client.steGrps.length &&
43
- param.client.steGrps.includes(authUser.ste.grp.code.toLowerCase())) {
44
- return true;
45
- }
46
- if (((_c = param === null || param === void 0 ? void 0 : param.client.roles) === null || _c === void 0 ? void 0 : _c.length) &&
47
- (param === null || param === void 0 ? void 0 : param.client.steGrps.length) &&
48
- ["ceo", ...param === null || param === void 0 ? void 0 : param.client.roles].includes(authUser.role.code.toLowerCase()) &&
49
- (param === null || param === void 0 ? void 0 : param.client.steGrps).includes(authUser.ste.grp.code.toLowerCase())) {
50
- return true;
51
- }
52
- }
53
- }
54
- // ------ ste grps ------
55
- if (((_d = param === null || param === void 0 ? void 0 : param.steGrps) === null || _d === void 0 ? void 0 : _d.length) > 0 && param.steGrps.includes(authUser.ste.grp.code.toLowerCase())) {
56
- return true;
57
- }
58
- if (((_e = param === null || param === void 0 ? void 0 : param.grps) === null || _e === void 0 ? void 0 : _e.length) && param.grps.includes(authUser.grp.code.toLowerCase())) {
59
- return true;
60
- }
61
- if (((_f = param === null || param === void 0 ? void 0 : param.steNames) === null || _f === void 0 ? void 0 : _f.length) > 0 && param.steNames.includes(authUser.ste.name.toLowerCase())) {
62
- return true;
63
- }
64
- return false;
65
- };
66
- exports.getAuth = getAuth;
@@ -1,7 +0,0 @@
1
- import { SelectQueryBuilder } from "typeorm";
2
- import { IParam } from "../models/shared/IParam";
3
- declare class HlpQBuilder {
4
- userWhereParams(qb: SelectQueryBuilder<any>, prms: IParam): void;
5
- }
6
- declare const _default: HlpQBuilder;
7
- export default _default;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class HlpQBuilder {
4
- // userWhereParams(qb: SelectQueryBuilder<any>, prms: IParam) {
5
- userWhereParams(qb, prms) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h;
7
- if (prms === null || prms === void 0 ? void 0 : prms.steId) {
8
- qb.andWhere("ste.id = :id", { id: prms.steId });
9
- }
10
- if (prms === null || prms === void 0 ? void 0 : prms.clientId) {
11
- // qb.andWhere("u.clientId = :clientId", { clientId: prms.clientId })
12
- qb.andWhere("u.id = :clientId", { clientId: prms.clientId });
13
- }
14
- if (prms === null || prms === void 0 ? void 0 : prms.roleCode) {
15
- qb.andWhere("LOWER(role.code) = :roleCode", { roleCode: prms.roleCode });
16
- }
17
- if ((_a = prms === null || prms === void 0 ? void 0 : prms.steGrpCodes) === null || _a === void 0 ? void 0 : _a.ins) {
18
- qb.andWhere("LOWER(steGrp.code) IN (:...steGrpCodes)", { steGrpCodes: prms.steGrpCodes.ins }).andWhere("role.code = :role", {
19
- role: "ceo",
20
- });
21
- }
22
- if ((_b = prms === null || prms === void 0 ? void 0 : prms.steGrpCodes) === null || _b === void 0 ? void 0 : _b.notIns) {
23
- qb.andWhere("LOWER(steGrp.code) NOT IN (:...steGrpCodes)", { steGrpCodes: prms.steGrpCodes.notIns });
24
- }
25
- if ((_c = prms === null || prms === void 0 ? void 0 : prms.grpCodes) === null || _c === void 0 ? void 0 : _c.ins) {
26
- qb.andWhere("LOWER(grp.code) IN (:...grpCodes)", { grpCodes: prms.grpCodes.ins });
27
- }
28
- if ((_d = prms === null || prms === void 0 ? void 0 : prms.grpCodes) === null || _d === void 0 ? void 0 : _d.notIns) {
29
- qb.andWhere("LOWER(grp.code) NOT IN (:...grpCodes)", { grpCodes: prms.grpCodes.notIns });
30
- }
31
- if ((_e = prms === null || prms === void 0 ? void 0 : prms.grpCodes) === null || _e === void 0 ? void 0 : _e.steId) {
32
- qb.andWhere("LOWER(ste.id) = :grpCodesSteId", { grpCodesSteId: prms.grpCodes.steId });
33
- }
34
- if ((_f = prms === null || prms === void 0 ? void 0 : prms.grpCodes) === null || _f === void 0 ? void 0 : _f.steName) {
35
- qb.orWhere("LOWER(ste.name) = :grpCodesSteName", { grpCodesSteName: prms.grpCodes.steName });
36
- }
37
- if ((_g = prms === null || prms === void 0 ? void 0 : prms.roleCodes) === null || _g === void 0 ? void 0 : _g.ins) {
38
- qb.andWhere("LOWER(role.code) IN (:...roleCodes)", { roleCodes: prms.roleCodes.ins });
39
- }
40
- if ((_h = prms === null || prms === void 0 ? void 0 : prms.roleCodes) === null || _h === void 0 ? void 0 : _h.notIns) {
41
- qb.andWhere("LOWER(role.code) NOT IN (:...roleCodes)", { roleCodes: prms.roleCodes.notIns });
42
- }
43
- }
44
- }
45
- exports.default = new HlpQBuilder();
@@ -1 +0,0 @@
1
- export { default as HlpQBuilder } from "./hlpQbuilder";
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.HlpQBuilder = void 0;
7
- var hlpQbuilder_1 = require("./hlpQbuilder");
8
- Object.defineProperty(exports, "HlpQBuilder", { enumerable: true, get: function () { return __importDefault(hlpQbuilder_1).default; } });
package/lib/cjs/bill.d.ts DELETED
@@ -1,20 +0,0 @@
1
- import { Bill } from "./models/bills/Bill";
2
- import { Sale } from "./models/sales/Sale";
3
- export declare const getNbProductsOnBill: (sales: Sale[]) => number;
4
- export declare const getNbPackagesOnBill: (sales: Sale[]) => number;
5
- export declare const getNbFreezeOnBill: (sales: Sale[]) => number;
6
- export declare const getTotalTvaOnBill: (sales: Sale[]) => number;
7
- export declare const getTotalAmountOnBill: (sales: Sale[]) => number;
8
- export declare const getTotalAmountBackOnBill: (sales: Sale[]) => number;
9
- export declare const getTotalTvaBackOnBill: (sales: Sale[]) => number;
10
- export declare const getTotalQtityOnBill: (sales: Sale[]) => number;
11
- export declare const getTotalQtityFreeOnBill: (sales: Sale[]) => number;
12
- export declare const getTotalAmountWithoutTvaOnBill: (sales: Sale[]) => number;
13
- export declare const getTotalAmountWithoutTvaBackOnBill: (sales: Sale[]) => number;
14
- export declare const getTotalAmountAllIncludedOnBill: (sales: Sale[]) => number;
15
- export declare const getTotalAmountTvaOnBill: (sales: Sale[]) => number;
16
- export declare const getTotalAmountTvaBackOnBill: (sales: Sale[]) => number;
17
- export declare const getTotalAmountOnListBill: (bills: Bill[]) => number;
18
- export declare const getTotalAmountTvaOnListBill: (bills: Bill[]) => number;
19
- export declare const getTotalAmountWithoutTvaOnListBill: (bills: Bill[]) => number;
20
- export declare const getTotalDueAmountOnListBill: (bills: Bill[]) => number;
package/lib/cjs/bill.js DELETED
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTotalDueAmountOnListBill = exports.getTotalAmountWithoutTvaOnListBill = exports.getTotalAmountTvaOnListBill = exports.getTotalAmountOnListBill = exports.getTotalAmountTvaBackOnBill = exports.getTotalAmountTvaOnBill = exports.getTotalAmountAllIncludedOnBill = exports.getTotalAmountWithoutTvaBackOnBill = exports.getTotalAmountWithoutTvaOnBill = exports.getTotalQtityFreeOnBill = exports.getTotalQtityOnBill = exports.getTotalTvaBackOnBill = exports.getTotalAmountBackOnBill = exports.getTotalAmountOnBill = exports.getTotalTvaOnBill = exports.getNbFreezeOnBill = exports.getNbPackagesOnBill = exports.getNbProductsOnBill = void 0;
4
- const sale_1 = require("./sale");
5
- const getNbProductsOnBill = (sales) => {
6
- return sales.reduce((prev, sale) => prev + +(0, sale_1.getNbProductsOnSale)(sale), 0);
7
- };
8
- exports.getNbProductsOnBill = getNbProductsOnBill;
9
- const getNbPackagesOnBill = (sales) => {
10
- return sales.reduce((prev, sale) => prev + +sale.nbPackages, 0);
11
- };
12
- exports.getNbPackagesOnBill = getNbPackagesOnBill;
13
- const getNbFreezeOnBill = (sales) => {
14
- return sales.reduce((prev, sale) => prev + +sale.nbFreeze, 0);
15
- };
16
- exports.getNbFreezeOnBill = getNbFreezeOnBill;
17
- const getTotalTvaOnBill = (sales) => {
18
- if (!sales.length) {
19
- return 0;
20
- }
21
- return sales.reduce((prev, sale) => prev + (0, sale_1.getTotalTvaOnSale)(sale, true), 0);
22
- };
23
- exports.getTotalTvaOnBill = getTotalTvaOnBill;
24
- const getTotalAmountOnBill = (sales) => {
25
- return sales.reduce((prev, sale) => prev + (0, sale_1.getTotalAmountOnSale)(sale, true), 0);
26
- };
27
- exports.getTotalAmountOnBill = getTotalAmountOnBill;
28
- const getTotalAmountBackOnBill = (sales) => {
29
- return sales.reduce((prev, sale) => prev + (0, sale_1.getTotalAmountBackOnSale)(sale), 0);
30
- };
31
- exports.getTotalAmountBackOnBill = getTotalAmountBackOnBill;
32
- const getTotalTvaBackOnBill = (sales) => {
33
- return sales.reduce((prev, sale) => prev + (0, sale_1.getTotalTvaBackOnSale)(sale), 0);
34
- };
35
- exports.getTotalTvaBackOnBill = getTotalTvaBackOnBill;
36
- const getTotalQtityOnBill = (sales) => {
37
- return sales.reduce((prev, sale) => prev + (0, sale_1.getTotalQtityOnSale)(sale, true), 0);
38
- };
39
- exports.getTotalQtityOnBill = getTotalQtityOnBill;
40
- const getTotalQtityFreeOnBill = (sales) => {
41
- return sales.reduce((prev, sale) => prev + (0, sale_1.getTotalQtityFreeOnSale)(sale), 0);
42
- };
43
- exports.getTotalQtityFreeOnBill = getTotalQtityFreeOnBill;
44
- const getTotalAmountWithoutTvaOnBill = (sales) => {
45
- return sales.reduce((prev, sale) => prev + +(0, sale_1.getTotalAmountWithoutTvaOnSale)(sale, true), 0);
46
- };
47
- exports.getTotalAmountWithoutTvaOnBill = getTotalAmountWithoutTvaOnBill;
48
- const getTotalAmountWithoutTvaBackOnBill = (sales) => {
49
- return sales.reduce((prev, sale) => prev + +(0, sale_1.getTotalAmountWithoutTvaBackOnSale)(sale), 0);
50
- };
51
- exports.getTotalAmountWithoutTvaBackOnBill = getTotalAmountWithoutTvaBackOnBill;
52
- const getTotalAmountAllIncludedOnBill = (sales) => {
53
- return sales.reduce((prev, sale) => prev + +(0, sale_1.getTotalAmountAllIncludedOnSale)(sale, true), 0);
54
- };
55
- exports.getTotalAmountAllIncludedOnBill = getTotalAmountAllIncludedOnBill;
56
- const getTotalAmountTvaOnBill = (sales) => {
57
- return sales.reduce((prev, sale) => prev + +(0, sale_1.getTotalTvaOnSale)(sale, true), 0);
58
- };
59
- exports.getTotalAmountTvaOnBill = getTotalAmountTvaOnBill;
60
- const getTotalAmountTvaBackOnBill = (sales) => {
61
- return sales.reduce((prev, sale) => prev + +(0, sale_1.getTotalTvaBackOnSale)(sale), 0);
62
- };
63
- exports.getTotalAmountTvaBackOnBill = getTotalAmountTvaBackOnBill;
64
- const getTotalAmountOnListBill = (bills) => {
65
- return bills.reduce((prev, curr) => prev + +curr.totalAmount, 0);
66
- };
67
- exports.getTotalAmountOnListBill = getTotalAmountOnListBill;
68
- const getTotalAmountTvaOnListBill = (bills) => {
69
- return bills.reduce((prev, curr) => prev + +(0, exports.getTotalAmountTvaOnBill)(curr.sales), 0);
70
- };
71
- exports.getTotalAmountTvaOnListBill = getTotalAmountTvaOnListBill;
72
- const getTotalAmountWithoutTvaOnListBill = (bills) => {
73
- return bills.reduce((prev, curr) => prev + +(0, exports.getTotalAmountWithoutTvaOnBill)(curr.sales), 0);
74
- };
75
- exports.getTotalAmountWithoutTvaOnListBill = getTotalAmountWithoutTvaOnListBill;
76
- const getTotalDueAmountOnListBill = (bills) => {
77
- return bills.reduce((prev, curr) => prev + +(curr === null || curr === void 0 ? void 0 : curr.dueAmount), 0);
78
- };
79
- exports.getTotalDueAmountOnListBill = getTotalDueAmountOnListBill;