asv-hlps 1.3.63 → 1.3.64
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.
- package/lib/cjs/bills/models/Bill.d.ts +1 -1
- package/lib/cjs/bills/models/BillCat.d.ts +1 -1
- package/lib/cjs/bills/models/BillCat.js +0 -4
- package/lib/cjs/bills/models/index.d.ts +1 -0
- package/lib/cjs/estates/models/HousingRented.d.ts +5 -5
- package/lib/cjs/products/models/Product.d.ts +2 -0
- package/lib/{esm/models/products/ProductFg.d.ts → cjs/products/models/ProductWay.d.ts} +1 -1
- package/lib/cjs/utils.d.ts +2 -0
- package/lib/cjs/utils.js +13 -3
- package/lib/esm/bills/models/Bill.d.ts +1 -1
- package/lib/esm/bills/models/BillCat.d.ts +1 -1
- package/lib/esm/bills/models/BillCat.js +1 -2
- package/lib/esm/bills/models/index.d.ts +1 -0
- package/lib/esm/estates/models/HousingRented.d.ts +5 -5
- package/lib/esm/products/models/Product.d.ts +2 -0
- package/lib/{cjs/models/products/ProductFg.d.ts → esm/products/models/ProductWay.d.ts} +1 -1
- package/lib/esm/utils.d.ts +2 -0
- package/lib/esm/utils.js +9 -1
- package/package.json +7 -7
- package/lib/cjs/auth.d.ts +0 -27
- package/lib/cjs/auth.js +0 -66
- package/lib/cjs/back-end/hlpQbuilder.d.ts +0 -7
- package/lib/cjs/back-end/hlpQbuilder.js +0 -45
- package/lib/cjs/back-end/index.d.ts +0 -1
- package/lib/cjs/back-end/index.js +0 -8
- package/lib/cjs/bill.d.ts +0 -20
- package/lib/cjs/bill.js +0 -79
- package/lib/cjs/helpers/hlpEntry.d.ts +0 -17
- package/lib/cjs/helpers/hlpEntry.js +0 -90
- package/lib/cjs/helpers/hlpProduct.d.ts +0 -18
- package/lib/cjs/helpers/hlpProduct.js +0 -129
- package/lib/cjs/helpers/pipes/amount-on-bill-pipe.d.ts +0 -6
- package/lib/cjs/helpers/pipes/amount-on-bill-pipe.js +0 -9
- package/lib/cjs/helpers/pipes/amount-on-list-bill-pipe.d.ts +0 -6
- package/lib/cjs/helpers/pipes/amount-on-list-bill-pipe.js +0 -18
- package/lib/cjs/helpers/pipes/stock-pipe.d.ts +0 -6
- package/lib/cjs/helpers/pipes/stock-pipe.js +0 -24
- package/lib/cjs/models/acts/Act.d.ts +0 -18
- package/lib/cjs/models/acts/ActCat.d.ts +0 -4
- package/lib/cjs/models/acts/ActCat.js +0 -2
- package/lib/cjs/models/acts/ActLine.d.ts +0 -13
- package/lib/cjs/models/acts/ActLine.js +0 -2
- package/lib/cjs/models/acts/index.d.ts +0 -4
- package/lib/cjs/models/acts/index.js +0 -2
- package/lib/cjs/models/auth/AuthTag.d.ts +0 -6
- package/lib/cjs/models/auth/AuthTag.js +0 -2
- package/lib/cjs/models/auth/AuthTagCat.d.ts +0 -5
- package/lib/cjs/models/auth/AuthTagCat.js +0 -2
- package/lib/cjs/models/auth/index.d.ts +0 -3
- package/lib/cjs/models/auth/index.js +0 -2
- package/lib/cjs/models/bills/Bill.d.ts +0 -40
- package/lib/cjs/models/bills/Bill.js +0 -2
- package/lib/cjs/models/bills/BillCat.d.ts +0 -4
- package/lib/cjs/models/bills/BillCat.js +0 -6
- package/lib/cjs/models/bills/BillLine.d.ts +0 -9
- package/lib/cjs/models/bills/BillLine.js +0 -2
- package/lib/cjs/models/bills/BillPayment.d.ts +0 -21
- package/lib/cjs/models/bills/BillPayment.js +0 -2
- package/lib/cjs/models/bills/BillPaymentMethod.d.ts +0 -5
- package/lib/cjs/models/bills/BillPaymentMethod.js +0 -2
- package/lib/cjs/models/bills/CBillPeriod.d.ts +0 -4
- package/lib/cjs/models/bills/CBillPeriod.js +0 -8
- package/lib/cjs/models/bills/EBillPeriod.d.ts +0 -5
- package/lib/cjs/models/bills/EBillPeriod.js +0 -9
- package/lib/cjs/models/bills/EPayMethod.d.ts +0 -5
- package/lib/cjs/models/bills/EPayMethod.js +0 -9
- package/lib/cjs/models/bills/index.d.ts +0 -8
- package/lib/cjs/models/bills/index.js +0 -9
- package/lib/cjs/models/buys/Buy.d.ts +0 -19
- package/lib/cjs/models/buys/Buy.js +0 -2
- package/lib/cjs/models/buys/BuyCart.d.ts +0 -4
- package/lib/cjs/models/buys/BuyCart.js +0 -2
- package/lib/cjs/models/buys/BuyItem.d.ts +0 -5
- package/lib/cjs/models/buys/BuyItem.js +0 -2
- package/lib/cjs/models/buys/BuyItems.d.ts +0 -6
- package/lib/cjs/models/buys/BuyItems.js +0 -6
- package/lib/cjs/models/buys/index.d.ts +0 -5
- package/lib/cjs/models/buys/index.js +0 -5
- package/lib/cjs/models/cashs/Account.d.ts +0 -6
- package/lib/cjs/models/cashs/Account.js +0 -2
- package/lib/cjs/models/cashs/Bank.d.ts +0 -4
- package/lib/cjs/models/cashs/Bank.js +0 -2
- package/lib/cjs/models/cashs/Currency.d.ts +0 -10
- package/lib/cjs/models/cashs/Currency.js +0 -2
- package/lib/cjs/models/cashs/Deposit.d.ts +0 -12
- package/lib/cjs/models/cashs/Deposit.js +0 -2
- package/lib/cjs/models/cashs/Feed.d.ts +0 -17
- package/lib/cjs/models/cashs/Feed.js +0 -2
- package/lib/cjs/models/cashs/Spent.d.ts +0 -14
- package/lib/cjs/models/cashs/Spent.js +0 -2
- package/lib/cjs/models/cashs/index.d.ts +0 -7
- package/lib/cjs/models/cashs/index.js +0 -2
- package/lib/cjs/models/comptas/Entry.d.ts +0 -31
- package/lib/cjs/models/comptas/Entry.js +0 -2
- package/lib/cjs/models/comptas/EntryAccount.d.ts +0 -5
- package/lib/cjs/models/comptas/EntryAccount.js +0 -2
- package/lib/cjs/models/comptas/EntryCat.d.ts +0 -5
- package/lib/cjs/models/comptas/EntryCat.js +0 -2
- package/lib/cjs/models/comptas/EntryLine.d.ts +0 -23
- package/lib/cjs/models/comptas/EntryLine.js +0 -2
- package/lib/cjs/models/comptas/OhadaAbs.d.ts +0 -6
- package/lib/cjs/models/comptas/OhadaAbs.js +0 -6
- package/lib/cjs/models/comptas/OhadaCat.d.ts +0 -5
- package/lib/cjs/models/comptas/OhadaCat.js +0 -2
- package/lib/cjs/models/comptas/OhadaGrp.d.ts +0 -5
- package/lib/cjs/models/comptas/OhadaGrp.js +0 -2
- package/lib/cjs/models/comptas/OhadaPlan.d.ts +0 -3
- package/lib/cjs/models/comptas/OhadaPlan.js +0 -2
- package/lib/cjs/models/comptas/OhadaSubCat.d.ts +0 -5
- package/lib/cjs/models/comptas/OhadaSubCat.js +0 -2
- package/lib/cjs/models/comptas/index.d.ts +0 -9
- package/lib/cjs/models/comptas/index.js +0 -2
- package/lib/cjs/models/docs/Docu.d.ts +0 -12
- package/lib/cjs/models/docs/Docu.js +0 -2
- package/lib/cjs/models/docs/DocuCat.d.ts +0 -10
- package/lib/cjs/models/docs/DocuCat.js +0 -2
- package/lib/cjs/models/docs/Faq.d.ts +0 -10
- package/lib/cjs/models/docs/Faq.js +0 -2
- package/lib/cjs/models/docs/FaqCat.d.ts +0 -12
- package/lib/cjs/models/docs/FaqCat.js +0 -2
- package/lib/cjs/models/docs/Memo.d.ts +0 -8
- package/lib/cjs/models/docs/Memo.js +0 -2
- package/lib/cjs/models/docs/MemoCat.d.ts +0 -8
- package/lib/cjs/models/docs/MemoCat.js +0 -2
- package/lib/cjs/models/docs/index.d.ts +0 -7
- package/lib/cjs/models/docs/index.js +0 -2
- package/lib/cjs/models/index.d.ts +0 -14
- package/lib/cjs/models/index.js +0 -30
- package/lib/cjs/models/mails/Mail.d.ts +0 -9
- package/lib/cjs/models/mails/Mail.js +0 -2
- package/lib/cjs/models/mails/MailMass.d.ts +0 -8
- package/lib/cjs/models/mails/MailMass.js +0 -2
- package/lib/cjs/models/mails/MsgAbs.d.ts +0 -6
- package/lib/cjs/models/mails/MsgAbs.js +0 -6
- package/lib/cjs/models/mails/MsgAlert.d.ts +0 -9
- package/lib/cjs/models/mails/MsgAlert.js +0 -2
- package/lib/cjs/models/mails/MsgChat.d.ts +0 -4
- package/lib/cjs/models/mails/MsgChat.js +0 -2
- package/lib/cjs/models/mails/index.d.ts +0 -5
- package/lib/cjs/models/mails/index.js +0 -2
- package/lib/cjs/models/products/Product.d.ts +0 -78
- package/lib/cjs/models/products/Product.js +0 -2
- package/lib/cjs/models/products/ProductAgcy.d.ts +0 -6
- package/lib/cjs/models/products/ProductAgcy.js +0 -2
- package/lib/cjs/models/products/ProductAmm.d.ts +0 -10
- package/lib/cjs/models/products/ProductAmm.js +0 -2
- package/lib/cjs/models/products/ProductBuy.d.ts +0 -10
- package/lib/cjs/models/products/ProductBuy.js +0 -2
- package/lib/cjs/models/products/ProductCat.d.ts +0 -6
- package/lib/cjs/models/products/ProductCat.js +0 -2
- package/lib/cjs/models/products/ProductDci.d.ts +0 -6
- package/lib/cjs/models/products/ProductDci.js +0 -2
- package/lib/cjs/models/products/ProductDepot.d.ts +0 -9
- package/lib/cjs/models/products/ProductDepot.js +0 -2
- package/lib/cjs/models/products/ProductDos.d.ts +0 -5
- package/lib/cjs/models/products/ProductDos.js +0 -2
- package/lib/cjs/models/products/ProductFg.js +0 -2
- package/lib/cjs/models/products/ProductIn.d.ts +0 -8
- package/lib/cjs/models/products/ProductIn.js +0 -2
- package/lib/cjs/models/products/ProductInOut.d.ts +0 -26
- package/lib/cjs/models/products/ProductInOut.js +0 -2
- package/lib/cjs/models/products/ProductInventory.d.ts +0 -8
- package/lib/cjs/models/products/ProductInventory.js +0 -2
- package/lib/cjs/models/products/ProductLabo.d.ts +0 -5
- package/lib/cjs/models/products/ProductLabo.js +0 -2
- package/lib/cjs/models/products/ProductLoc.d.ts +0 -7
- package/lib/cjs/models/products/ProductLoc.js +0 -2
- package/lib/cjs/models/products/ProductMvt.d.ts +0 -24
- package/lib/cjs/models/products/ProductMvt.js +0 -2
- package/lib/cjs/models/products/ProductMvtInventory.d.ts +0 -8
- package/lib/cjs/models/products/ProductMvtInventory.js +0 -2
- package/lib/cjs/models/products/ProductOutReason.d.ts +0 -6
- package/lib/cjs/models/products/ProductOutReason.js +0 -2
- package/lib/cjs/models/products/ProductPromo.d.ts +0 -15
- package/lib/cjs/models/products/ProductPromo.js +0 -6
- package/lib/cjs/models/products/ProductPvd.d.ts +0 -6
- package/lib/cjs/models/products/ProductPvd.js +0 -2
- package/lib/cjs/models/products/ProductSof.d.ts +0 -6
- package/lib/cjs/models/products/ProductSof.js +0 -2
- package/lib/cjs/models/products/ProductStore.d.ts +0 -29
- package/lib/cjs/models/products/ProductStore.js +0 -2
- package/lib/cjs/models/products/ProductTcl.d.ts +0 -10
- package/lib/cjs/models/products/ProductTcl.js +0 -2
- package/lib/cjs/models/products/ProductTclGrp.d.ts +0 -8
- package/lib/cjs/models/products/ProductTclGrp.js +0 -2
- package/lib/cjs/models/products/ProductTransfert.d.ts +0 -14
- package/lib/cjs/models/products/ProductTransfert.js +0 -2
- package/lib/cjs/models/products/ProductWanted.d.ts +0 -8
- package/lib/cjs/models/products/ProductWanted.js +0 -2
- package/lib/cjs/models/products/index.d.ts +0 -26
- package/lib/cjs/models/products/index.js +0 -5
- package/lib/cjs/models/sales/CartItem.d.ts +0 -8
- package/lib/cjs/models/sales/CartItem.js +0 -2
- package/lib/cjs/models/sales/DeliveryProcess.d.ts +0 -6
- package/lib/cjs/models/sales/DeliveryProcess.js +0 -2
- package/lib/cjs/models/sales/Sale.d.ts +0 -55
- package/lib/cjs/models/sales/Sale.js +0 -2
- package/lib/cjs/models/sales/SaleDelivery.d.ts +0 -15
- package/lib/cjs/models/sales/SaleDelivery.js +0 -2
- package/lib/cjs/models/sales/SaleInfo.d.ts +0 -11
- package/lib/cjs/models/sales/SaleInfo.js +0 -2
- package/lib/cjs/models/sales/SaleItems.d.ts +0 -8
- package/lib/cjs/models/sales/SaleItems.js +0 -6
- package/lib/cjs/models/sales/SaleProduct.d.ts +0 -26
- package/lib/cjs/models/sales/SaleProduct.js +0 -6
- package/lib/cjs/models/sales/SaleProductLot.d.ts +0 -11
- package/lib/cjs/models/sales/SaleProductLot.js +0 -6
- package/lib/cjs/models/sales/SaleProductQtityIssue.d.ts +0 -9
- package/lib/cjs/models/sales/SaleProductQtityIssue.js +0 -2
- package/lib/cjs/models/sales/SaleShop.d.ts +0 -47
- package/lib/cjs/models/sales/SaleShop.js +0 -6
- package/lib/cjs/models/sales/ShopCart.d.ts +0 -4
- package/lib/cjs/models/sales/ShopCart.js +0 -9
- package/lib/cjs/models/sales/enums/SaleTreatStatus.d.ts +0 -6
- package/lib/cjs/models/sales/enums/SaleTreatStatus.js +0 -10
- package/lib/cjs/models/sales/index.d.ts +0 -13
- package/lib/cjs/models/sales/index.js +0 -15
- package/lib/cjs/models/shared/EDate.d.ts +0 -7
- package/lib/cjs/models/shared/EDate.js +0 -11
- package/lib/cjs/models/shared/EInOutMotive.d.ts +0 -12
- package/lib/cjs/models/shared/EInOutMotive.js +0 -16
- package/lib/cjs/models/shared/EPayMethod.d.ts +0 -5
- package/lib/cjs/models/shared/EPayMethod.js +0 -9
- package/lib/cjs/models/shared/IParam.d.ts +0 -26
- package/lib/cjs/models/shared/IParam.js +0 -2
- package/lib/cjs/models/shared/IPath.d.ts +0 -14
- package/lib/cjs/models/shared/IPath.js +0 -11
- package/lib/cjs/models/shared/NaAc.d.ts +0 -6
- package/lib/cjs/models/shared/NaAc.js +0 -2
- package/lib/cjs/models/shared/NaCoAc.d.ts +0 -4
- package/lib/cjs/models/shared/NaCoAc.js +0 -2
- package/lib/cjs/models/shared/NaCoShortAc.d.ts +0 -4
- package/lib/cjs/models/shared/NaCoShortAc.js +0 -2
- package/lib/cjs/models/shared/index.d.ts +0 -7
- package/lib/cjs/models/shared/index.js +0 -5
- package/lib/cjs/models/users/Address.d.ts +0 -13
- package/lib/cjs/models/users/Address.js +0 -2
- package/lib/cjs/models/users/DutyPhcie.d.ts +0 -11
- package/lib/cjs/models/users/DutyPhcie.js +0 -2
- package/lib/cjs/models/users/Gender.d.ts +0 -6
- package/lib/cjs/models/users/Gender.js +0 -2
- package/lib/cjs/models/users/Leave.d.ts +0 -14
- package/lib/cjs/models/users/Leave.js +0 -2
- package/lib/cjs/models/users/Ste.d.ts +0 -16
- package/lib/cjs/models/users/Ste.js +0 -2
- package/lib/cjs/models/users/SteGrp.d.ts +0 -7
- package/lib/cjs/models/users/SteGrp.js +0 -2
- package/lib/cjs/models/users/User.d.ts +0 -44
- package/lib/cjs/models/users/User.js +0 -2
- package/lib/cjs/models/users/UserAbs.d.ts +0 -31
- package/lib/cjs/models/users/UserAbs.js +0 -2
- package/lib/cjs/models/users/UserBase.d.ts +0 -31
- package/lib/cjs/models/users/UserBase.js +0 -2
- package/lib/cjs/models/users/UserCredit.d.ts +0 -14
- package/lib/cjs/models/users/UserCredit.js +0 -6
- package/lib/cjs/models/users/UserGrp.d.ts +0 -4
- package/lib/cjs/models/users/UserGrp.js +0 -2
- package/lib/cjs/models/users/UserNotatial.d.ts +0 -9
- package/lib/cjs/models/users/UserNotatial.js +0 -2
- package/lib/cjs/models/users/UserNote.d.ts +0 -7
- package/lib/cjs/models/users/UserNote.js +0 -2
- package/lib/cjs/models/users/UserOnline.d.ts +0 -9
- package/lib/cjs/models/users/UserOnline.js +0 -2
- package/lib/cjs/models/users/UserRole.d.ts +0 -5
- package/lib/cjs/models/users/UserRole.js +0 -2
- package/lib/cjs/models/users/UserTitr.d.ts +0 -5
- package/lib/cjs/models/users/UserTitr.js +0 -2
- package/lib/cjs/models/users/Zone.d.ts +0 -11
- package/lib/cjs/models/users/Zone.js +0 -2
- package/lib/cjs/models/users/index.d.ts +0 -17
- package/lib/cjs/models/users/index.js +0 -5
- package/lib/cjs/models/utilities/Todo.d.ts +0 -9
- package/lib/cjs/models/utilities/Todo.js +0 -6
- package/lib/cjs/models/utilities/Vehicle.d.ts +0 -8
- package/lib/cjs/models/utilities/Vehicle.js +0 -2
- package/lib/cjs/models/utilities/Wish.d.ts +0 -14
- package/lib/cjs/models/utilities/Wish.js +0 -6
- package/lib/cjs/models/utilities/index.d.ts +0 -4
- package/lib/cjs/models/utilities/index.js +0 -7
- package/lib/cjs/models/world/City.d.ts +0 -15
- package/lib/cjs/models/world/City.js +0 -6
- package/lib/cjs/models/world/Continent.d.ts +0 -6
- package/lib/cjs/models/world/Continent.js +0 -6
- package/lib/cjs/models/world/Country.d.ts +0 -12
- package/lib/cjs/models/world/Country.js +0 -2
- package/lib/cjs/models/world/Department.d.ts +0 -10
- package/lib/cjs/models/world/Department.js +0 -2
- package/lib/cjs/models/world/Quarter.d.ts +0 -7
- package/lib/cjs/models/world/Quarter.js +0 -2
- package/lib/cjs/models/world/Region.d.ts +0 -9
- package/lib/cjs/models/world/Region.js +0 -6
- package/lib/cjs/models/world/index.d.ts +0 -7
- package/lib/cjs/models/world/index.js +0 -9
- package/lib/cjs/pdfs/invoices/amountInvoice.d.ts +0 -66
- package/lib/cjs/pdfs/invoices/amountInvoice.js +0 -152
- package/lib/cjs/pdfs/invoices/infoInvoice.d.ts +0 -32
- package/lib/cjs/pdfs/invoices/infoInvoice.js +0 -79
- package/lib/cjs/pdfs/tools/tools.d.ts +0 -41
- package/lib/cjs/pdfs/tools/tools.js +0 -54
- package/lib/cjs/product.d.ts +0 -4
- package/lib/cjs/product.js +0 -23
- package/lib/cjs/react-utils.d.ts +0 -1
- package/lib/cjs/react-utils.js +0 -14
- package/lib/cjs/salaries/Salary.d.ts +0 -7
- package/lib/cjs/salaries/Salary.js +0 -2
- package/lib/cjs/salaries/SalaryScale.d.ts +0 -25
- package/lib/cjs/salaries/SalaryScale.js +0 -2
- package/lib/cjs/sale.d.ts +0 -19
- package/lib/cjs/sale.js +0 -137
- package/lib/cjs/services/authService.d.ts +0 -20
- package/lib/cjs/services/authService.js +0 -101
- package/lib/cjs/services/storageService.d.ts +0 -7
- package/lib/cjs/services/storageService.js +0 -64
- package/lib/cjs/shared/EDate.d.ts +0 -8
- package/lib/cjs/shared/EDate.js +0 -11
- package/lib/cjs/shared/EInOutMotive.d.ts +0 -13
- package/lib/cjs/shared/EInOutMotive.js +0 -16
- package/lib/cjs/shared/EPayMethod.d.ts +0 -6
- package/lib/cjs/shared/EPayMethod.js +0 -9
- package/lib/cjs/shared/IParam.d.ts +0 -26
- package/lib/cjs/shared/IParam.js +0 -2
- package/lib/cjs/shared/IPath.d.ts +0 -14
- package/lib/cjs/shared/IPath.js +0 -11
- package/lib/cjs/shared/NaAc.d.ts +0 -6
- package/lib/cjs/shared/NaAc.js +0 -2
- package/lib/cjs/shared/NaCoAc.d.ts +0 -4
- package/lib/cjs/shared/NaCoAc.js +0 -2
- package/lib/cjs/shared/NaCoShortAc.d.ts +0 -4
- package/lib/cjs/shared/NaCoShortAc.js +0 -2
- package/lib/cjs/user.d.ts +0 -35
- package/lib/cjs/user.js +0 -149
- package/lib/esm/auth.d.ts +0 -27
- package/lib/esm/auth.js +0 -63
- package/lib/esm/back-end/hlpQbuilder.d.ts +0 -7
- package/lib/esm/back-end/hlpQbuilder.js +0 -43
- package/lib/esm/back-end/index.d.ts +0 -1
- package/lib/esm/back-end/index.js +0 -1
- package/lib/esm/bill.d.ts +0 -20
- package/lib/esm/bill.js +0 -58
- package/lib/esm/helpers/hlpEntry.d.ts +0 -17
- package/lib/esm/helpers/hlpEntry.js +0 -86
- package/lib/esm/helpers/hlpProduct.d.ts +0 -18
- package/lib/esm/helpers/hlpProduct.js +0 -127
- package/lib/esm/helpers/pipes/amount-on-bill-pipe.d.ts +0 -6
- package/lib/esm/helpers/pipes/amount-on-bill-pipe.js +0 -7
- package/lib/esm/helpers/pipes/amount-on-list-bill-pipe.d.ts +0 -6
- package/lib/esm/helpers/pipes/amount-on-list-bill-pipe.js +0 -16
- package/lib/esm/helpers/pipes/stock-pipe.d.ts +0 -6
- package/lib/esm/helpers/pipes/stock-pipe.js +0 -19
- package/lib/esm/models/acts/Act.d.ts +0 -18
- package/lib/esm/models/acts/ActCat.d.ts +0 -4
- package/lib/esm/models/acts/ActCat.js +0 -1
- package/lib/esm/models/acts/ActLine.d.ts +0 -13
- package/lib/esm/models/acts/ActLine.js +0 -1
- package/lib/esm/models/acts/index.d.ts +0 -4
- package/lib/esm/models/acts/index.js +0 -1
- package/lib/esm/models/auth/AuthTag.d.ts +0 -6
- package/lib/esm/models/auth/AuthTag.js +0 -1
- package/lib/esm/models/auth/AuthTagCat.d.ts +0 -5
- package/lib/esm/models/auth/AuthTagCat.js +0 -1
- package/lib/esm/models/auth/index.d.ts +0 -3
- package/lib/esm/models/auth/index.js +0 -1
- package/lib/esm/models/bills/Bill.d.ts +0 -40
- package/lib/esm/models/bills/Bill.js +0 -1
- package/lib/esm/models/bills/BillCat.d.ts +0 -4
- package/lib/esm/models/bills/BillCat.js +0 -2
- package/lib/esm/models/bills/BillLine.d.ts +0 -9
- package/lib/esm/models/bills/BillLine.js +0 -1
- package/lib/esm/models/bills/BillPayment.d.ts +0 -21
- package/lib/esm/models/bills/BillPayment.js +0 -1
- package/lib/esm/models/bills/BillPaymentMethod.d.ts +0 -5
- package/lib/esm/models/bills/BillPaymentMethod.js +0 -1
- package/lib/esm/models/bills/CBillPeriod.d.ts +0 -4
- package/lib/esm/models/bills/CBillPeriod.js +0 -5
- package/lib/esm/models/bills/EBillPeriod.d.ts +0 -5
- package/lib/esm/models/bills/EBillPeriod.js +0 -6
- package/lib/esm/models/bills/EPayMethod.d.ts +0 -5
- package/lib/esm/models/bills/EPayMethod.js +0 -6
- package/lib/esm/models/bills/index.d.ts +0 -8
- package/lib/esm/models/bills/index.js +0 -4
- package/lib/esm/models/buys/Buy.d.ts +0 -19
- package/lib/esm/models/buys/Buy.js +0 -1
- package/lib/esm/models/buys/BuyCart.d.ts +0 -4
- package/lib/esm/models/buys/BuyCart.js +0 -1
- package/lib/esm/models/buys/BuyItem.d.ts +0 -5
- package/lib/esm/models/buys/BuyItem.js +0 -1
- package/lib/esm/models/buys/BuyItems.d.ts +0 -6
- package/lib/esm/models/buys/BuyItems.js +0 -2
- package/lib/esm/models/buys/index.d.ts +0 -5
- package/lib/esm/models/buys/index.js +0 -2
- package/lib/esm/models/cashs/Account.d.ts +0 -6
- package/lib/esm/models/cashs/Account.js +0 -1
- package/lib/esm/models/cashs/Bank.d.ts +0 -4
- package/lib/esm/models/cashs/Bank.js +0 -1
- package/lib/esm/models/cashs/Currency.d.ts +0 -10
- package/lib/esm/models/cashs/Currency.js +0 -1
- package/lib/esm/models/cashs/Deposit.d.ts +0 -12
- package/lib/esm/models/cashs/Deposit.js +0 -1
- package/lib/esm/models/cashs/Feed.d.ts +0 -17
- package/lib/esm/models/cashs/Feed.js +0 -1
- package/lib/esm/models/cashs/Spent.d.ts +0 -14
- package/lib/esm/models/cashs/Spent.js +0 -1
- package/lib/esm/models/cashs/index.d.ts +0 -7
- package/lib/esm/models/cashs/index.js +0 -1
- package/lib/esm/models/comptas/Entry.d.ts +0 -31
- package/lib/esm/models/comptas/Entry.js +0 -1
- package/lib/esm/models/comptas/EntryAccount.d.ts +0 -5
- package/lib/esm/models/comptas/EntryAccount.js +0 -1
- package/lib/esm/models/comptas/EntryCat.d.ts +0 -5
- package/lib/esm/models/comptas/EntryCat.js +0 -1
- package/lib/esm/models/comptas/EntryLine.d.ts +0 -23
- package/lib/esm/models/comptas/EntryLine.js +0 -1
- package/lib/esm/models/comptas/OhadaAbs.d.ts +0 -6
- package/lib/esm/models/comptas/OhadaAbs.js +0 -2
- package/lib/esm/models/comptas/OhadaCat.d.ts +0 -5
- package/lib/esm/models/comptas/OhadaCat.js +0 -1
- package/lib/esm/models/comptas/OhadaGrp.d.ts +0 -5
- package/lib/esm/models/comptas/OhadaGrp.js +0 -1
- package/lib/esm/models/comptas/OhadaPlan.d.ts +0 -3
- package/lib/esm/models/comptas/OhadaPlan.js +0 -1
- package/lib/esm/models/comptas/OhadaSubCat.d.ts +0 -5
- package/lib/esm/models/comptas/OhadaSubCat.js +0 -1
- package/lib/esm/models/comptas/index.d.ts +0 -9
- package/lib/esm/models/comptas/index.js +0 -1
- package/lib/esm/models/docs/Docu.d.ts +0 -12
- package/lib/esm/models/docs/Docu.js +0 -1
- package/lib/esm/models/docs/DocuCat.d.ts +0 -10
- package/lib/esm/models/docs/DocuCat.js +0 -1
- package/lib/esm/models/docs/Faq.d.ts +0 -10
- package/lib/esm/models/docs/Faq.js +0 -1
- package/lib/esm/models/docs/FaqCat.d.ts +0 -12
- package/lib/esm/models/docs/FaqCat.js +0 -1
- package/lib/esm/models/docs/Memo.d.ts +0 -8
- package/lib/esm/models/docs/Memo.js +0 -1
- package/lib/esm/models/docs/MemoCat.d.ts +0 -8
- package/lib/esm/models/docs/MemoCat.js +0 -1
- package/lib/esm/models/docs/index.d.ts +0 -7
- package/lib/esm/models/docs/index.js +0 -1
- package/lib/esm/models/index.d.ts +0 -14
- package/lib/esm/models/index.js +0 -14
- package/lib/esm/models/mails/Mail.d.ts +0 -9
- package/lib/esm/models/mails/Mail.js +0 -1
- package/lib/esm/models/mails/MailMass.d.ts +0 -8
- package/lib/esm/models/mails/MailMass.js +0 -1
- package/lib/esm/models/mails/MsgAbs.d.ts +0 -6
- package/lib/esm/models/mails/MsgAbs.js +0 -2
- package/lib/esm/models/mails/MsgAlert.d.ts +0 -9
- package/lib/esm/models/mails/MsgAlert.js +0 -1
- package/lib/esm/models/mails/MsgChat.d.ts +0 -4
- package/lib/esm/models/mails/MsgChat.js +0 -1
- package/lib/esm/models/mails/index.d.ts +0 -5
- package/lib/esm/models/mails/index.js +0 -1
- package/lib/esm/models/products/Product.d.ts +0 -78
- package/lib/esm/models/products/Product.js +0 -1
- package/lib/esm/models/products/ProductAgcy.d.ts +0 -6
- package/lib/esm/models/products/ProductAgcy.js +0 -1
- package/lib/esm/models/products/ProductAmm.d.ts +0 -10
- package/lib/esm/models/products/ProductAmm.js +0 -1
- package/lib/esm/models/products/ProductBuy.d.ts +0 -10
- package/lib/esm/models/products/ProductBuy.js +0 -1
- package/lib/esm/models/products/ProductCat.d.ts +0 -6
- package/lib/esm/models/products/ProductCat.js +0 -1
- package/lib/esm/models/products/ProductDci.d.ts +0 -6
- package/lib/esm/models/products/ProductDci.js +0 -1
- package/lib/esm/models/products/ProductDepot.d.ts +0 -9
- package/lib/esm/models/products/ProductDepot.js +0 -1
- package/lib/esm/models/products/ProductDos.d.ts +0 -5
- package/lib/esm/models/products/ProductDos.js +0 -1
- package/lib/esm/models/products/ProductFg.js +0 -1
- package/lib/esm/models/products/ProductIn.d.ts +0 -8
- package/lib/esm/models/products/ProductIn.js +0 -1
- package/lib/esm/models/products/ProductInOut.d.ts +0 -26
- package/lib/esm/models/products/ProductInOut.js +0 -1
- package/lib/esm/models/products/ProductInventory.d.ts +0 -8
- package/lib/esm/models/products/ProductInventory.js +0 -1
- package/lib/esm/models/products/ProductLabo.d.ts +0 -5
- package/lib/esm/models/products/ProductLabo.js +0 -1
- package/lib/esm/models/products/ProductLoc.d.ts +0 -7
- package/lib/esm/models/products/ProductLoc.js +0 -1
- package/lib/esm/models/products/ProductMvt.d.ts +0 -24
- package/lib/esm/models/products/ProductMvt.js +0 -1
- package/lib/esm/models/products/ProductMvtInventory.d.ts +0 -8
- package/lib/esm/models/products/ProductMvtInventory.js +0 -1
- package/lib/esm/models/products/ProductOutReason.d.ts +0 -6
- package/lib/esm/models/products/ProductOutReason.js +0 -1
- package/lib/esm/models/products/ProductPromo.d.ts +0 -15
- package/lib/esm/models/products/ProductPromo.js +0 -2
- package/lib/esm/models/products/ProductPvd.d.ts +0 -6
- package/lib/esm/models/products/ProductPvd.js +0 -1
- package/lib/esm/models/products/ProductSof.d.ts +0 -6
- package/lib/esm/models/products/ProductSof.js +0 -1
- package/lib/esm/models/products/ProductStore.d.ts +0 -29
- package/lib/esm/models/products/ProductStore.js +0 -1
- package/lib/esm/models/products/ProductTcl.d.ts +0 -10
- package/lib/esm/models/products/ProductTcl.js +0 -1
- package/lib/esm/models/products/ProductTclGrp.d.ts +0 -8
- package/lib/esm/models/products/ProductTclGrp.js +0 -1
- package/lib/esm/models/products/ProductTransfert.d.ts +0 -14
- package/lib/esm/models/products/ProductTransfert.js +0 -1
- package/lib/esm/models/products/ProductWanted.d.ts +0 -8
- package/lib/esm/models/products/ProductWanted.js +0 -1
- package/lib/esm/models/products/index.d.ts +0 -26
- package/lib/esm/models/products/index.js +0 -2
- package/lib/esm/models/sales/CartItem.d.ts +0 -8
- package/lib/esm/models/sales/CartItem.js +0 -1
- package/lib/esm/models/sales/DeliveryProcess.d.ts +0 -6
- package/lib/esm/models/sales/DeliveryProcess.js +0 -1
- package/lib/esm/models/sales/Sale.d.ts +0 -55
- package/lib/esm/models/sales/Sale.js +0 -1
- package/lib/esm/models/sales/SaleDelivery.d.ts +0 -15
- package/lib/esm/models/sales/SaleDelivery.js +0 -1
- package/lib/esm/models/sales/SaleInfo.d.ts +0 -11
- package/lib/esm/models/sales/SaleInfo.js +0 -1
- package/lib/esm/models/sales/SaleItems.d.ts +0 -8
- package/lib/esm/models/sales/SaleItems.js +0 -2
- package/lib/esm/models/sales/SaleProduct.d.ts +0 -26
- package/lib/esm/models/sales/SaleProduct.js +0 -2
- package/lib/esm/models/sales/SaleProductLot.d.ts +0 -11
- package/lib/esm/models/sales/SaleProductLot.js +0 -2
- package/lib/esm/models/sales/SaleProductQtityIssue.d.ts +0 -9
- package/lib/esm/models/sales/SaleProductQtityIssue.js +0 -1
- package/lib/esm/models/sales/SaleShop.d.ts +0 -47
- package/lib/esm/models/sales/SaleShop.js +0 -2
- package/lib/esm/models/sales/ShopCart.d.ts +0 -4
- package/lib/esm/models/sales/ShopCart.js +0 -5
- package/lib/esm/models/sales/enums/SaleTreatStatus.d.ts +0 -6
- package/lib/esm/models/sales/enums/SaleTreatStatus.js +0 -7
- package/lib/esm/models/sales/index.d.ts +0 -13
- package/lib/esm/models/sales/index.js +0 -7
- package/lib/esm/models/shared/EDate.d.ts +0 -7
- package/lib/esm/models/shared/EDate.js +0 -8
- package/lib/esm/models/shared/EInOutMotive.d.ts +0 -12
- package/lib/esm/models/shared/EInOutMotive.js +0 -13
- package/lib/esm/models/shared/EPayMethod.d.ts +0 -5
- package/lib/esm/models/shared/EPayMethod.js +0 -6
- package/lib/esm/models/shared/IParam.d.ts +0 -26
- package/lib/esm/models/shared/IParam.js +0 -1
- package/lib/esm/models/shared/IPath.d.ts +0 -14
- package/lib/esm/models/shared/IPath.js +0 -10
- package/lib/esm/models/shared/NaAc.d.ts +0 -6
- package/lib/esm/models/shared/NaAc.js +0 -1
- package/lib/esm/models/shared/NaCoAc.d.ts +0 -4
- package/lib/esm/models/shared/NaCoAc.js +0 -1
- package/lib/esm/models/shared/NaCoShortAc.d.ts +0 -4
- package/lib/esm/models/shared/NaCoShortAc.js +0 -1
- package/lib/esm/models/shared/index.d.ts +0 -7
- package/lib/esm/models/shared/index.js +0 -2
- package/lib/esm/models/users/Address.d.ts +0 -13
- package/lib/esm/models/users/Address.js +0 -1
- package/lib/esm/models/users/DutyPhcie.d.ts +0 -11
- package/lib/esm/models/users/DutyPhcie.js +0 -1
- package/lib/esm/models/users/Gender.d.ts +0 -6
- package/lib/esm/models/users/Gender.js +0 -1
- package/lib/esm/models/users/Leave.d.ts +0 -14
- package/lib/esm/models/users/Leave.js +0 -1
- package/lib/esm/models/users/Ste.d.ts +0 -16
- package/lib/esm/models/users/Ste.js +0 -1
- package/lib/esm/models/users/SteGrp.d.ts +0 -7
- package/lib/esm/models/users/SteGrp.js +0 -1
- package/lib/esm/models/users/User.d.ts +0 -44
- package/lib/esm/models/users/User.js +0 -1
- package/lib/esm/models/users/UserAbs.d.ts +0 -31
- package/lib/esm/models/users/UserAbs.js +0 -1
- package/lib/esm/models/users/UserBase.d.ts +0 -31
- package/lib/esm/models/users/UserBase.js +0 -1
- package/lib/esm/models/users/UserCredit.d.ts +0 -14
- package/lib/esm/models/users/UserCredit.js +0 -2
- package/lib/esm/models/users/UserGrp.d.ts +0 -4
- package/lib/esm/models/users/UserGrp.js +0 -1
- package/lib/esm/models/users/UserNotatial.d.ts +0 -9
- package/lib/esm/models/users/UserNotatial.js +0 -1
- package/lib/esm/models/users/UserNote.d.ts +0 -7
- package/lib/esm/models/users/UserNote.js +0 -1
- package/lib/esm/models/users/UserOnline.d.ts +0 -9
- package/lib/esm/models/users/UserOnline.js +0 -1
- package/lib/esm/models/users/UserRole.d.ts +0 -5
- package/lib/esm/models/users/UserRole.js +0 -1
- package/lib/esm/models/users/UserTitr.d.ts +0 -5
- package/lib/esm/models/users/UserTitr.js +0 -1
- package/lib/esm/models/users/Zone.d.ts +0 -11
- package/lib/esm/models/users/Zone.js +0 -1
- package/lib/esm/models/users/index.d.ts +0 -17
- package/lib/esm/models/users/index.js +0 -2
- package/lib/esm/models/utilities/Todo.d.ts +0 -9
- package/lib/esm/models/utilities/Todo.js +0 -2
- package/lib/esm/models/utilities/Vehicle.d.ts +0 -8
- package/lib/esm/models/utilities/Vehicle.js +0 -1
- package/lib/esm/models/utilities/Wish.d.ts +0 -14
- package/lib/esm/models/utilities/Wish.js +0 -2
- package/lib/esm/models/utilities/index.d.ts +0 -4
- package/lib/esm/models/utilities/index.js +0 -3
- package/lib/esm/models/world/City.d.ts +0 -15
- package/lib/esm/models/world/City.js +0 -2
- package/lib/esm/models/world/Continent.d.ts +0 -6
- package/lib/esm/models/world/Continent.js +0 -2
- package/lib/esm/models/world/Country.d.ts +0 -12
- package/lib/esm/models/world/Country.js +0 -1
- package/lib/esm/models/world/Department.d.ts +0 -10
- package/lib/esm/models/world/Department.js +0 -1
- package/lib/esm/models/world/Quarter.d.ts +0 -7
- package/lib/esm/models/world/Quarter.js +0 -1
- package/lib/esm/models/world/Region.d.ts +0 -9
- package/lib/esm/models/world/Region.js +0 -2
- package/lib/esm/models/world/index.d.ts +0 -7
- package/lib/esm/models/world/index.js +0 -4
- package/lib/esm/pdfs/invoices/amountInvoice.d.ts +0 -66
- package/lib/esm/pdfs/invoices/amountInvoice.js +0 -145
- package/lib/esm/pdfs/invoices/infoInvoice.d.ts +0 -32
- package/lib/esm/pdfs/invoices/infoInvoice.js +0 -74
- package/lib/esm/pdfs/tools/tools.d.ts +0 -41
- package/lib/esm/pdfs/tools/tools.js +0 -48
- package/lib/esm/product.d.ts +0 -4
- package/lib/esm/product.js +0 -18
- package/lib/esm/react-utils.d.ts +0 -1
- package/lib/esm/react-utils.js +0 -10
- package/lib/esm/salaries/Salary.d.ts +0 -7
- package/lib/esm/salaries/Salary.js +0 -1
- package/lib/esm/salaries/SalaryScale.d.ts +0 -25
- package/lib/esm/salaries/SalaryScale.js +0 -1
- package/lib/esm/sale.d.ts +0 -19
- package/lib/esm/sale.js +0 -116
- package/lib/esm/services/authService.d.ts +0 -20
- package/lib/esm/services/authService.js +0 -94
- package/lib/esm/services/storageService.d.ts +0 -7
- package/lib/esm/services/storageService.js +0 -62
- package/lib/esm/shared/EDate.d.ts +0 -8
- package/lib/esm/shared/EDate.js +0 -9
- package/lib/esm/shared/EInOutMotive.d.ts +0 -13
- package/lib/esm/shared/EInOutMotive.js +0 -14
- package/lib/esm/shared/EPayMethod.d.ts +0 -6
- package/lib/esm/shared/EPayMethod.js +0 -7
- package/lib/esm/shared/IParam.d.ts +0 -26
- package/lib/esm/shared/IParam.js +0 -1
- package/lib/esm/shared/IPath.d.ts +0 -14
- package/lib/esm/shared/IPath.js +0 -10
- package/lib/esm/shared/NaAc.d.ts +0 -6
- package/lib/esm/shared/NaAc.js +0 -1
- package/lib/esm/shared/NaCoAc.d.ts +0 -4
- package/lib/esm/shared/NaCoAc.js +0 -1
- package/lib/esm/shared/NaCoShortAc.d.ts +0 -4
- package/lib/esm/shared/NaCoShortAc.js +0 -1
- package/lib/esm/user.d.ts +0 -35
- package/lib/esm/user.js +0 -106
- /package/lib/cjs/{models/acts/Act.js → products/models/ProductWay.js} +0 -0
- /package/lib/esm/{models/acts/Act.js → products/models/ProductWay.js} +0 -0
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HlpEntry = void 0;
|
|
4
|
-
class HlpEntry {
|
|
5
|
-
static sortAccount(tobs, accountDirection) {
|
|
6
|
-
accountDirection = !accountDirection;
|
|
7
|
-
return tobs.sort((a, b) => {
|
|
8
|
-
const keyA = +a.accountCredit || +a.accountDebit;
|
|
9
|
-
const keyB = +b.accountCredit || +b.accountDebit;
|
|
10
|
-
return this.sortAccount ? keyB - keyA : keyA - keyB;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
static amountSold(tob) {
|
|
14
|
-
return (+tob.amountDebit || 0) - (+tob.amountCredit || 0);
|
|
15
|
-
}
|
|
16
|
-
static amountSoldDebit(tob) {
|
|
17
|
-
if (this.amountSold(tob) >= 0) {
|
|
18
|
-
// console.log(this.amountSold(tob));
|
|
19
|
-
return this.amountSold(tob);
|
|
20
|
-
}
|
|
21
|
-
// return this.amountSold(tob) >= 0 ? this.amountSold(tob): '' ;
|
|
22
|
-
}
|
|
23
|
-
static amountSoldCredit(tob) {
|
|
24
|
-
if (this.amountSold(tob) < 0) {
|
|
25
|
-
// console.log(this.amountSold(tob));
|
|
26
|
-
return Math.abs(this.amountSold(tob));
|
|
27
|
-
}
|
|
28
|
-
// return this.amountSold(tob) < 0 ? Math.abs(this.amountSold(tob)): '' ;
|
|
29
|
-
}
|
|
30
|
-
static totalAmountSold(lines) {
|
|
31
|
-
return lines.reduce((prev, curr) => {
|
|
32
|
-
return prev + (+curr.amountDebit || 0) - (+curr.amountCredit || 0);
|
|
33
|
-
}, 0);
|
|
34
|
-
}
|
|
35
|
-
static totalAmountSoldCredit(lines) {
|
|
36
|
-
if (this.totalAmountSold(lines) < 0) {
|
|
37
|
-
// console.log(this.amountSold(tob));
|
|
38
|
-
return Math.abs(this.totalAmountSold(lines));
|
|
39
|
-
}
|
|
40
|
-
// return this.amountSold(tob) < 0 ? Math.abs(this.amountSold(tob)): '' ;
|
|
41
|
-
}
|
|
42
|
-
static totalAmountSoldDebit(lines) {
|
|
43
|
-
if (this.totalAmountSold(lines) >= 0) {
|
|
44
|
-
// console.log(this.amountSold(tob));
|
|
45
|
-
return this.totalAmountSold(lines);
|
|
46
|
-
}
|
|
47
|
-
// return this.amountSold(tob) >= 0 ? this.amountSold(tob): '' ;
|
|
48
|
-
}
|
|
49
|
-
static entriesTotalAmountCredit(entries) {
|
|
50
|
-
entries.map((entry) => {
|
|
51
|
-
return this.totalAmountCredit(entry.lines);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
static entriesTotalAmountSold(entries) {
|
|
55
|
-
entries.map((entry) => {
|
|
56
|
-
return this.totalAmountSold(entry.lines);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
static entriesTotalAmountDedit(entries) {
|
|
60
|
-
entries.map((entry) => {
|
|
61
|
-
return this.totalAmountDebit(entry.lines);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
static getProof(entry, proofId) {
|
|
65
|
-
if (entry.spent) {
|
|
66
|
-
if (proofId) {
|
|
67
|
-
return entry.spent.id;
|
|
68
|
-
}
|
|
69
|
-
return entry.spent.ref;
|
|
70
|
-
}
|
|
71
|
-
if (entry.bill) {
|
|
72
|
-
if (proofId) {
|
|
73
|
-
return entry.bill.id;
|
|
74
|
-
}
|
|
75
|
-
return entry.bill.ref;
|
|
76
|
-
}
|
|
77
|
-
return entry.proof;
|
|
78
|
-
}
|
|
79
|
-
static totalAmountCredit(lines) {
|
|
80
|
-
return lines.reduce((prev, curr) => {
|
|
81
|
-
return Math.floor(prev + (+curr.amountCredit || 0));
|
|
82
|
-
}, 0);
|
|
83
|
-
}
|
|
84
|
-
static totalAmountDebit(lines) {
|
|
85
|
-
return lines.reduce((prev, curr) => {
|
|
86
|
-
return Math.floor(prev + (+curr.amountDebit || 0));
|
|
87
|
-
}, 0);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.HlpEntry = HlpEntry;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Product } from "../models/products/Product";
|
|
2
|
-
import { ProductIn } from "../models/products/ProductIn";
|
|
3
|
-
declare class HlpProduct {
|
|
4
|
-
productCatCode(product: Product, catCodes: string[]): boolean;
|
|
5
|
-
qtityInAllDepots(ins: ProductIn[]): number;
|
|
6
|
-
stockValueInDepots(product: Product, exceptDepots?: string[]): number;
|
|
7
|
-
getQtitiesInDepots(ins: ProductIn[], exceptDepots?: string[]): number;
|
|
8
|
-
qtityInAllDepotsExeptStore(ins: ProductIn[], stores: string[]): number;
|
|
9
|
-
getStockSalable(product: Product): number;
|
|
10
|
-
onSortStock(sortStock: boolean, filteredProducts: Product[]): void;
|
|
11
|
-
onSortPc(sortPc: boolean, filteredProducts: Product[]): void;
|
|
12
|
-
onSortPght(sortPght: boolean, filteredProducts: Product[]): void;
|
|
13
|
-
sortDesignation(sortDesignation: boolean, filteredProducts: Product[]): void;
|
|
14
|
-
getStockStore(product: Product): number;
|
|
15
|
-
getLotsToString(ins: ProductIn[]): string[];
|
|
16
|
-
}
|
|
17
|
-
declare const _default: HlpProduct;
|
|
18
|
-
export default _default;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../utils");
|
|
4
|
-
class HlpProduct {
|
|
5
|
-
productCatCode(product, catCodes) {
|
|
6
|
-
return catCodes.includes(product.cat.code && product.cat.code.toLowerCase());
|
|
7
|
-
}
|
|
8
|
-
qtityInAllDepots(ins) {
|
|
9
|
-
return this.getQtitiesInDepots(ins);
|
|
10
|
-
/* if (!ins.length) {return 0; }
|
|
11
|
-
|
|
12
|
-
ins = ins.filter( x => x.depot && x.depot.name.toLocaleLowerCase() !== 'arrivage');
|
|
13
|
-
return ins.reduce((prev, curr: ProductIn) => {
|
|
14
|
-
return +prev + (+curr.qtity);
|
|
15
|
-
}, 0); */
|
|
16
|
-
}
|
|
17
|
-
stockValueInDepots(product, exceptDepots = []) {
|
|
18
|
-
if (!product.ins.length) {
|
|
19
|
-
return 0;
|
|
20
|
-
}
|
|
21
|
-
let ins = product.ins;
|
|
22
|
-
ins = ins.filter((x) => x.depot && !["arrivage", ...exceptDepots].includes(x.depot.name.toLocaleLowerCase()));
|
|
23
|
-
return ins.reduce((prev, curr) => {
|
|
24
|
-
var _a;
|
|
25
|
-
// return +prev + (+curr.qtity * (+product.stores?.pghtPrice || 0));
|
|
26
|
-
return +prev + +curr.qtity * (+((_a = product.stores[0]) === null || _a === void 0 ? void 0 : _a.pghtPrice) || 0);
|
|
27
|
-
}, 0);
|
|
28
|
-
// return formatToString(Math.floor(value: string | number));
|
|
29
|
-
}
|
|
30
|
-
getQtitiesInDepots(ins, exceptDepots = []) {
|
|
31
|
-
if (!ins.length) {
|
|
32
|
-
return 0;
|
|
33
|
-
}
|
|
34
|
-
ins = ins.filter((x) => x.depot && x.depot.hasViewStock && !["arrivage", ...exceptDepots].includes(x.depot.name.toLocaleLowerCase()));
|
|
35
|
-
// ins = ins.filter(x => x.depot && x.depot.hasViewStock);
|
|
36
|
-
return ins.reduce((prev, curr) => {
|
|
37
|
-
return +prev + +curr.qtity;
|
|
38
|
-
}, 0);
|
|
39
|
-
}
|
|
40
|
-
qtityInAllDepotsExeptStore(ins, stores) {
|
|
41
|
-
return this.getQtitiesInDepots(ins, stores);
|
|
42
|
-
/* if (!ins?.length) {return 0; }
|
|
43
|
-
|
|
44
|
-
ins = ins.filter( x => x.depot && x.depot.name.toLocaleLowerCase() !== storeName && x.depot.name.toLocaleLowerCase() !== 'arrivage');
|
|
45
|
-
return ins.reduce((prev, curr: ProductIn) => {
|
|
46
|
-
return prev + (+curr.qtity);
|
|
47
|
-
}, 0); */
|
|
48
|
-
}
|
|
49
|
-
getStockSalable(product) {
|
|
50
|
-
const stockAllSalable = +this.qtityInAllDepots(product.ins) - (+product.stores[0].stockReserved || 0);
|
|
51
|
-
const stockStore = +this.getStockStore(product);
|
|
52
|
-
let stockSalable = 0;
|
|
53
|
-
if (sessionStorage.getItem("isProforma") === "isProforma") {
|
|
54
|
-
stockSalable = stockAllSalable;
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
if (stockAllSalable <= stockStore) {
|
|
58
|
-
stockSalable = stockAllSalable;
|
|
59
|
-
}
|
|
60
|
-
if (stockAllSalable > stockStore) {
|
|
61
|
-
stockSalable = stockStore;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return stockSalable || 0;
|
|
65
|
-
}
|
|
66
|
-
// ------ sort product stock ------
|
|
67
|
-
onSortStock(sortStock, filteredProducts) {
|
|
68
|
-
// sortStock = !sortStock;
|
|
69
|
-
filteredProducts.sort((a, b) => {
|
|
70
|
-
// const keyA = a.stock;
|
|
71
|
-
const keyA = this.getStockStore(a);
|
|
72
|
-
// const keyB = b.stock;
|
|
73
|
-
const keyB = this.getStockStore(b);
|
|
74
|
-
return sortStock ? keyB - keyA : keyA - keyB;
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
// product|stock:'store'
|
|
78
|
-
// ------ sort cession price ------
|
|
79
|
-
onSortPc(sortPc, filteredProducts) {
|
|
80
|
-
// sortPc = !sortPc;
|
|
81
|
-
filteredProducts.sort((a, b) => {
|
|
82
|
-
const keyA = a.stores[0].salePrice;
|
|
83
|
-
const keyB = b.stores[0].salePrice;
|
|
84
|
-
return sortPc ? keyB - keyA : keyA - keyB;
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
onSortPght(sortPght, filteredProducts) {
|
|
88
|
-
// this.sortPght = !this.sortPght;
|
|
89
|
-
filteredProducts.sort((a, b) => {
|
|
90
|
-
const keyA = a.stores[0].pghtPrice;
|
|
91
|
-
const keyB = b.stores[0].pghtPrice;
|
|
92
|
-
return sortPght ? keyB - keyA : keyA - keyB;
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
sortDesignation(sortDesignation, filteredProducts) {
|
|
96
|
-
// this.sortDesignation = !this.sortDesignation;
|
|
97
|
-
filteredProducts.sort((a, b) => {
|
|
98
|
-
return sortDesignation ? b.designation.localeCompare(a.designation) : a.designation.localeCompare(b.designation);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
getStockStore(product) {
|
|
102
|
-
let stock = 0;
|
|
103
|
-
if (product === null || product === void 0 ? void 0 : product.ins) {
|
|
104
|
-
for (const pdtIn of product === null || product === void 0 ? void 0 : product.ins) {
|
|
105
|
-
// if(pdtIn.depot.name.toLocaleLowerCase() === environment.host.toLocaleLowerCase()) {
|
|
106
|
-
if (pdtIn.depot.main === "master") {
|
|
107
|
-
stock += pdtIn.qtity;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
// return stock - (+product.stores[0].stockReserved|| 0)
|
|
112
|
-
return stock;
|
|
113
|
-
// if(!product.ins.length) {return 0}
|
|
114
|
-
/* return product.ins.reduce((prev, curr: ProductIn) => {
|
|
115
|
-
return prev + +curr.qtity
|
|
116
|
-
}, 0) */
|
|
117
|
-
}
|
|
118
|
-
getLotsToString(ins) {
|
|
119
|
-
let lots = [];
|
|
120
|
-
for (const pdtIn of ins) {
|
|
121
|
-
if (pdtIn.lot) {
|
|
122
|
-
lots.push(pdtIn.lot + " =>" + (0, utils_1.dateFormatter)(pdtIn.expirationDate, "dmy", "/"));
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return [...new Set(lots)];
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
// export default new HlpProduct();
|
|
129
|
-
exports.default = new HlpProduct();
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const bill_1 = require("../../bill");
|
|
4
|
-
class AmountOnBillPipe {
|
|
5
|
-
transform(bill) {
|
|
6
|
-
return (0, bill_1.getTotalAmountAllIncludedOnBill)(bill.sales);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
exports.default = new AmountOnBillPipe();
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const bill_1 = require("../../bill");
|
|
4
|
-
class AmountOnListBillPipe {
|
|
5
|
-
transform(bills, param) {
|
|
6
|
-
switch (param) {
|
|
7
|
-
case "due":
|
|
8
|
-
return (0, bill_1.getTotalDueAmountOnListBill)(bills);
|
|
9
|
-
case "all":
|
|
10
|
-
return (0, bill_1.getTotalAmountOnListBill)(bills);
|
|
11
|
-
case "paid":
|
|
12
|
-
return (0, bill_1.getTotalAmountOnListBill)(bills) - (0, bill_1.getTotalDueAmountOnListBill)(bills);
|
|
13
|
-
default:
|
|
14
|
-
throw new Error("données incorrectes");
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = new AmountOnListBillPipe();
|
|
@@ -1,24 +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
|
-
const hlpProduct_1 = __importDefault(require("../hlpProduct"));
|
|
7
|
-
class StockPipe {
|
|
8
|
-
transform(tob, param) {
|
|
9
|
-
// const storeName = (environment.host === 'cpa') ? 'eqeer' : 'cpa'
|
|
10
|
-
switch (param) {
|
|
11
|
-
case "valueInDepots":
|
|
12
|
-
return hlpProduct_1.default.stockValueInDepots(tob);
|
|
13
|
-
case "store":
|
|
14
|
-
return hlpProduct_1.default.getStockStore(tob);
|
|
15
|
-
case "salable":
|
|
16
|
-
return hlpProduct_1.default.getStockSalable(tob);
|
|
17
|
-
case "reserve":
|
|
18
|
-
return hlpProduct_1.default.qtityInAllDepotsExeptStore(tob === null || tob === void 0 ? void 0 : tob.ins, ["cpa"]) || 0;
|
|
19
|
-
case "all":
|
|
20
|
-
return hlpProduct_1.default.qtityInAllDepots(tob === null || tob === void 0 ? void 0 : tob.ins) || 0;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.default = new StockPipe();
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ActLine } from "./ActLine";
|
|
2
|
-
import { ActCat } from "./ActCat";
|
|
3
|
-
import { Bill } from "../bills/Bill";
|
|
4
|
-
import { UserNotarial } from "../users/UserNotatial";
|
|
5
|
-
export interface Act {
|
|
6
|
-
id: number;
|
|
7
|
-
actDate: Date | string;
|
|
8
|
-
billNumber: string;
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
tva: boolean;
|
|
11
|
-
description: string;
|
|
12
|
-
notes: string;
|
|
13
|
-
bill: Bill;
|
|
14
|
-
encoder: UserNotarial;
|
|
15
|
-
client: UserNotarial;
|
|
16
|
-
cat: ActCat;
|
|
17
|
-
actLines: ActLine[];
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Act } from './Act';
|
|
2
|
-
export interface ActLine {
|
|
3
|
-
id: number;
|
|
4
|
-
registerNumber: string;
|
|
5
|
-
designation: string;
|
|
6
|
-
actLineDate: Date | string;
|
|
7
|
-
dutiesPaid: number;
|
|
8
|
-
costs: number;
|
|
9
|
-
fees: number;
|
|
10
|
-
emolument: number;
|
|
11
|
-
isActive: boolean;
|
|
12
|
-
act: Act;
|
|
13
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { HousingRented } from "../../estates/models/HousingRented";
|
|
2
|
-
import { Act } from "../acts/Act";
|
|
3
|
-
import { Entry } from "../comptas/Entry";
|
|
4
|
-
import { Sale } from "../sales/Sale";
|
|
5
|
-
import { User } from "../users/User";
|
|
6
|
-
import { BillCat } from "./BillCat";
|
|
7
|
-
import { BillLine } from "./BillLine";
|
|
8
|
-
import { BillPayment } from "./BillPayment";
|
|
9
|
-
export interface Bill {
|
|
10
|
-
id: number;
|
|
11
|
-
createdAt?: Date;
|
|
12
|
-
ref?: string;
|
|
13
|
-
totalAmount?: number;
|
|
14
|
-
isPaid?: boolean;
|
|
15
|
-
isPartialPaid?: boolean;
|
|
16
|
-
paidDate?: Date;
|
|
17
|
-
dueAmount?: number;
|
|
18
|
-
escompteAmount?: number;
|
|
19
|
-
totalAmountAllIncluded?: number;
|
|
20
|
-
hasTva?: boolean;
|
|
21
|
-
isBack?: boolean;
|
|
22
|
-
fromCron?: boolean;
|
|
23
|
-
nbPrint?: number;
|
|
24
|
-
payments?: BillPayment[];
|
|
25
|
-
lines?: BillLine[];
|
|
26
|
-
type?: "sale" | "avoir";
|
|
27
|
-
billDate?: Date | string;
|
|
28
|
-
totalAmountTva?: number;
|
|
29
|
-
isTwice?: boolean;
|
|
30
|
-
encoder?: User;
|
|
31
|
-
noCashEffectPaymentEncoder?: User;
|
|
32
|
-
entries?: Entry[];
|
|
33
|
-
store?: string;
|
|
34
|
-
client?: User;
|
|
35
|
-
sales?: Sale[];
|
|
36
|
-
nbrePayment?: number;
|
|
37
|
-
act?: Act;
|
|
38
|
-
rented?: HousingRented;
|
|
39
|
-
cat?: BillCat;
|
|
40
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Account } from "../cashs/Account";
|
|
2
|
-
import { Bank } from "../cashs/Bank";
|
|
3
|
-
import { User } from "../users/User";
|
|
4
|
-
import { Bill } from "./Bill";
|
|
5
|
-
import { BillPaymentMethod } from "./BillPaymentMethod";
|
|
6
|
-
export interface BillPayment {
|
|
7
|
-
id: number;
|
|
8
|
-
ref?: string;
|
|
9
|
-
paymentDate?: Date;
|
|
10
|
-
prevAmount?: number;
|
|
11
|
-
paidAmount?: number;
|
|
12
|
-
restAmount?: number;
|
|
13
|
-
bill?: Bill;
|
|
14
|
-
method?: BillPaymentMethod;
|
|
15
|
-
checkNumber?: string;
|
|
16
|
-
checkDate?: string;
|
|
17
|
-
bank?: Bank;
|
|
18
|
-
account?: Account;
|
|
19
|
-
encoder?: User;
|
|
20
|
-
receiptRef: string;
|
|
21
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EBillPeriod = void 0;
|
|
4
|
-
var EBillPeriod;
|
|
5
|
-
(function (EBillPeriod) {
|
|
6
|
-
EBillPeriod["DAY"] = "day";
|
|
7
|
-
EBillPeriod["TWO_WEEKS"] = "two_weeks";
|
|
8
|
-
EBillPeriod["MONTH"] = "month";
|
|
9
|
-
})(EBillPeriod || (exports.EBillPeriod = EBillPeriod = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EPayMethod = void 0;
|
|
4
|
-
var EPayMethod;
|
|
5
|
-
(function (EPayMethod) {
|
|
6
|
-
EPayMethod["CASH"] = "esp\u00E8ces";
|
|
7
|
-
EPayMethod["TRANSFER"] = "virement";
|
|
8
|
-
EPayMethod["BANKCHECK"] = "ch\u00E8que";
|
|
9
|
-
})(EPayMethod || (exports.EPayMethod = EPayMethod = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Bill } from "./Bill";
|
|
2
|
-
import { BillLine } from "./BillLine";
|
|
3
|
-
import { BillPayment } from "./BillPayment";
|
|
4
|
-
import { BillPaymentMethod } from "./BillPaymentMethod";
|
|
5
|
-
import { CBillPeriod } from "./CBillPeriod";
|
|
6
|
-
import { EBillPeriod } from "./EBillPeriod";
|
|
7
|
-
import { EPayMethod } from "./EPayMethod";
|
|
8
|
-
export { Bill, BillLine, BillPayment, BillPaymentMethod, CBillPeriod, EBillPeriod, EPayMethod };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EPayMethod = exports.EBillPeriod = exports.CBillPeriod = void 0;
|
|
4
|
-
const CBillPeriod_1 = require("./CBillPeriod");
|
|
5
|
-
Object.defineProperty(exports, "CBillPeriod", { enumerable: true, get: function () { return CBillPeriod_1.CBillPeriod; } });
|
|
6
|
-
const EBillPeriod_1 = require("./EBillPeriod");
|
|
7
|
-
Object.defineProperty(exports, "EBillPeriod", { enumerable: true, get: function () { return EBillPeriod_1.EBillPeriod; } });
|
|
8
|
-
const EPayMethod_1 = require("./EPayMethod");
|
|
9
|
-
Object.defineProperty(exports, "EPayMethod", { enumerable: true, get: function () { return EPayMethod_1.EPayMethod; } });
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { User } from "../users/User";
|
|
2
|
-
import { BuyItem } from "./BuyItem";
|
|
3
|
-
export interface Buy {
|
|
4
|
-
id: number;
|
|
5
|
-
ref: string;
|
|
6
|
-
createdAt: any;
|
|
7
|
-
buyDate: any;
|
|
8
|
-
totalAmount?: number;
|
|
9
|
-
totalAmountTva?: number;
|
|
10
|
-
totalQtity?: number;
|
|
11
|
-
nbProducts?: number;
|
|
12
|
-
isValided: boolean;
|
|
13
|
-
isReceipt: boolean;
|
|
14
|
-
buyProducts?: BuyItem[];
|
|
15
|
-
comment: string;
|
|
16
|
-
pvd?: User;
|
|
17
|
-
author?: User;
|
|
18
|
-
get getQtity(): void;
|
|
19
|
-
}
|