asv-hlps 1.2.16 → 1.2.19
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/helpers/pipes/amount-on-bill-pipe.d.ts +1 -1
- package/lib/cjs/index.d.ts +0 -4
- package/lib/cjs/index.js +3 -4
- package/lib/cjs/models/entities/auth/index.d.ts +3 -0
- package/lib/cjs/models/{types/MenuItemType.js → entities/auth/index.js} +0 -0
- package/lib/cjs/models/entities/bills/index.d.ts +8 -0
- package/lib/cjs/models/entities/bills/index.js +9 -0
- package/lib/cjs/models/entities/buys/index.d.ts +5 -0
- package/lib/cjs/models/entities/buys/index.js +5 -0
- package/lib/cjs/models/entities/cashs/index.d.ts +7 -0
- package/lib/cjs/models/entities/cashs/index.js +2 -0
- package/lib/cjs/models/entities/comptas/index.d.ts +9 -0
- package/lib/cjs/models/entities/comptas/index.js +2 -0
- package/lib/cjs/models/entities/docs/index.d.ts +7 -0
- package/lib/cjs/models/entities/docs/index.js +2 -0
- package/lib/cjs/models/entities/mails/index.d.ts +5 -0
- package/lib/cjs/models/entities/mails/index.js +2 -0
- package/lib/cjs/models/entities/products/index.d.ts +26 -0
- package/lib/cjs/models/entities/products/index.js +5 -0
- package/lib/cjs/models/entities/sales/index.d.ts +13 -0
- package/lib/cjs/models/entities/sales/index.js +15 -0
- package/lib/cjs/models/entities/users/index.d.ts +2 -1
- package/lib/cjs/models/entities/utilities/index.d.ts +4 -0
- package/lib/cjs/models/entities/utilities/index.js +7 -0
- package/lib/cjs/models/entities/world/index.d.ts +7 -0
- package/lib/cjs/models/entities/world/index.js +9 -0
- package/lib/cjs/models/index.d.ts +14 -84
- package/lib/cjs/models/index.js +28 -33
- package/lib/esm/helpers/pipes/amount-on-bill-pipe.d.ts +1 -1
- package/lib/esm/index.d.ts +0 -4
- package/lib/esm/index.js +3 -4
- package/lib/esm/models/entities/auth/index.d.ts +3 -0
- package/lib/esm/models/{types/MenuItemType.js → entities/auth/index.js} +0 -0
- package/lib/esm/models/entities/bills/index.d.ts +8 -0
- package/lib/esm/models/entities/bills/index.js +4 -0
- package/lib/esm/models/entities/buys/index.d.ts +5 -0
- package/lib/esm/models/entities/buys/index.js +2 -0
- package/lib/esm/models/entities/cashs/index.d.ts +7 -0
- package/lib/esm/models/entities/cashs/index.js +1 -0
- package/lib/esm/models/entities/comptas/index.d.ts +9 -0
- package/lib/esm/models/entities/comptas/index.js +1 -0
- package/lib/esm/models/entities/docs/index.d.ts +7 -0
- package/lib/esm/models/entities/docs/index.js +1 -0
- package/lib/esm/models/entities/mails/index.d.ts +5 -0
- package/lib/esm/models/entities/mails/index.js +1 -0
- package/lib/esm/models/entities/products/index.d.ts +26 -0
- package/lib/esm/models/entities/products/index.js +2 -0
- package/lib/esm/models/entities/sales/index.d.ts +13 -0
- package/lib/esm/models/entities/sales/index.js +7 -0
- package/lib/esm/models/entities/users/index.d.ts +2 -1
- package/lib/esm/models/entities/users/index.js +1 -1
- package/lib/esm/models/entities/utilities/index.d.ts +4 -0
- package/lib/esm/models/entities/utilities/index.js +3 -0
- package/lib/esm/models/entities/world/index.d.ts +7 -0
- package/lib/esm/models/entities/world/index.js +4 -0
- package/lib/esm/models/index.d.ts +14 -84
- package/lib/esm/models/index.js +14 -21
- package/package.json +1 -1
- package/lib/cjs/helpers/hlpProduct2.d.ts +0 -1
- package/lib/cjs/helpers/hlpProduct2.js +0 -130
- package/lib/cjs/models/types/MenuItemType.d.ts +0 -14
- package/lib/esm/helpers/hlpProduct2.d.ts +0 -1
- package/lib/esm/helpers/hlpProduct2.js +0 -126
- package/lib/esm/models/types/MenuItemType.d.ts +0 -14
package/lib/cjs/index.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ import StorageService from "./services/storageService";
|
|
|
8
8
|
import "./auth";
|
|
9
9
|
import "./bill";
|
|
10
10
|
import "./bootstrap";
|
|
11
|
-
import "./models/entities/estates/index";
|
|
12
|
-
import "./models/entities/users/index";
|
|
13
11
|
import "./models/index";
|
|
14
12
|
import "./pdfs/invoices/amountInvoice";
|
|
15
13
|
import "./pdfs/invoices/infoInvoice";
|
|
@@ -34,6 +32,4 @@ export * from "./sale";
|
|
|
34
32
|
export * from "./typeorm";
|
|
35
33
|
export * from "./user";
|
|
36
34
|
export * from "./utils";
|
|
37
|
-
export * from "./models/entities/estates/index";
|
|
38
|
-
export * from "./models/entities/users/index";
|
|
39
35
|
export { AuthService, StorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
package/lib/cjs/index.js
CHANGED
|
@@ -35,8 +35,9 @@ exports.StorageService = storageService_1.default;
|
|
|
35
35
|
require("./auth");
|
|
36
36
|
require("./bill");
|
|
37
37
|
require("./bootstrap");
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
// import "./models/entities/estates/index";
|
|
39
|
+
// import "./models/entities/users";
|
|
40
|
+
// import "./models/entities/users/index";
|
|
40
41
|
require("./models/index");
|
|
41
42
|
require("./pdfs/invoices/amountInvoice");
|
|
42
43
|
require("./pdfs/invoices/infoInvoice");
|
|
@@ -61,5 +62,3 @@ __exportStar(require("./sale"), exports);
|
|
|
61
62
|
__exportStar(require("./typeorm"), exports);
|
|
62
63
|
__exportStar(require("./user"), exports);
|
|
63
64
|
__exportStar(require("./utils"), exports);
|
|
64
|
-
__exportStar(require("./models/entities/estates/index"), exports);
|
|
65
|
-
__exportStar(require("./models/entities/users/index"), exports);
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
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 };
|
|
@@ -0,0 +1,9 @@
|
|
|
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; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Account } from "./Account";
|
|
2
|
+
import { Bank } from "./Bank";
|
|
3
|
+
import { Currency } from "./Currency";
|
|
4
|
+
import { Deposit } from "./Deposit";
|
|
5
|
+
import { Feed } from "./Feed";
|
|
6
|
+
import { Spent } from "./Spent";
|
|
7
|
+
export { Account, Bank, Currency, Deposit, Feed, Spent };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Entry } from "./Entry";
|
|
2
|
+
import { EntryAccount } from "./EntryAccount";
|
|
3
|
+
import { EntryCat } from "./EntryCat";
|
|
4
|
+
import { EntryLine } from "./EntryLine";
|
|
5
|
+
import { OhadaCat } from "./OhadaCat";
|
|
6
|
+
import { OhadaGrp } from "./OhadaGrp";
|
|
7
|
+
import { OhadaPlan } from "./OhadaPlan";
|
|
8
|
+
import { OhadaSubCat } from "./OhadaSubCat";
|
|
9
|
+
export { Entry, EntryAccount, EntryCat, EntryLine, OhadaCat, OhadaGrp, OhadaPlan, OhadaSubCat };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Product } from "./Product";
|
|
2
|
+
import { ProductAgcy } from "./ProductAgcy";
|
|
3
|
+
import { ProductAmm } from "./ProductAmm";
|
|
4
|
+
import { ProductBuy } from "./ProductBuy";
|
|
5
|
+
import { ProductCat } from "./ProductCat";
|
|
6
|
+
import { ProductDci } from "./ProductDci";
|
|
7
|
+
import { ProductDepot } from "./ProductDepot";
|
|
8
|
+
import { ProductDos } from "./ProductDos";
|
|
9
|
+
import { ProductFg } from "./ProductFg";
|
|
10
|
+
import { ProductIn } from "./ProductIn";
|
|
11
|
+
import { ProductInOut } from "./ProductInOut";
|
|
12
|
+
import { ProductInventory } from "./ProductInventory";
|
|
13
|
+
import { ProductLabo } from "./ProductLabo";
|
|
14
|
+
import { ProductLoc } from "./ProductLoc";
|
|
15
|
+
import { ProductMvt } from "./ProductMvt";
|
|
16
|
+
import { ProductMvtInventory } from "./ProductMvtInventory";
|
|
17
|
+
import { ProductOutReason } from "./ProductOutReason";
|
|
18
|
+
import { ProductPromo } from "./ProductPromo";
|
|
19
|
+
import { ProductPvd } from "./ProductPvd";
|
|
20
|
+
import { ProductSof } from "./ProductSof";
|
|
21
|
+
import { ProductStore } from "./ProductStore";
|
|
22
|
+
import { ProductTcl } from "./ProductTcl";
|
|
23
|
+
import { ProductTclGrp } from "./ProductTclGrp";
|
|
24
|
+
import { ProductTransfert } from "./ProductTransfert";
|
|
25
|
+
import { ProductWanted } from "./ProductWanted";
|
|
26
|
+
export { Product, ProductAgcy, ProductAmm, ProductBuy, ProductCat, ProductDci, ProductDepot, ProductDos, ProductFg, ProductIn, ProductInOut, ProductInventory, ProductLabo, ProductLoc, ProductMvt, ProductMvtInventory, ProductOutReason, ProductPromo, ProductPvd, ProductSof, ProductStore, ProductTcl, ProductTclGrp, ProductTransfert, ProductWanted, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductPromo = void 0;
|
|
4
|
+
const ProductPromo_1 = require("./ProductPromo");
|
|
5
|
+
Object.defineProperty(exports, "ProductPromo", { enumerable: true, get: function () { return ProductPromo_1.ProductPromo; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CartItem } from "./CartItem";
|
|
2
|
+
import { DelideryProcess } from "./DeliveryProcess";
|
|
3
|
+
import { SaleTreatStatus } from "./enums/SaleTreatStatus";
|
|
4
|
+
import { Sale } from "./Sale";
|
|
5
|
+
import { SaleDelivery } from "./SaleDelivery";
|
|
6
|
+
import { SaleInfo } from "./SaleInfo";
|
|
7
|
+
import { SaleItems } from "./SaleItems";
|
|
8
|
+
import { SaleProduct } from "./SaleProduct";
|
|
9
|
+
import { SaleProductLot } from "./SaleProductLot";
|
|
10
|
+
import { SaleProductQtityIssue } from "./SaleProductQtityIssue";
|
|
11
|
+
import { SaleShop } from "./SaleShop";
|
|
12
|
+
import { ShopCart } from "./ShopCart";
|
|
13
|
+
export { CartItem, DelideryProcess, Sale, SaleDelivery, SaleInfo, SaleItems, SaleProduct, SaleProductLot, SaleProductQtityIssue, SaleShop, SaleTreatStatus, ShopCart, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShopCart = exports.SaleTreatStatus = exports.SaleShop = exports.SaleProductLot = exports.SaleProduct = exports.SaleItems = void 0;
|
|
4
|
+
const SaleTreatStatus_1 = require("./enums/SaleTreatStatus");
|
|
5
|
+
Object.defineProperty(exports, "SaleTreatStatus", { enumerable: true, get: function () { return SaleTreatStatus_1.SaleTreatStatus; } });
|
|
6
|
+
const SaleItems_1 = require("./SaleItems");
|
|
7
|
+
Object.defineProperty(exports, "SaleItems", { enumerable: true, get: function () { return SaleItems_1.SaleItems; } });
|
|
8
|
+
const SaleProduct_1 = require("./SaleProduct");
|
|
9
|
+
Object.defineProperty(exports, "SaleProduct", { enumerable: true, get: function () { return SaleProduct_1.SaleProduct; } });
|
|
10
|
+
const SaleProductLot_1 = require("./SaleProductLot");
|
|
11
|
+
Object.defineProperty(exports, "SaleProductLot", { enumerable: true, get: function () { return SaleProductLot_1.SaleProductLot; } });
|
|
12
|
+
const SaleShop_1 = require("./SaleShop");
|
|
13
|
+
Object.defineProperty(exports, "SaleShop", { enumerable: true, get: function () { return SaleShop_1.SaleShop; } });
|
|
14
|
+
const ShopCart_1 = require("./ShopCart");
|
|
15
|
+
Object.defineProperty(exports, "ShopCart", { enumerable: true, get: function () { return ShopCart_1.ShopCart; } });
|
|
@@ -7,9 +7,10 @@ import { SteGrp } from "./SteGrp";
|
|
|
7
7
|
import { User } from "./User";
|
|
8
8
|
import { UserCredit } from "./UserCredit";
|
|
9
9
|
import { UserGrp } from "./UserGrp";
|
|
10
|
+
import { UserNotarial } from "./UserNotatial";
|
|
10
11
|
import { UserNote } from "./UserNote";
|
|
11
12
|
import { UserOnline } from "./UserOnline";
|
|
12
13
|
import { UserRole } from "./UserRole";
|
|
13
14
|
import { UserTitr } from "./UserTitr";
|
|
14
15
|
import { Zone } from "./Zone";
|
|
15
|
-
export { Address, DutyPhcie, Gender, Leave, Ste, SteGrp, User, UserCredit, UserGrp, UserNote, UserOnline, UserRole, UserTitr, Zone };
|
|
16
|
+
export { UserNotarial, Address, DutyPhcie, Gender, Leave, Ste, SteGrp, User, UserCredit, UserGrp, UserNote, UserOnline, UserRole, UserTitr, Zone, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Wish = exports.Todo = void 0;
|
|
4
|
+
const Todo_1 = require("./Todo");
|
|
5
|
+
Object.defineProperty(exports, "Todo", { enumerable: true, get: function () { return Todo_1.Todo; } });
|
|
6
|
+
const Wish_1 = require("./Wish");
|
|
7
|
+
Object.defineProperty(exports, "Wish", { enumerable: true, get: function () { return Wish_1.Wish; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { City } from "./City";
|
|
2
|
+
import { Continent } from "./Continent";
|
|
3
|
+
import { Country } from "./Country";
|
|
4
|
+
import { Department } from "./Department";
|
|
5
|
+
import { Quarter } from "./Quarter";
|
|
6
|
+
import { Region } from "./Region";
|
|
7
|
+
export { City, Continent, Country, Department, Quarter, Region };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Region = exports.Continent = exports.City = void 0;
|
|
4
|
+
const City_1 = require("./City");
|
|
5
|
+
Object.defineProperty(exports, "City", { enumerable: true, get: function () { return City_1.City; } });
|
|
6
|
+
const Continent_1 = require("./Continent");
|
|
7
|
+
Object.defineProperty(exports, "Continent", { enumerable: true, get: function () { return Continent_1.Continent; } });
|
|
8
|
+
const Region_1 = require("./Region");
|
|
9
|
+
Object.defineProperty(exports, "Region", { enumerable: true, get: function () { return Region_1.Region; } });
|
|
@@ -1,88 +1,18 @@
|
|
|
1
|
-
import { AuthTag } from "./entities/auth/AuthTag";
|
|
2
|
-
import { AuthTagCat } from "./entities/auth/AuthTagCat";
|
|
3
|
-
import { Bill } from "./entities/bills/Bill";
|
|
4
|
-
import { BillLine } from "./entities/bills/BillLine";
|
|
5
|
-
import { BillPayment } from "./entities/bills/BillPayment";
|
|
6
|
-
import { BillPaymentMethod } from "./entities/bills/BillPaymentMethod";
|
|
7
|
-
import { CBillPeriod } from "./entities/bills/CBillPeriod";
|
|
8
|
-
import { EBillPeriod } from "./entities/bills/EBillPeriod";
|
|
9
|
-
import { EPayMethod } from "./entities/bills/EPayMethod";
|
|
10
|
-
import { Buy } from "./entities/buys/Buy";
|
|
11
|
-
import { BuyCart } from "./entities/buys/BuyCart";
|
|
12
|
-
import { BuyItem } from "./entities/buys/BuyItem";
|
|
13
|
-
import { BuyItems } from "./entities/buys/BuyItems";
|
|
14
|
-
import { Account } from "./entities/cashs/Account";
|
|
15
|
-
import { Bank } from "./entities/cashs/Bank";
|
|
16
|
-
import { Currency } from "./entities/cashs/Currency";
|
|
17
|
-
import { Deposit } from "./entities/cashs/Deposit";
|
|
18
|
-
import { Feed } from "./entities/cashs/Feed";
|
|
19
|
-
import { Spent } from "./entities/cashs/Spent";
|
|
20
|
-
import { Entry } from "./entities/comptas/Entry";
|
|
21
|
-
import { EntryAccount } from "./entities/comptas/EntryAccount";
|
|
22
|
-
import { EntryCat } from "./entities/comptas/EntryCat";
|
|
23
|
-
import { EntryLine } from "./entities/comptas/EntryLine";
|
|
24
|
-
import { OhadaCat } from "./entities/comptas/OhadaCat";
|
|
25
|
-
import { OhadaGrp } from "./entities/comptas/OhadaGrp";
|
|
26
|
-
import { OhadaPlan } from "./entities/comptas/OhadaPlan";
|
|
27
|
-
import { OhadaSubCat } from "./entities/comptas/OhadaSubCat";
|
|
28
|
-
import { Docu } from "./entities/docs/Docu";
|
|
29
|
-
import { DocuCat } from "./entities/docs/DocuCat";
|
|
30
|
-
import { Faq } from "./entities/docs/Faq";
|
|
31
|
-
import { FaqCat } from "./entities/docs/FaqCat";
|
|
32
|
-
import { Memo } from "./entities/docs/Memo";
|
|
33
|
-
import { MemoCat } from "./entities/docs/MemoCat";
|
|
34
|
-
import { Mail } from "./entities/mails/Mail";
|
|
35
|
-
import { MailMass } from "./entities/mails/MailMass";
|
|
36
|
-
import { MsgAlert } from "./entities/mails/MsgAlert";
|
|
37
|
-
import { MsgChat } from "./entities/mails/MsgChat";
|
|
38
|
-
import { Product } from "./entities/products/Product";
|
|
39
|
-
import { ProductAgcy } from "./entities/products/ProductAgcy";
|
|
40
|
-
import { ProductAmm } from "./entities/products/ProductAmm";
|
|
41
|
-
import { ProductBuy } from "./entities/products/ProductBuy";
|
|
42
|
-
import { ProductCat } from "./entities/products/ProductCat";
|
|
43
|
-
import { ProductDci } from "./entities/products/ProductDci";
|
|
44
|
-
import { ProductDepot } from "./entities/products/ProductDepot";
|
|
45
|
-
import { ProductDos } from "./entities/products/ProductDos";
|
|
46
|
-
import { ProductFg } from "./entities/products/ProductFg";
|
|
47
|
-
import { ProductIn } from "./entities/products/ProductIn";
|
|
48
|
-
import { ProductInOut } from "./entities/products/ProductInOut";
|
|
49
|
-
import { ProductInventory } from "./entities/products/ProductInventory";
|
|
50
|
-
import { ProductLabo } from "./entities/products/ProductLabo";
|
|
51
|
-
import { ProductLoc } from "./entities/products/ProductLoc";
|
|
52
|
-
import { ProductMvt } from "./entities/products/ProductMvt";
|
|
53
|
-
import { ProductMvtInventory } from "./entities/products/ProductMvtInventory";
|
|
54
|
-
import { ProductOutReason } from "./entities/products/ProductOutReason";
|
|
55
|
-
import { ProductPromo } from "./entities/products/ProductPromo";
|
|
56
|
-
import { ProductPvd } from "./entities/products/ProductPvd";
|
|
57
|
-
import { ProductSof } from "./entities/products/ProductSof";
|
|
58
|
-
import { ProductStore } from "./entities/products/ProductStore";
|
|
59
|
-
import { ProductTcl } from "./entities/products/ProductTcl";
|
|
60
|
-
import { ProductTclGrp } from "./entities/products/ProductTclGrp";
|
|
61
|
-
import { ProductTransfert } from "./entities/products/ProductTransfert";
|
|
62
|
-
import { ProductWanted } from "./entities/products/ProductWanted";
|
|
63
|
-
import { CartItem } from "./entities/sales/CartItem";
|
|
64
|
-
import { DelideryProcess } from "./entities/sales/DeliveryProcess";
|
|
65
|
-
import { SaleTreatStatus } from "./entities/sales/enums/SaleTreatStatus";
|
|
66
|
-
import { Sale } from "./entities/sales/Sale";
|
|
67
|
-
import { SaleDelivery } from "./entities/sales/SaleDelivery";
|
|
68
|
-
import { SaleInfo } from "./entities/sales/SaleInfo";
|
|
69
|
-
import { SaleItems } from "./entities/sales/SaleItems";
|
|
70
|
-
import { SaleProduct } from "./entities/sales/SaleProduct";
|
|
71
|
-
import { SaleProductLot } from "./entities/sales/SaleProductLot";
|
|
72
|
-
import { SaleProductQtityIssue } from "./entities/sales/SaleProductQtityIssue";
|
|
73
|
-
import { SaleShop } from "./entities/sales/SaleShop";
|
|
74
|
-
import { ShopCart } from "./entities/sales/ShopCart";
|
|
75
|
-
import { Todo } from "./entities/utilities/Todo";
|
|
76
|
-
import { Vehicle } from "./entities/utilities/Vehicle";
|
|
77
|
-
import { Wish } from "./entities/utilities/Wish";
|
|
78
|
-
import { City } from "./entities/world/City";
|
|
79
|
-
import { Continent } from "./entities/world/Continent";
|
|
80
|
-
import { Country } from "./entities/world/Country";
|
|
81
|
-
import { Department } from "./entities/world/Department";
|
|
82
|
-
import { Quarter } from "./entities/world/Quarter";
|
|
83
|
-
import { Region } from "./entities/world/Region";
|
|
84
1
|
import { NaAc } from "./shared/NaAc";
|
|
85
2
|
import { NaCoAc } from "./shared/NaCoAc";
|
|
86
3
|
import { NaCoShortAc } from "./shared/NaCoShortAc";
|
|
87
4
|
import { colNa, colNaCo, colNaCoSh, FormProps, HeaderTableColumnType, IPath, MenuItemType } from "./types/Type";
|
|
88
|
-
export
|
|
5
|
+
export * from "./entities/bills/index";
|
|
6
|
+
export * from "./entities/buys/index";
|
|
7
|
+
export * from "./entities/comptas/index";
|
|
8
|
+
export * from "./entities/estates/index";
|
|
9
|
+
export * from "./entities/sales/index";
|
|
10
|
+
export * from "./entities/users/index";
|
|
11
|
+
export * from "./entities/world/index";
|
|
12
|
+
export * from "./entities/cashs/index";
|
|
13
|
+
export * from "./entities/auth/index";
|
|
14
|
+
export * from "./entities/docs/index";
|
|
15
|
+
export * from "./entities/mails/index";
|
|
16
|
+
export * from "./entities/products/index";
|
|
17
|
+
export * from "./entities/utilities/index";
|
|
18
|
+
export { NaAc, NaCoAc, NaCoShortAc, MenuItemType, HeaderTableColumnType, IPath, colNa, colNaCo, colNaCoSh, FormProps };
|
package/lib/cjs/models/index.js
CHANGED
|
@@ -1,39 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.colNaCoSh = exports.colNaCo = exports.colNa =
|
|
4
|
-
const CBillPeriod_1 = require("./entities/bills/CBillPeriod");
|
|
5
|
-
Object.defineProperty(exports, "CBillPeriod", { enumerable: true, get: function () { return CBillPeriod_1.CBillPeriod; } });
|
|
6
|
-
const EBillPeriod_1 = require("./entities/bills/EBillPeriod");
|
|
7
|
-
Object.defineProperty(exports, "EBillPeriod", { enumerable: true, get: function () { return EBillPeriod_1.EBillPeriod; } });
|
|
8
|
-
const EPayMethod_1 = require("./entities/bills/EPayMethod");
|
|
9
|
-
Object.defineProperty(exports, "EPayMethod", { enumerable: true, get: function () { return EPayMethod_1.EPayMethod; } });
|
|
10
|
-
const BuyItems_1 = require("./entities/buys/BuyItems");
|
|
11
|
-
Object.defineProperty(exports, "BuyItems", { enumerable: true, get: function () { return BuyItems_1.BuyItems; } });
|
|
12
|
-
const ProductPromo_1 = require("./entities/products/ProductPromo");
|
|
13
|
-
Object.defineProperty(exports, "ProductPromo", { enumerable: true, get: function () { return ProductPromo_1.ProductPromo; } });
|
|
14
|
-
const SaleTreatStatus_1 = require("./entities/sales/enums/SaleTreatStatus");
|
|
15
|
-
Object.defineProperty(exports, "SaleTreatStatus", { enumerable: true, get: function () { return SaleTreatStatus_1.SaleTreatStatus; } });
|
|
16
|
-
const SaleItems_1 = require("./entities/sales/SaleItems");
|
|
17
|
-
Object.defineProperty(exports, "SaleItems", { enumerable: true, get: function () { return SaleItems_1.SaleItems; } });
|
|
18
|
-
const SaleProduct_1 = require("./entities/sales/SaleProduct");
|
|
19
|
-
Object.defineProperty(exports, "SaleProduct", { enumerable: true, get: function () { return SaleProduct_1.SaleProduct; } });
|
|
20
|
-
const SaleProductLot_1 = require("./entities/sales/SaleProductLot");
|
|
21
|
-
Object.defineProperty(exports, "SaleProductLot", { enumerable: true, get: function () { return SaleProductLot_1.SaleProductLot; } });
|
|
22
|
-
const SaleShop_1 = require("./entities/sales/SaleShop");
|
|
23
|
-
Object.defineProperty(exports, "SaleShop", { enumerable: true, get: function () { return SaleShop_1.SaleShop; } });
|
|
24
|
-
const ShopCart_1 = require("./entities/sales/ShopCart");
|
|
25
|
-
Object.defineProperty(exports, "ShopCart", { enumerable: true, get: function () { return ShopCart_1.ShopCart; } });
|
|
26
|
-
const Todo_1 = require("./entities/utilities/Todo");
|
|
27
|
-
Object.defineProperty(exports, "Todo", { enumerable: true, get: function () { return Todo_1.Todo; } });
|
|
28
|
-
const Wish_1 = require("./entities/utilities/Wish");
|
|
29
|
-
Object.defineProperty(exports, "Wish", { enumerable: true, get: function () { return Wish_1.Wish; } });
|
|
30
|
-
const City_1 = require("./entities/world/City");
|
|
31
|
-
Object.defineProperty(exports, "City", { enumerable: true, get: function () { return City_1.City; } });
|
|
32
|
-
const Continent_1 = require("./entities/world/Continent");
|
|
33
|
-
Object.defineProperty(exports, "Continent", { enumerable: true, get: function () { return Continent_1.Continent; } });
|
|
34
|
-
const Region_1 = require("./entities/world/Region");
|
|
35
|
-
Object.defineProperty(exports, "Region", { enumerable: true, get: function () { return Region_1.Region; } });
|
|
17
|
+
exports.colNaCoSh = exports.colNaCo = exports.colNa = void 0;
|
|
36
18
|
const Type_1 = require("./types/Type");
|
|
37
19
|
Object.defineProperty(exports, "colNa", { enumerable: true, get: function () { return Type_1.colNa; } });
|
|
38
20
|
Object.defineProperty(exports, "colNaCo", { enumerable: true, get: function () { return Type_1.colNaCo; } });
|
|
39
21
|
Object.defineProperty(exports, "colNaCoSh", { enumerable: true, get: function () { return Type_1.colNaCoSh; } });
|
|
22
|
+
__exportStar(require("./entities/bills/index"), exports);
|
|
23
|
+
__exportStar(require("./entities/buys/index"), exports);
|
|
24
|
+
__exportStar(require("./entities/comptas/index"), exports);
|
|
25
|
+
__exportStar(require("./entities/estates/index"), exports);
|
|
26
|
+
__exportStar(require("./entities/sales/index"), exports);
|
|
27
|
+
__exportStar(require("./entities/users/index"), exports);
|
|
28
|
+
__exportStar(require("./entities/world/index"), exports);
|
|
29
|
+
__exportStar(require("./entities/cashs/index"), exports);
|
|
30
|
+
__exportStar(require("./entities/auth/index"), exports);
|
|
31
|
+
__exportStar(require("./entities/docs/index"), exports);
|
|
32
|
+
__exportStar(require("./entities/mails/index"), exports);
|
|
33
|
+
__exportStar(require("./entities/products/index"), exports);
|
|
34
|
+
__exportStar(require("./entities/utilities/index"), exports);
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ import StorageService from "./services/storageService";
|
|
|
8
8
|
import "./auth";
|
|
9
9
|
import "./bill";
|
|
10
10
|
import "./bootstrap";
|
|
11
|
-
import "./models/entities/estates/index";
|
|
12
|
-
import "./models/entities/users/index";
|
|
13
11
|
import "./models/index";
|
|
14
12
|
import "./pdfs/invoices/amountInvoice";
|
|
15
13
|
import "./pdfs/invoices/infoInvoice";
|
|
@@ -34,6 +32,4 @@ export * from "./sale";
|
|
|
34
32
|
export * from "./typeorm";
|
|
35
33
|
export * from "./user";
|
|
36
34
|
export * from "./utils";
|
|
37
|
-
export * from "./models/entities/estates/index";
|
|
38
|
-
export * from "./models/entities/users/index";
|
|
39
35
|
export { AuthService, StorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
package/lib/esm/index.js
CHANGED
|
@@ -8,8 +8,9 @@ import StorageService from "./services/storageService";
|
|
|
8
8
|
import "./auth";
|
|
9
9
|
import "./bill";
|
|
10
10
|
import "./bootstrap";
|
|
11
|
-
import "./models/entities/estates/index";
|
|
12
|
-
import "./models/entities/users
|
|
11
|
+
// import "./models/entities/estates/index";
|
|
12
|
+
// import "./models/entities/users";
|
|
13
|
+
// import "./models/entities/users/index";
|
|
13
14
|
import "./models/index";
|
|
14
15
|
import "./pdfs/invoices/amountInvoice";
|
|
15
16
|
import "./pdfs/invoices/infoInvoice";
|
|
@@ -34,7 +35,5 @@ export * from "./sale";
|
|
|
34
35
|
export * from "./typeorm";
|
|
35
36
|
export * from "./user";
|
|
36
37
|
export * from "./utils";
|
|
37
|
-
export * from "./models/entities/estates/index";
|
|
38
|
-
export * from "./models/entities/users/index";
|
|
39
38
|
// export * from "./helpers/hlpProduct";
|
|
40
39
|
export { AuthService, StorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
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 };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Account } from "./Account";
|
|
2
|
+
import { Bank } from "./Bank";
|
|
3
|
+
import { Currency } from "./Currency";
|
|
4
|
+
import { Deposit } from "./Deposit";
|
|
5
|
+
import { Feed } from "./Feed";
|
|
6
|
+
import { Spent } from "./Spent";
|
|
7
|
+
export { Account, Bank, Currency, Deposit, Feed, Spent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Entry } from "./Entry";
|
|
2
|
+
import { EntryAccount } from "./EntryAccount";
|
|
3
|
+
import { EntryCat } from "./EntryCat";
|
|
4
|
+
import { EntryLine } from "./EntryLine";
|
|
5
|
+
import { OhadaCat } from "./OhadaCat";
|
|
6
|
+
import { OhadaGrp } from "./OhadaGrp";
|
|
7
|
+
import { OhadaPlan } from "./OhadaPlan";
|
|
8
|
+
import { OhadaSubCat } from "./OhadaSubCat";
|
|
9
|
+
export { Entry, EntryAccount, EntryCat, EntryLine, OhadaCat, OhadaGrp, OhadaPlan, OhadaSubCat };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Product } from "./Product";
|
|
2
|
+
import { ProductAgcy } from "./ProductAgcy";
|
|
3
|
+
import { ProductAmm } from "./ProductAmm";
|
|
4
|
+
import { ProductBuy } from "./ProductBuy";
|
|
5
|
+
import { ProductCat } from "./ProductCat";
|
|
6
|
+
import { ProductDci } from "./ProductDci";
|
|
7
|
+
import { ProductDepot } from "./ProductDepot";
|
|
8
|
+
import { ProductDos } from "./ProductDos";
|
|
9
|
+
import { ProductFg } from "./ProductFg";
|
|
10
|
+
import { ProductIn } from "./ProductIn";
|
|
11
|
+
import { ProductInOut } from "./ProductInOut";
|
|
12
|
+
import { ProductInventory } from "./ProductInventory";
|
|
13
|
+
import { ProductLabo } from "./ProductLabo";
|
|
14
|
+
import { ProductLoc } from "./ProductLoc";
|
|
15
|
+
import { ProductMvt } from "./ProductMvt";
|
|
16
|
+
import { ProductMvtInventory } from "./ProductMvtInventory";
|
|
17
|
+
import { ProductOutReason } from "./ProductOutReason";
|
|
18
|
+
import { ProductPromo } from "./ProductPromo";
|
|
19
|
+
import { ProductPvd } from "./ProductPvd";
|
|
20
|
+
import { ProductSof } from "./ProductSof";
|
|
21
|
+
import { ProductStore } from "./ProductStore";
|
|
22
|
+
import { ProductTcl } from "./ProductTcl";
|
|
23
|
+
import { ProductTclGrp } from "./ProductTclGrp";
|
|
24
|
+
import { ProductTransfert } from "./ProductTransfert";
|
|
25
|
+
import { ProductWanted } from "./ProductWanted";
|
|
26
|
+
export { Product, ProductAgcy, ProductAmm, ProductBuy, ProductCat, ProductDci, ProductDepot, ProductDos, ProductFg, ProductIn, ProductInOut, ProductInventory, ProductLabo, ProductLoc, ProductMvt, ProductMvtInventory, ProductOutReason, ProductPromo, ProductPvd, ProductSof, ProductStore, ProductTcl, ProductTclGrp, ProductTransfert, ProductWanted, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CartItem } from "./CartItem";
|
|
2
|
+
import { DelideryProcess } from "./DeliveryProcess";
|
|
3
|
+
import { SaleTreatStatus } from "./enums/SaleTreatStatus";
|
|
4
|
+
import { Sale } from "./Sale";
|
|
5
|
+
import { SaleDelivery } from "./SaleDelivery";
|
|
6
|
+
import { SaleInfo } from "./SaleInfo";
|
|
7
|
+
import { SaleItems } from "./SaleItems";
|
|
8
|
+
import { SaleProduct } from "./SaleProduct";
|
|
9
|
+
import { SaleProductLot } from "./SaleProductLot";
|
|
10
|
+
import { SaleProductQtityIssue } from "./SaleProductQtityIssue";
|
|
11
|
+
import { SaleShop } from "./SaleShop";
|
|
12
|
+
import { ShopCart } from "./ShopCart";
|
|
13
|
+
export { CartItem, DelideryProcess, Sale, SaleDelivery, SaleInfo, SaleItems, SaleProduct, SaleProductLot, SaleProductQtityIssue, SaleShop, SaleTreatStatus, ShopCart, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SaleTreatStatus } from "./enums/SaleTreatStatus";
|
|
2
|
+
import { SaleItems } from "./SaleItems";
|
|
3
|
+
import { SaleProduct } from "./SaleProduct";
|
|
4
|
+
import { SaleProductLot } from "./SaleProductLot";
|
|
5
|
+
import { SaleShop } from "./SaleShop";
|
|
6
|
+
import { ShopCart } from "./ShopCart";
|
|
7
|
+
export { SaleItems, SaleProduct, SaleProductLot, SaleShop, SaleTreatStatus, ShopCart, };
|
|
@@ -7,9 +7,10 @@ import { SteGrp } from "./SteGrp";
|
|
|
7
7
|
import { User } from "./User";
|
|
8
8
|
import { UserCredit } from "./UserCredit";
|
|
9
9
|
import { UserGrp } from "./UserGrp";
|
|
10
|
+
import { UserNotarial } from "./UserNotatial";
|
|
10
11
|
import { UserNote } from "./UserNote";
|
|
11
12
|
import { UserOnline } from "./UserOnline";
|
|
12
13
|
import { UserRole } from "./UserRole";
|
|
13
14
|
import { UserTitr } from "./UserTitr";
|
|
14
15
|
import { Zone } from "./Zone";
|
|
15
|
-
export { Address, DutyPhcie, Gender, Leave, Ste, SteGrp, User, UserCredit, UserGrp, UserNote, UserOnline, UserRole, UserTitr, Zone };
|
|
16
|
+
export { UserNotarial, Address, DutyPhcie, Gender, Leave, Ste, SteGrp, User, UserCredit, UserGrp, UserNote, UserOnline, UserRole, UserTitr, Zone, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UserCredit } from "./UserCredit";
|
|
2
|
-
export { UserCredit };
|
|
2
|
+
export { UserCredit, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { City } from "./City";
|
|
2
|
+
import { Continent } from "./Continent";
|
|
3
|
+
import { Country } from "./Country";
|
|
4
|
+
import { Department } from "./Department";
|
|
5
|
+
import { Quarter } from "./Quarter";
|
|
6
|
+
import { Region } from "./Region";
|
|
7
|
+
export { City, Continent, Country, Department, Quarter, Region };
|
|
@@ -1,88 +1,18 @@
|
|
|
1
|
-
import { AuthTag } from "./entities/auth/AuthTag";
|
|
2
|
-
import { AuthTagCat } from "./entities/auth/AuthTagCat";
|
|
3
|
-
import { Bill } from "./entities/bills/Bill";
|
|
4
|
-
import { BillLine } from "./entities/bills/BillLine";
|
|
5
|
-
import { BillPayment } from "./entities/bills/BillPayment";
|
|
6
|
-
import { BillPaymentMethod } from "./entities/bills/BillPaymentMethod";
|
|
7
|
-
import { CBillPeriod } from "./entities/bills/CBillPeriod";
|
|
8
|
-
import { EBillPeriod } from "./entities/bills/EBillPeriod";
|
|
9
|
-
import { EPayMethod } from "./entities/bills/EPayMethod";
|
|
10
|
-
import { Buy } from "./entities/buys/Buy";
|
|
11
|
-
import { BuyCart } from "./entities/buys/BuyCart";
|
|
12
|
-
import { BuyItem } from "./entities/buys/BuyItem";
|
|
13
|
-
import { BuyItems } from "./entities/buys/BuyItems";
|
|
14
|
-
import { Account } from "./entities/cashs/Account";
|
|
15
|
-
import { Bank } from "./entities/cashs/Bank";
|
|
16
|
-
import { Currency } from "./entities/cashs/Currency";
|
|
17
|
-
import { Deposit } from "./entities/cashs/Deposit";
|
|
18
|
-
import { Feed } from "./entities/cashs/Feed";
|
|
19
|
-
import { Spent } from "./entities/cashs/Spent";
|
|
20
|
-
import { Entry } from "./entities/comptas/Entry";
|
|
21
|
-
import { EntryAccount } from "./entities/comptas/EntryAccount";
|
|
22
|
-
import { EntryCat } from "./entities/comptas/EntryCat";
|
|
23
|
-
import { EntryLine } from "./entities/comptas/EntryLine";
|
|
24
|
-
import { OhadaCat } from "./entities/comptas/OhadaCat";
|
|
25
|
-
import { OhadaGrp } from "./entities/comptas/OhadaGrp";
|
|
26
|
-
import { OhadaPlan } from "./entities/comptas/OhadaPlan";
|
|
27
|
-
import { OhadaSubCat } from "./entities/comptas/OhadaSubCat";
|
|
28
|
-
import { Docu } from "./entities/docs/Docu";
|
|
29
|
-
import { DocuCat } from "./entities/docs/DocuCat";
|
|
30
|
-
import { Faq } from "./entities/docs/Faq";
|
|
31
|
-
import { FaqCat } from "./entities/docs/FaqCat";
|
|
32
|
-
import { Memo } from "./entities/docs/Memo";
|
|
33
|
-
import { MemoCat } from "./entities/docs/MemoCat";
|
|
34
|
-
import { Mail } from "./entities/mails/Mail";
|
|
35
|
-
import { MailMass } from "./entities/mails/MailMass";
|
|
36
|
-
import { MsgAlert } from "./entities/mails/MsgAlert";
|
|
37
|
-
import { MsgChat } from "./entities/mails/MsgChat";
|
|
38
|
-
import { Product } from "./entities/products/Product";
|
|
39
|
-
import { ProductAgcy } from "./entities/products/ProductAgcy";
|
|
40
|
-
import { ProductAmm } from "./entities/products/ProductAmm";
|
|
41
|
-
import { ProductBuy } from "./entities/products/ProductBuy";
|
|
42
|
-
import { ProductCat } from "./entities/products/ProductCat";
|
|
43
|
-
import { ProductDci } from "./entities/products/ProductDci";
|
|
44
|
-
import { ProductDepot } from "./entities/products/ProductDepot";
|
|
45
|
-
import { ProductDos } from "./entities/products/ProductDos";
|
|
46
|
-
import { ProductFg } from "./entities/products/ProductFg";
|
|
47
|
-
import { ProductIn } from "./entities/products/ProductIn";
|
|
48
|
-
import { ProductInOut } from "./entities/products/ProductInOut";
|
|
49
|
-
import { ProductInventory } from "./entities/products/ProductInventory";
|
|
50
|
-
import { ProductLabo } from "./entities/products/ProductLabo";
|
|
51
|
-
import { ProductLoc } from "./entities/products/ProductLoc";
|
|
52
|
-
import { ProductMvt } from "./entities/products/ProductMvt";
|
|
53
|
-
import { ProductMvtInventory } from "./entities/products/ProductMvtInventory";
|
|
54
|
-
import { ProductOutReason } from "./entities/products/ProductOutReason";
|
|
55
|
-
import { ProductPromo } from "./entities/products/ProductPromo";
|
|
56
|
-
import { ProductPvd } from "./entities/products/ProductPvd";
|
|
57
|
-
import { ProductSof } from "./entities/products/ProductSof";
|
|
58
|
-
import { ProductStore } from "./entities/products/ProductStore";
|
|
59
|
-
import { ProductTcl } from "./entities/products/ProductTcl";
|
|
60
|
-
import { ProductTclGrp } from "./entities/products/ProductTclGrp";
|
|
61
|
-
import { ProductTransfert } from "./entities/products/ProductTransfert";
|
|
62
|
-
import { ProductWanted } from "./entities/products/ProductWanted";
|
|
63
|
-
import { CartItem } from "./entities/sales/CartItem";
|
|
64
|
-
import { DelideryProcess } from "./entities/sales/DeliveryProcess";
|
|
65
|
-
import { SaleTreatStatus } from "./entities/sales/enums/SaleTreatStatus";
|
|
66
|
-
import { Sale } from "./entities/sales/Sale";
|
|
67
|
-
import { SaleDelivery } from "./entities/sales/SaleDelivery";
|
|
68
|
-
import { SaleInfo } from "./entities/sales/SaleInfo";
|
|
69
|
-
import { SaleItems } from "./entities/sales/SaleItems";
|
|
70
|
-
import { SaleProduct } from "./entities/sales/SaleProduct";
|
|
71
|
-
import { SaleProductLot } from "./entities/sales/SaleProductLot";
|
|
72
|
-
import { SaleProductQtityIssue } from "./entities/sales/SaleProductQtityIssue";
|
|
73
|
-
import { SaleShop } from "./entities/sales/SaleShop";
|
|
74
|
-
import { ShopCart } from "./entities/sales/ShopCart";
|
|
75
|
-
import { Todo } from "./entities/utilities/Todo";
|
|
76
|
-
import { Vehicle } from "./entities/utilities/Vehicle";
|
|
77
|
-
import { Wish } from "./entities/utilities/Wish";
|
|
78
|
-
import { City } from "./entities/world/City";
|
|
79
|
-
import { Continent } from "./entities/world/Continent";
|
|
80
|
-
import { Country } from "./entities/world/Country";
|
|
81
|
-
import { Department } from "./entities/world/Department";
|
|
82
|
-
import { Quarter } from "./entities/world/Quarter";
|
|
83
|
-
import { Region } from "./entities/world/Region";
|
|
84
1
|
import { NaAc } from "./shared/NaAc";
|
|
85
2
|
import { NaCoAc } from "./shared/NaCoAc";
|
|
86
3
|
import { NaCoShortAc } from "./shared/NaCoShortAc";
|
|
87
4
|
import { colNa, colNaCo, colNaCoSh, FormProps, HeaderTableColumnType, IPath, MenuItemType } from "./types/Type";
|
|
88
|
-
export
|
|
5
|
+
export * from "./entities/bills/index";
|
|
6
|
+
export * from "./entities/buys/index";
|
|
7
|
+
export * from "./entities/comptas/index";
|
|
8
|
+
export * from "./entities/estates/index";
|
|
9
|
+
export * from "./entities/sales/index";
|
|
10
|
+
export * from "./entities/users/index";
|
|
11
|
+
export * from "./entities/world/index";
|
|
12
|
+
export * from "./entities/cashs/index";
|
|
13
|
+
export * from "./entities/auth/index";
|
|
14
|
+
export * from "./entities/docs/index";
|
|
15
|
+
export * from "./entities/mails/index";
|
|
16
|
+
export * from "./entities/products/index";
|
|
17
|
+
export * from "./entities/utilities/index";
|
|
18
|
+
export { NaAc, NaCoAc, NaCoShortAc, MenuItemType, HeaderTableColumnType, IPath, colNa, colNaCo, colNaCoSh, FormProps };
|
package/lib/esm/models/index.js
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import { CBillPeriod } from "./entities/bills/CBillPeriod";
|
|
2
|
-
import { EBillPeriod } from "./entities/bills/EBillPeriod";
|
|
3
|
-
import { EPayMethod } from "./entities/bills/EPayMethod";
|
|
4
|
-
import { BuyItems } from "./entities/buys/BuyItems";
|
|
5
|
-
import { ProductPromo } from "./entities/products/ProductPromo";
|
|
6
|
-
import { SaleTreatStatus } from "./entities/sales/enums/SaleTreatStatus";
|
|
7
|
-
import { SaleItems } from "./entities/sales/SaleItems";
|
|
8
|
-
import { SaleProduct } from "./entities/sales/SaleProduct";
|
|
9
|
-
import { SaleProductLot } from "./entities/sales/SaleProductLot";
|
|
10
|
-
import { SaleShop } from "./entities/sales/SaleShop";
|
|
11
|
-
import { ShopCart } from "./entities/sales/ShopCart";
|
|
12
|
-
import { Todo } from "./entities/utilities/Todo";
|
|
13
|
-
import { Wish } from "./entities/utilities/Wish";
|
|
14
|
-
import { City } from "./entities/world/City";
|
|
15
|
-
import { Continent } from "./entities/world/Continent";
|
|
16
|
-
import { Region } from "./entities/world/Region";
|
|
17
1
|
import { colNa, colNaCo, colNaCoSh } from "./types/Type";
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
export * from "./entities/bills/index";
|
|
3
|
+
export * from "./entities/buys/index";
|
|
4
|
+
export * from "./entities/comptas/index";
|
|
5
|
+
export * from "./entities/estates/index";
|
|
6
|
+
export * from "./entities/sales/index";
|
|
7
|
+
export * from "./entities/users/index";
|
|
8
|
+
export * from "./entities/world/index";
|
|
9
|
+
export * from "./entities/cashs/index";
|
|
10
|
+
export * from "./entities/auth/index";
|
|
11
|
+
export * from "./entities/docs/index";
|
|
12
|
+
export * from "./entities/mails/index";
|
|
13
|
+
export * from "./entities/products/index";
|
|
14
|
+
export * from "./entities/utilities/index";
|
|
15
|
+
export { colNa, colNaCo, colNaCoSh };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HlpProduct: () => void;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HlpProduct = void 0;
|
|
4
|
-
const HlpProduct = () => {
|
|
5
|
-
const productCatCode = (product, catCodes) => {
|
|
6
|
-
return catCodes.includes(product.cat.code && product.cat.code.toLowerCase());
|
|
7
|
-
};
|
|
8
|
-
const qtityInAllDepots = (ins) => {
|
|
9
|
-
return 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
|
-
const 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
|
-
const 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
|
-
const qtityInAllDepotsExeptStore = (ins, stores) => {
|
|
41
|
-
return 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
|
-
const getStockSalable = (product) => {
|
|
50
|
-
const stockAllSalable = qtityInAllDepots(product.ins) - (+product.stores[0].stockReserved || 0);
|
|
51
|
-
const stockStore = 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
|
-
const onSortStock = (sortStock, filteredProducts) => {
|
|
68
|
-
// sortStock = !sortStock;
|
|
69
|
-
filteredProducts.sort((a, b) => {
|
|
70
|
-
// const keyA = a.stock;
|
|
71
|
-
const keyA = getStockStore(a);
|
|
72
|
-
// const keyB = b.stock;
|
|
73
|
-
const keyB = getStockStore(b);
|
|
74
|
-
return sortStock ? keyB - keyA : keyA - keyB;
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
// product|stock:'store'
|
|
78
|
-
// ------ sort cession price ------
|
|
79
|
-
const 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
|
-
const 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
|
-
const 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
|
-
const 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: ProductIn[]) {
|
|
119
|
-
let lots: string[] = [];
|
|
120
|
-
for (const pdtIn of ins) {
|
|
121
|
-
if (pdtIn.lot) {
|
|
122
|
-
lots.push(pdtIn.lot + " =>" + moment(pdtIn.expirationDate).format("DD/MM/YYYY"));
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return [...new Set(lots)];
|
|
126
|
-
} */
|
|
127
|
-
};
|
|
128
|
-
exports.HlpProduct = HlpProduct;
|
|
129
|
-
// export default new HlpProduct();
|
|
130
|
-
// export default { qtityInAllDepots };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HlpProduct: () => void;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export const HlpProduct = () => {
|
|
2
|
-
const productCatCode = (product, catCodes) => {
|
|
3
|
-
return catCodes.includes(product.cat.code && product.cat.code.toLowerCase());
|
|
4
|
-
};
|
|
5
|
-
const qtityInAllDepots = (ins) => {
|
|
6
|
-
return getQtitiesInDepots(ins);
|
|
7
|
-
/* if (!ins.length) {return 0; }
|
|
8
|
-
|
|
9
|
-
ins = ins.filter( x => x.depot && x.depot.name.toLocaleLowerCase() !== 'arrivage');
|
|
10
|
-
return ins.reduce((prev, curr: ProductIn) => {
|
|
11
|
-
return +prev + (+curr.qtity);
|
|
12
|
-
}, 0); */
|
|
13
|
-
};
|
|
14
|
-
const stockValueInDepots = (product, exceptDepots = []) => {
|
|
15
|
-
if (!product.ins.length) {
|
|
16
|
-
return 0;
|
|
17
|
-
}
|
|
18
|
-
let ins = product.ins;
|
|
19
|
-
ins = ins.filter((x) => x.depot && !["arrivage", ...exceptDepots].includes(x.depot.name.toLocaleLowerCase()));
|
|
20
|
-
return ins.reduce((prev, curr) => {
|
|
21
|
-
var _a;
|
|
22
|
-
// return +prev + (+curr.qtity * (+product.stores?.pghtPrice || 0));
|
|
23
|
-
return +prev + +curr.qtity * (+((_a = product.stores[0]) === null || _a === void 0 ? void 0 : _a.pghtPrice) || 0);
|
|
24
|
-
}, 0);
|
|
25
|
-
// return formatToString(Math.floor(value: string | number));
|
|
26
|
-
};
|
|
27
|
-
const getQtitiesInDepots = (ins, exceptDepots = []) => {
|
|
28
|
-
if (!ins.length) {
|
|
29
|
-
return 0;
|
|
30
|
-
}
|
|
31
|
-
ins = ins.filter((x) => x.depot && x.depot.hasViewStock && !["arrivage", ...exceptDepots].includes(x.depot.name.toLocaleLowerCase()));
|
|
32
|
-
// ins = ins.filter(x => x.depot && x.depot.hasViewStock);
|
|
33
|
-
return ins.reduce((prev, curr) => {
|
|
34
|
-
return +prev + +curr.qtity;
|
|
35
|
-
}, 0);
|
|
36
|
-
};
|
|
37
|
-
const qtityInAllDepotsExeptStore = (ins, stores) => {
|
|
38
|
-
return getQtitiesInDepots(ins, stores);
|
|
39
|
-
/* if (!ins?.length) {return 0; }
|
|
40
|
-
|
|
41
|
-
ins = ins.filter( x => x.depot && x.depot.name.toLocaleLowerCase() !== storeName && x.depot.name.toLocaleLowerCase() !== 'arrivage');
|
|
42
|
-
return ins.reduce((prev, curr: ProductIn) => {
|
|
43
|
-
return prev + (+curr.qtity);
|
|
44
|
-
}, 0); */
|
|
45
|
-
};
|
|
46
|
-
const getStockSalable = (product) => {
|
|
47
|
-
const stockAllSalable = qtityInAllDepots(product.ins) - (+product.stores[0].stockReserved || 0);
|
|
48
|
-
const stockStore = getStockStore(product);
|
|
49
|
-
let stockSalable = 0;
|
|
50
|
-
if (sessionStorage.getItem("isProforma") === "isProforma") {
|
|
51
|
-
stockSalable = stockAllSalable;
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
if (stockAllSalable <= stockStore) {
|
|
55
|
-
stockSalable = stockAllSalable;
|
|
56
|
-
}
|
|
57
|
-
if (stockAllSalable > stockStore) {
|
|
58
|
-
stockSalable = stockStore;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return stockSalable || 0;
|
|
62
|
-
};
|
|
63
|
-
// ------ sort product stock ------
|
|
64
|
-
const onSortStock = (sortStock, filteredProducts) => {
|
|
65
|
-
// sortStock = !sortStock;
|
|
66
|
-
filteredProducts.sort((a, b) => {
|
|
67
|
-
// const keyA = a.stock;
|
|
68
|
-
const keyA = getStockStore(a);
|
|
69
|
-
// const keyB = b.stock;
|
|
70
|
-
const keyB = getStockStore(b);
|
|
71
|
-
return sortStock ? keyB - keyA : keyA - keyB;
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
// product|stock:'store'
|
|
75
|
-
// ------ sort cession price ------
|
|
76
|
-
const onSortPc = (sortPc, filteredProducts) => {
|
|
77
|
-
// sortPc = !sortPc;
|
|
78
|
-
filteredProducts.sort((a, b) => {
|
|
79
|
-
const keyA = a.stores[0].salePrice;
|
|
80
|
-
const keyB = b.stores[0].salePrice;
|
|
81
|
-
return sortPc ? keyB - keyA : keyA - keyB;
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
const onSortPght = (sortPght, filteredProducts) => {
|
|
85
|
-
// this.sortPght = !this.sortPght;
|
|
86
|
-
filteredProducts.sort((a, b) => {
|
|
87
|
-
const keyA = a.stores[0].pghtPrice;
|
|
88
|
-
const keyB = b.stores[0].pghtPrice;
|
|
89
|
-
return sortPght ? keyB - keyA : keyA - keyB;
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
const sortDesignation = (sortDesignation, filteredProducts) => {
|
|
93
|
-
// this.sortDesignation = !this.sortDesignation;
|
|
94
|
-
filteredProducts.sort((a, b) => {
|
|
95
|
-
return sortDesignation ? b.designation.localeCompare(a.designation) : a.designation.localeCompare(b.designation);
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
const getStockStore = (product) => {
|
|
99
|
-
let stock = 0;
|
|
100
|
-
if (product === null || product === void 0 ? void 0 : product.ins) {
|
|
101
|
-
for (const pdtIn of product === null || product === void 0 ? void 0 : product.ins) {
|
|
102
|
-
// if(pdtIn.depot.name.toLocaleLowerCase() === environment.host.toLocaleLowerCase()) {
|
|
103
|
-
if (pdtIn.depot.main === "master") {
|
|
104
|
-
stock += pdtIn.qtity;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
// return stock - (+product.stores[0].stockReserved|| 0)
|
|
109
|
-
return stock;
|
|
110
|
-
// if(!product.ins.length) {return 0}
|
|
111
|
-
/* return product.ins.reduce((prev, curr: ProductIn) => {
|
|
112
|
-
return prev + +curr.qtity
|
|
113
|
-
}, 0) */
|
|
114
|
-
};
|
|
115
|
-
/* getLotsToString(ins: ProductIn[]) {
|
|
116
|
-
let lots: string[] = [];
|
|
117
|
-
for (const pdtIn of ins) {
|
|
118
|
-
if (pdtIn.lot) {
|
|
119
|
-
lots.push(pdtIn.lot + " =>" + moment(pdtIn.expirationDate).format("DD/MM/YYYY"));
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return [...new Set(lots)];
|
|
123
|
-
} */
|
|
124
|
-
};
|
|
125
|
-
// export default new HlpProduct();
|
|
126
|
-
// export default { qtityInAllDepots };
|