asv-hlps 1.0.82 → 1.0.86
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/bill.d.ts +2 -1
- package/lib/cjs/helpers/pipes/stock-pipe.d.ts +1 -1
- package/lib/cjs/models/entities/bills/Bill.d.ts +1 -1
- package/lib/cjs/models/entities/products/ProductMvt.d.ts +15 -15
- package/lib/cjs/models/entities/products/ProductOutReason.d.ts +4 -4
- package/lib/cjs/models/entities/sales/SaleProduct.d.ts +1 -1
- package/lib/cjs/pdfs/invoices/infoInvoice.d.ts +2 -1
- package/lib/cjs/product.d.ts +2 -1
- package/lib/cjs/sale.d.ts +1 -1
- package/lib/cjs/user.d.ts +2 -1
- package/lib/esm/bill.d.ts +2 -1
- package/lib/esm/helpers/pipes/stock-pipe.d.ts +1 -1
- package/lib/esm/models/entities/bills/Bill.d.ts +1 -1
- package/lib/esm/models/entities/products/ProductMvt.d.ts +15 -15
- package/lib/esm/models/entities/products/ProductOutReason.d.ts +4 -4
- package/lib/esm/models/entities/sales/SaleProduct.d.ts +1 -1
- package/lib/esm/pdfs/invoices/infoInvoice.d.ts +2 -1
- package/lib/esm/product.d.ts +2 -1
- package/lib/esm/sale.d.ts +1 -1
- package/lib/esm/user.d.ts +2 -1
- package/package.json +2 -1
package/lib/cjs/bill.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bill } from "./models/entities/bills/Bill";
|
|
2
|
+
import { Sale } from "./models/entities/sales/Sale";
|
|
2
3
|
export declare const getNbProductsOnBill: (sales: Sale[]) => number;
|
|
3
4
|
export declare const getNbPackagesOnBill: (sales: Sale[]) => number;
|
|
4
5
|
export declare const getNbFreezeOnBill: (sales: Sale[]) => number;
|
|
@@ -3,21 +3,21 @@ import { Currency } from "../cashs/Currency";
|
|
|
3
3
|
import { Ste } from "../users/Ste";
|
|
4
4
|
import { User } from "../users/User";
|
|
5
5
|
export interface ProductMvt {
|
|
6
|
-
id
|
|
7
|
-
createdAt
|
|
8
|
-
ref
|
|
6
|
+
id?: number;
|
|
7
|
+
createdAt?: Date;
|
|
8
|
+
ref?: string;
|
|
9
9
|
refCmd?: string;
|
|
10
10
|
billNumber?: string;
|
|
11
|
-
motive
|
|
12
|
-
authorId
|
|
13
|
-
author
|
|
14
|
-
store
|
|
15
|
-
costs
|
|
16
|
-
pvdId
|
|
17
|
-
pvd
|
|
18
|
-
billPaidStatus
|
|
19
|
-
currency
|
|
20
|
-
isDone
|
|
21
|
-
tsfMan
|
|
22
|
-
validedMan
|
|
11
|
+
motive?: InOutMotive | string;
|
|
12
|
+
authorId?: number;
|
|
13
|
+
author?: User;
|
|
14
|
+
store?: string;
|
|
15
|
+
costs?: number;
|
|
16
|
+
pvdId?: number;
|
|
17
|
+
pvd?: Ste;
|
|
18
|
+
billPaidStatus?: string;
|
|
19
|
+
currency?: Currency;
|
|
20
|
+
isDone?: boolean;
|
|
21
|
+
tsfMan?: User;
|
|
22
|
+
validedMan?: User;
|
|
23
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Product } from "../products/Product";
|
|
2
2
|
import { ProductOutReason } from "../products/ProductOutReason";
|
|
3
|
-
import { Sale } from "./Sale";
|
|
4
3
|
import { SaleProductLot } from "./SaleProductLot";
|
|
4
|
+
import { Sale } from "asv-hlps-models";
|
|
5
5
|
export declare class SaleProduct {
|
|
6
6
|
id?: number;
|
|
7
7
|
createdAt?: Date;
|
package/lib/cjs/product.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { Product
|
|
1
|
+
import { Product } from "./models/entities/products/Product";
|
|
2
|
+
import { User } from "./models/entities/users/User";
|
|
2
3
|
export declare const unitPriceByClientCat: (product: Product, client: User, speUnitPrice?: number, addDiscount?: boolean) => number;
|
|
3
4
|
export declare const productCatCode: (product: Product, catCodes: string[]) => boolean;
|
package/lib/cjs/sale.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sale } from "./models";
|
|
1
|
+
import { Sale } from "./models/entities/sales/Sale";
|
|
2
2
|
export declare const getNbProductsOnSale: (sale: Sale) => number;
|
|
3
3
|
export declare const getTotalTvaOnSale: (sale: Sale, dlvr?: boolean) => number;
|
|
4
4
|
export declare const getSubTotalAmountOnSale: (sale: Sale, dlvr?: boolean) => number;
|
package/lib/cjs/user.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Ste
|
|
1
|
+
import { Ste } from "./models/entities/users/Ste";
|
|
2
|
+
import { User } from "./models/entities/users/User";
|
|
2
3
|
export declare const inGrp: (grps: string[], user: User) => boolean;
|
|
3
4
|
export declare const inSteGrp: (grps: string[], user: User) => boolean;
|
|
4
5
|
export declare const hasRole: (roles: string[], user: User) => boolean;
|
package/lib/esm/bill.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bill } from "./models/entities/bills/Bill";
|
|
2
|
+
import { Sale } from "./models/entities/sales/Sale";
|
|
2
3
|
export declare const getNbProductsOnBill: (sales: Sale[]) => number;
|
|
3
4
|
export declare const getNbPackagesOnBill: (sales: Sale[]) => number;
|
|
4
5
|
export declare const getNbFreezeOnBill: (sales: Sale[]) => number;
|
|
@@ -3,21 +3,21 @@ import { Currency } from "../cashs/Currency";
|
|
|
3
3
|
import { Ste } from "../users/Ste";
|
|
4
4
|
import { User } from "../users/User";
|
|
5
5
|
export interface ProductMvt {
|
|
6
|
-
id
|
|
7
|
-
createdAt
|
|
8
|
-
ref
|
|
6
|
+
id?: number;
|
|
7
|
+
createdAt?: Date;
|
|
8
|
+
ref?: string;
|
|
9
9
|
refCmd?: string;
|
|
10
10
|
billNumber?: string;
|
|
11
|
-
motive
|
|
12
|
-
authorId
|
|
13
|
-
author
|
|
14
|
-
store
|
|
15
|
-
costs
|
|
16
|
-
pvdId
|
|
17
|
-
pvd
|
|
18
|
-
billPaidStatus
|
|
19
|
-
currency
|
|
20
|
-
isDone
|
|
21
|
-
tsfMan
|
|
22
|
-
validedMan
|
|
11
|
+
motive?: InOutMotive | string;
|
|
12
|
+
authorId?: number;
|
|
13
|
+
author?: User;
|
|
14
|
+
store?: string;
|
|
15
|
+
costs?: number;
|
|
16
|
+
pvdId?: number;
|
|
17
|
+
pvd?: Ste;
|
|
18
|
+
billPaidStatus?: string;
|
|
19
|
+
currency?: Currency;
|
|
20
|
+
isDone?: boolean;
|
|
21
|
+
tsfMan?: User;
|
|
22
|
+
validedMan?: User;
|
|
23
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Product } from "../products/Product";
|
|
2
2
|
import { ProductOutReason } from "../products/ProductOutReason";
|
|
3
|
-
import { Sale } from "./Sale";
|
|
4
3
|
import { SaleProductLot } from "./SaleProductLot";
|
|
4
|
+
import { Sale } from "asv-hlps-models";
|
|
5
5
|
export declare class SaleProduct {
|
|
6
6
|
id?: number;
|
|
7
7
|
createdAt?: Date;
|
package/lib/esm/product.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { Product
|
|
1
|
+
import { Product } from "./models/entities/products/Product";
|
|
2
|
+
import { User } from "./models/entities/users/User";
|
|
2
3
|
export declare const unitPriceByClientCat: (product: Product, client: User, speUnitPrice?: number, addDiscount?: boolean) => number;
|
|
3
4
|
export declare const productCatCode: (product: Product, catCodes: string[]) => boolean;
|
package/lib/esm/sale.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sale } from "./models";
|
|
1
|
+
import { Sale } from "./models/entities/sales/Sale";
|
|
2
2
|
export declare const getNbProductsOnSale: (sale: Sale) => number;
|
|
3
3
|
export declare const getTotalTvaOnSale: (sale: Sale, dlvr?: boolean) => number;
|
|
4
4
|
export declare const getSubTotalAmountOnSale: (sale: Sale, dlvr?: boolean) => number;
|
package/lib/esm/user.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Ste
|
|
1
|
+
import { Ste } from "./models/entities/users/Ste";
|
|
2
|
+
import { User } from "./models/entities/users/User";
|
|
2
3
|
export declare const inGrp: (grps: string[], user: User) => boolean;
|
|
3
4
|
export declare const inSteGrp: (grps: string[], user: User) => boolean;
|
|
4
5
|
export declare const hasRole: (roles: string[], user: User) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asv-hlps",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.86",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"typescript": "^4.7.4"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"asv-hlps-models": "^1.0.10",
|
|
24
25
|
"bcryptjs": "^2.4.3",
|
|
25
26
|
"randomatic": "^3.1.1"
|
|
26
27
|
}
|