asv-hlps 1.4.49 → 1.4.51
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/cashs/models/Spent.d.ts +1 -1
- package/lib/cjs/comptas/hlpEntry.d.ts +21 -2
- package/lib/cjs/comptas/hlpEntry.js +3 -3
- package/lib/cjs/comptas/models/Entry.d.ts +1 -1
- package/lib/cjs/comptas/models/EntryAccount.d.ts +2 -2
- package/lib/cjs/comptas/models/EntryLine.d.ts +2 -2
- package/lib/cjs/comptas/models/EntryLine.js +1 -0
- package/lib/cjs/comptas/models/index.d.ts +1 -1
- package/lib/esm/cashs/models/Spent.d.ts +1 -1
- package/lib/esm/comptas/hlpEntry.d.ts +21 -2
- package/lib/esm/comptas/hlpEntry.js +3 -3
- package/lib/esm/comptas/models/Entry.d.ts +1 -1
- package/lib/esm/comptas/models/EntryAccount.d.ts +2 -2
- package/lib/esm/comptas/models/EntryLine.d.ts +2 -2
- package/lib/esm/comptas/models/EntryLine.js +1 -0
- package/lib/esm/comptas/models/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import Entry from "./models/Entry";
|
|
2
|
-
import EntryLine from "./models/EntryLine";
|
|
2
|
+
import { EntryLine } from "./models/EntryLine";
|
|
3
3
|
declare class HlpEntry {
|
|
4
|
-
sortAccount: (tobs: EntryLine[], accountDirection: boolean) =>
|
|
4
|
+
sortAccount: (tobs: EntryLine[], accountDirection: boolean) => Partial<{
|
|
5
|
+
id: number;
|
|
6
|
+
createdAt?: Date;
|
|
7
|
+
bill: import("..").Bill;
|
|
8
|
+
amountTva?: number;
|
|
9
|
+
amountProductHt?: number;
|
|
10
|
+
accountTva: number;
|
|
11
|
+
accountClient: number;
|
|
12
|
+
product: import("..").Product;
|
|
13
|
+
client: import("..").User;
|
|
14
|
+
designation: string;
|
|
15
|
+
account?: number;
|
|
16
|
+
accountDebit?: number;
|
|
17
|
+
accountCredit?: number;
|
|
18
|
+
amountDebit: number;
|
|
19
|
+
amountCredit: number;
|
|
20
|
+
isCredit?: boolean;
|
|
21
|
+
isDebit?: boolean;
|
|
22
|
+
lines: EntryLine[];
|
|
23
|
+
}>[];
|
|
5
24
|
amountSold: (tob: any) => number;
|
|
6
25
|
amountSoldDebit: (tob: any) => number;
|
|
7
26
|
amountSoldCredit: (tob: any) => number;
|
|
@@ -47,17 +47,17 @@ class HlpEntry {
|
|
|
47
47
|
// return this.amountSold(tob) >= 0 ? this.amountSold(tob): '' ;
|
|
48
48
|
};
|
|
49
49
|
this.entriesTotalAmountCredit = (entries) => {
|
|
50
|
-
entries.map(
|
|
50
|
+
entries.map(entry => {
|
|
51
51
|
return this.totalAmountCredit(entry.lines);
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
this.entriesTotalAmountSold = (entries) => {
|
|
55
|
-
entries.map(
|
|
55
|
+
entries.map(entry => {
|
|
56
56
|
return this.totalAmountSold(entry.lines);
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
this.entriesTotalAmountDedit = (entries) => {
|
|
60
|
-
entries.map(
|
|
60
|
+
entries.map(entry => {
|
|
61
61
|
return this.totalAmountDebit(entry.lines);
|
|
62
62
|
});
|
|
63
63
|
};
|
|
@@ -4,7 +4,7 @@ import Spent from "../../cashs/models/Spent";
|
|
|
4
4
|
import Product from "../../products/models/Product";
|
|
5
5
|
import User from "../../users/models/User";
|
|
6
6
|
import EntryCat from "./EntryCat";
|
|
7
|
-
import EntryLine from "./EntryLine";
|
|
7
|
+
import { EntryLine } from "./EntryLine";
|
|
8
8
|
import OhadaCat from "./ohada/OhadaCat";
|
|
9
9
|
export default interface Entry {
|
|
10
10
|
id?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Bill from "../../bills/models/Bill";
|
|
2
2
|
import Product from "../../products/models/Product";
|
|
3
3
|
import User from "../../users/models/User";
|
|
4
|
-
export
|
|
4
|
+
export type EntryLine = Partial<{
|
|
5
5
|
id: number;
|
|
6
6
|
createdAt?: Date;
|
|
7
7
|
bill: Bill;
|
|
@@ -20,4 +20,4 @@ export default interface EntryLine {
|
|
|
20
20
|
isCredit?: boolean;
|
|
21
21
|
isDebit?: boolean;
|
|
22
22
|
lines: EntryLine[];
|
|
23
|
-
}
|
|
23
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as Entry } from "./Entry";
|
|
2
2
|
export { default as EntryAccount } from "./EntryAccount";
|
|
3
3
|
export { default as EntryCat } from "./EntryCat";
|
|
4
|
-
export {
|
|
4
|
+
export { EntryLine } from "./EntryLine";
|
|
5
5
|
export * from "./ohada";
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import Entry from "./models/Entry";
|
|
2
|
-
import EntryLine from "./models/EntryLine";
|
|
2
|
+
import { EntryLine } from "./models/EntryLine";
|
|
3
3
|
declare class HlpEntry {
|
|
4
|
-
sortAccount: (tobs: EntryLine[], accountDirection: boolean) =>
|
|
4
|
+
sortAccount: (tobs: EntryLine[], accountDirection: boolean) => Partial<{
|
|
5
|
+
id: number;
|
|
6
|
+
createdAt?: Date;
|
|
7
|
+
bill: import("..").Bill;
|
|
8
|
+
amountTva?: number;
|
|
9
|
+
amountProductHt?: number;
|
|
10
|
+
accountTva: number;
|
|
11
|
+
accountClient: number;
|
|
12
|
+
product: import("..").Product;
|
|
13
|
+
client: import("..").User;
|
|
14
|
+
designation: string;
|
|
15
|
+
account?: number;
|
|
16
|
+
accountDebit?: number;
|
|
17
|
+
accountCredit?: number;
|
|
18
|
+
amountDebit: number;
|
|
19
|
+
amountCredit: number;
|
|
20
|
+
isCredit?: boolean;
|
|
21
|
+
isDebit?: boolean;
|
|
22
|
+
lines: EntryLine[];
|
|
23
|
+
}>[];
|
|
5
24
|
amountSold: (tob: any) => number;
|
|
6
25
|
amountSoldDebit: (tob: any) => number;
|
|
7
26
|
amountSoldCredit: (tob: any) => number;
|
|
@@ -45,17 +45,17 @@ class HlpEntry {
|
|
|
45
45
|
// return this.amountSold(tob) >= 0 ? this.amountSold(tob): '' ;
|
|
46
46
|
};
|
|
47
47
|
this.entriesTotalAmountCredit = (entries) => {
|
|
48
|
-
entries.map(
|
|
48
|
+
entries.map(entry => {
|
|
49
49
|
return this.totalAmountCredit(entry.lines);
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
this.entriesTotalAmountSold = (entries) => {
|
|
53
|
-
entries.map(
|
|
53
|
+
entries.map(entry => {
|
|
54
54
|
return this.totalAmountSold(entry.lines);
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
this.entriesTotalAmountDedit = (entries) => {
|
|
58
|
-
entries.map(
|
|
58
|
+
entries.map(entry => {
|
|
59
59
|
return this.totalAmountDebit(entry.lines);
|
|
60
60
|
});
|
|
61
61
|
};
|
|
@@ -4,7 +4,7 @@ import Spent from "../../cashs/models/Spent";
|
|
|
4
4
|
import Product from "../../products/models/Product";
|
|
5
5
|
import User from "../../users/models/User";
|
|
6
6
|
import EntryCat from "./EntryCat";
|
|
7
|
-
import EntryLine from "./EntryLine";
|
|
7
|
+
import { EntryLine } from "./EntryLine";
|
|
8
8
|
import OhadaCat from "./ohada/OhadaCat";
|
|
9
9
|
export default interface Entry {
|
|
10
10
|
id?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Bill from "../../bills/models/Bill";
|
|
2
2
|
import Product from "../../products/models/Product";
|
|
3
3
|
import User from "../../users/models/User";
|
|
4
|
-
export
|
|
4
|
+
export type EntryLine = Partial<{
|
|
5
5
|
id: number;
|
|
6
6
|
createdAt?: Date;
|
|
7
7
|
bill: Bill;
|
|
@@ -20,4 +20,4 @@ export default interface EntryLine {
|
|
|
20
20
|
isCredit?: boolean;
|
|
21
21
|
isDebit?: boolean;
|
|
22
22
|
lines: EntryLine[];
|
|
23
|
-
}
|
|
23
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as Entry } from "./Entry";
|
|
2
2
|
export { default as EntryAccount } from "./EntryAccount";
|
|
3
3
|
export { default as EntryCat } from "./EntryCat";
|
|
4
|
-
export {
|
|
4
|
+
export { EntryLine } from "./EntryLine";
|
|
5
5
|
export * from "./ohada";
|