@tomei/finance 0.6.99 → 0.6.102
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/.husky/commit-msg +12 -3
- package/.husky/pre-commit +4 -4
- package/configs/config.js +1 -1
- package/dist/account/account.d.ts +37 -37
- package/dist/account/account.js +251 -263
- package/dist/account/account.js.map +1 -1
- package/dist/account/account.repository.d.ts +5 -5
- package/dist/account/account.repository.js +11 -11
- package/dist/account/interfaces/account-attr.interface.d.ts +29 -29
- package/dist/account/interfaces/account-attr.interface.js +2 -2
- package/dist/account-system-entity/account-system-entity.d.ts +12 -12
- package/dist/account-system-entity/account-system-entity.js +55 -66
- package/dist/account-system-entity/account-system-entity.js.map +1 -1
- package/dist/account-system-entity/post-history.repository.d.ts +5 -5
- package/dist/account-system-entity/post-history.repository.js +11 -11
- package/dist/config.d.ts +1888 -1888
- package/dist/config.js +331 -331
- package/dist/config.js.map +1 -1
- package/dist/customer/customer.d.ts +44 -44
- package/dist/customer/customer.js +212 -234
- package/dist/customer/customer.js.map +1 -1
- package/dist/customer/finance-customer.repository.d.ts +5 -5
- package/dist/customer/finance-customer.repository.js +25 -25
- package/dist/customer/finance-customer.repository.js.map +1 -1
- package/dist/customer/interfaces/customer.repository.interface.d.ts +3 -3
- package/dist/customer/interfaces/customer.repository.interface.js +2 -2
- package/dist/customer/interfaces/finance-customer-attr.interface.d.ts +10 -10
- package/dist/customer/interfaces/finance-customer-attr.interface.js +2 -2
- package/dist/customer/interfaces/finance-customer.repository.interface.d.ts +3 -3
- package/dist/customer/interfaces/finance-customer.repository.interface.js +2 -2
- package/dist/database.d.ts +4 -4
- package/dist/database.js +46 -47
- package/dist/database.js.map +1 -1
- package/dist/document/document-item.d.ts +46 -46
- package/dist/document/document-item.js +122 -132
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document-item.repository.d.ts +5 -5
- package/dist/document/document-item.repository.js +11 -11
- package/dist/document/document.d.ts +87 -88
- package/dist/document/document.js +735 -766
- package/dist/document/document.js.map +1 -1
- package/dist/document/document.repository.d.ts +5 -5
- package/dist/document/document.repository.js +11 -11
- package/dist/document/interfaces/document-attr.interface.d.ts +27 -27
- package/dist/document/interfaces/document-attr.interface.js +6 -6
- package/dist/document/interfaces/document-find-all.interface.d.ts +13 -13
- package/dist/document/interfaces/document-find-all.interface.js +2 -2
- package/dist/document/interfaces/document-item-attr.interface.d.ts +26 -26
- package/dist/document/interfaces/document-item-attr.interface.js +6 -6
- package/dist/document/interfaces/document-item.repository.interface.d.ts +3 -3
- package/dist/document/interfaces/document-item.repository.interface.js +2 -2
- package/dist/enum/collect-payment-type.d.ts +4 -4
- package/dist/enum/collect-payment-type.js +8 -8
- package/dist/enum/collect-payment-type.js.map +1 -1
- package/dist/enum/doc-type.enum.d.ts +8 -8
- package/dist/enum/doc-type.enum.js +12 -12
- package/dist/enum/doc-type.enum.js.map +1 -1
- package/dist/enum/document-status.enum.d.ts +6 -6
- package/dist/enum/document-status.enum.js +10 -10
- package/dist/enum/document-status.enum.js.map +1 -1
- package/dist/enum/index.d.ts +9 -9
- package/dist/enum/index.js +19 -19
- package/dist/enum/payment-method.enum.d.ts +3 -3
- package/dist/enum/payment-method.enum.js +7 -7
- package/dist/enum/payment-method.enum.js.map +1 -1
- package/dist/enum/payment-status.enum.d.ts +10 -10
- package/dist/enum/payment-status.enum.js +15 -16
- package/dist/enum/payment-status.enum.js.map +1 -1
- package/dist/enum/payment-type.enum.d.ts +4 -4
- package/dist/enum/payment-type.enum.js +8 -8
- package/dist/enum/payment-type.enum.js.map +1 -1
- package/dist/enum/quick-book-client-scopes.enum.d.ts +13 -13
- package/dist/enum/quick-book-client-scopes.enum.js +18 -18
- package/dist/enum/quick-book-client-scopes.enum.js.map +1 -1
- package/dist/enum/transaction-type.enum.d.ts +4 -4
- package/dist/enum/transaction-type.enum.js +8 -8
- package/dist/enum/transaction-type.enum.js.map +1 -1
- package/dist/finance-company/finance-company.d.ts +88 -88
- package/dist/finance-company/finance-company.js +1533 -1576
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/finance-company/finance-company.repository.d.ts +5 -5
- package/dist/finance-company/finance-company.repository.js +11 -11
- package/dist/helpers/login-user.d.ts +13 -13
- package/dist/helpers/login-user.js +28 -28
- package/dist/helpers/login-user.js.map +1 -1
- package/dist/helpers/typeof.d.ts +1 -1
- package/dist/helpers/typeof.js +28 -29
- package/dist/helpers/typeof.js.map +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +32 -32
- package/dist/interfaces/account-system.interface.d.ts +30 -30
- package/dist/interfaces/account-system.interface.js +2 -2
- package/dist/interfaces/index.d.ts +2 -2
- package/dist/interfaces/index.js +2 -2
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.d.ts +12 -12
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.js +2 -2
- package/dist/journal-entry/journal-entry.d.ts +42 -42
- package/dist/journal-entry/journal-entry.js +216 -233
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/journal-entry/journal-entry.repository.d.ts +6 -6
- package/dist/journal-entry/journal-entry.repository.js +16 -27
- package/dist/journal-entry/journal-entry.repository.js.map +1 -1
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.d.ts +17 -17
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.js +2 -2
- package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.d.ts +5 -5
- package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.js +2 -2
- package/dist/ledger-transaction/ledger-transaction.d.ts +54 -54
- package/dist/ledger-transaction/ledger-transaction.js +143 -164
- package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
- package/dist/ledger-transaction/ledger-transaction.repository.d.ts +6 -6
- package/dist/ledger-transaction/ledger-transaction.repository.js +16 -27
- package/dist/ledger-transaction/ledger-transaction.repository.js.map +1 -1
- package/dist/models/account.entity.d.ts +30 -30
- package/dist/models/account.entity.js +232 -232
- package/dist/models/account.entity.js.map +1 -1
- package/dist/models/customer.entity.d.ts +13 -13
- package/dist/models/customer.entity.js +109 -109
- package/dist/models/customer.entity.js.map +1 -1
- package/dist/models/document-item.entity.d.ts +31 -31
- package/dist/models/document-item.entity.js +200 -200
- package/dist/models/document-item.entity.js.map +1 -1
- package/dist/models/document.entity.d.ts +36 -36
- package/dist/models/document.entity.js +242 -242
- package/dist/models/document.entity.js.map +1 -1
- package/dist/models/finance-company.entity.d.ts +15 -15
- package/dist/models/finance-company.entity.js +93 -93
- package/dist/models/finance-company.entity.js.map +1 -1
- package/dist/models/journal-entry.entity.d.ts +16 -16
- package/dist/models/journal-entry.entity.js +127 -127
- package/dist/models/journal-entry.entity.js.map +1 -1
- package/dist/models/ledger-transaction.entity.d.ts +24 -24
- package/dist/models/ledger-transaction.entity.js +172 -172
- package/dist/models/ledger-transaction.entity.js.map +1 -1
- package/dist/models/payment-item.entity.d.ts +12 -12
- package/dist/models/payment-item.entity.js +75 -75
- package/dist/models/payment-item.entity.js.map +1 -1
- package/dist/models/payment-method-type.entity.d.ts +13 -13
- package/dist/models/payment-method-type.entity.js +85 -85
- package/dist/models/payment-method-type.entity.js.map +1 -1
- package/dist/models/payment-method.entity.d.ts +10 -10
- package/dist/models/payment-method.entity.js +62 -62
- package/dist/models/payment-method.entity.js.map +1 -1
- package/dist/models/payment-paid-with.entity.d.ts +24 -24
- package/dist/models/payment-paid-with.entity.js +158 -158
- package/dist/models/payment-paid-with.entity.js.map +1 -1
- package/dist/models/payment.entity.d.ts +29 -29
- package/dist/models/payment.entity.js +193 -193
- package/dist/models/payment.entity.js.map +1 -1
- package/dist/models/post-history.entity.d.ts +11 -11
- package/dist/models/post-history.entity.js +63 -63
- package/dist/models/post-history.entity.js.map +1 -1
- package/dist/models/tax.entity.d.ts +13 -13
- package/dist/models/tax.entity.js +89 -89
- package/dist/models/tax.entity.js.map +1 -1
- package/dist/payment/interfaces/payment-attr.interface.d.ts +22 -22
- package/dist/payment/interfaces/payment-attr.interface.js +6 -6
- package/dist/payment/interfaces/payment-params.interface.d.ts +7 -7
- package/dist/payment/interfaces/payment-params.interface.js +2 -2
- package/dist/payment/payment.d.ts +53 -53
- package/dist/payment/payment.js +186 -201
- package/dist/payment/payment.js.map +1 -1
- package/dist/payment/payment.repository.d.ts +5 -5
- package/dist/payment/payment.repository.js +11 -11
- package/dist/payment-item/interfaces/payment-item-attr.interface.d.ts +10 -10
- package/dist/payment-item/interfaces/payment-item-attr.interface.js +6 -6
- package/dist/payment-item/payment-item.d.ts +25 -25
- package/dist/payment-item/payment-item.js +111 -122
- package/dist/payment-item/payment-item.js.map +1 -1
- package/dist/payment-item/payment-item.repository.d.ts +5 -5
- package/dist/payment-item/payment-item.repository.js +11 -11
- package/dist/payment-method/interfaces/payment-method-attr.interface.d.ts +5 -5
- package/dist/payment-method/interfaces/payment-method-attr.interface.js +2 -2
- package/dist/payment-method/payment-method.d.ts +21 -21
- package/dist/payment-method/payment-method.js +104 -117
- package/dist/payment-method/payment-method.js.map +1 -1
- package/dist/payment-method/payment-method.repository.d.ts +5 -5
- package/dist/payment-method/payment-method.repository.js +11 -11
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.d.ts +8 -8
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js +2 -2
- package/dist/payment-method-type/payment-method-type.d.ts +18 -18
- package/dist/payment-method-type/payment-method-type.js +65 -76
- package/dist/payment-method-type/payment-method-type.js.map +1 -1
- package/dist/payment-method-type/payment-method-type.repository.d.ts +5 -5
- package/dist/payment-method-type/payment-method-type.repository.js +11 -11
- package/dist/payment-paid-with/interfaces/payment-paid-with.interface.d.ts +19 -19
- package/dist/payment-paid-with/interfaces/payment-paid-with.interface.js +6 -6
- package/dist/payment-paid-with/payment-paid-with.d.ts +33 -33
- package/dist/payment-paid-with/payment-paid-with.js +56 -56
- package/dist/payment-paid-with/payment-paid-with.js.map +1 -1
- package/dist/payment-paid-with/payment-paid-with.repository.d.ts +5 -5
- package/dist/payment-paid-with/payment-paid-with.repository.js +11 -11
- package/dist/tax/interfaces/tax-attr.interface.d.ts +10 -10
- package/dist/tax/interfaces/tax-attr.interface.js +2 -2
- package/dist/tax/tax.d.ts +26 -26
- package/dist/tax/tax.js +51 -51
- package/dist/tax/tax.js.map +1 -1
- package/dist/tax/tax.repository.d.ts +5 -5
- package/dist/tax/tax.repository.js +11 -11
- package/dist/test-document.d.ts +3 -3
- package/dist/test-document.js +18 -18
- package/dist/test.d.ts +1 -1
- package/dist/test.js +6 -7
- package/dist/test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.mjs +58 -0
- package/invoice-template/assets/js/html2canvas.min.js +16 -16
- package/package.json +35 -41
- package/src/account/account.ts +2 -1
- package/src/customer/customer.ts +8 -7
- package/src/document/document-item.ts +3 -2
- package/src/document/document.ts +20 -13
- package/src/enum/collect-payment-type.ts +3 -3
- package/src/enum/payment-status.enum.ts +1 -1
- package/src/finance-company/finance-company.ts +5 -7
- package/src/journal-entry/journal-entry.ts +0 -1
- package/src/ledger-transaction/ledger-transaction.ts +4 -4
- package/src/payment-method-type/payment-method-type.ts +1 -1
- package/src/tax/tax.ts +0 -1
- package/tsconfig.json +4 -3
- package/.eslintrc.js +0 -72
- package/img.png +0 -0
- package/img_1.png +0 -0
- package/tslint.json +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
2
|
-
import JournalEntryModel from '../models/journal-entry.entity';
|
|
3
|
-
export declare class JournalEntryRepository extends RepositoryBase<JournalEntryModel> implements IRepositoryBase<JournalEntryModel> {
|
|
4
|
-
constructor();
|
|
5
|
-
count(dbTransaction?: any): Promise<number>;
|
|
6
|
-
}
|
|
1
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
2
|
+
import JournalEntryModel from '../models/journal-entry.entity';
|
|
3
|
+
export declare class JournalEntryRepository extends RepositoryBase<JournalEntryModel> implements IRepositoryBase<JournalEntryModel> {
|
|
4
|
+
constructor();
|
|
5
|
+
count(dbTransaction?: any): Promise<number>;
|
|
6
|
+
}
|
|
@@ -1,28 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
super(journal_entry_entity_1.default);
|
|
18
|
-
}
|
|
19
|
-
count(dbTransaction) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
return yield journal_entry_entity_1.default.count({
|
|
22
|
-
transaction: dbTransaction,
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.JournalEntryRepository = JournalEntryRepository;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JournalEntryRepository = void 0;
|
|
4
|
+
const general_1 = require("@tomei/general");
|
|
5
|
+
const journal_entry_entity_1 = require("../models/journal-entry.entity");
|
|
6
|
+
class JournalEntryRepository extends general_1.RepositoryBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(journal_entry_entity_1.default);
|
|
9
|
+
}
|
|
10
|
+
async count(dbTransaction) {
|
|
11
|
+
return await journal_entry_entity_1.default.count({
|
|
12
|
+
transaction: dbTransaction,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.JournalEntryRepository = JournalEntryRepository;
|
|
28
17
|
//# sourceMappingURL=journal-entry.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-entry.repository.js","sourceRoot":"","sources":["../../src/journal-entry/journal-entry.repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"journal-entry.repository.js","sourceRoot":"","sources":["../../src/journal-entry/journal-entry.repository.ts"],"names":[],"mappings":";;;AAAA,4CAAiE;AACjE,yEAA+D;AAE/D,MAAa,sBACX,SAAQ,wBAAiC;IAGzC;QACE,KAAK,CAAC,8BAAiB,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,aAAmB;QAC7B,OAAO,MAAM,8BAAiB,CAAC,KAAK,CAAC;YACnC,WAAW,EAAE,aAAa;SAC3B,CAAC,CAAC;IACL,CAAC;CACF;AAbD,wDAaC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { TransactionTypeOptions } from '../../enum';
|
|
2
|
-
export interface ILedgerTransactionAttr {
|
|
3
|
-
LedgerNo?: string;
|
|
4
|
-
TransactionType?: TransactionTypeOptions;
|
|
5
|
-
JournalEntryId?: string;
|
|
6
|
-
AccountNo?: string;
|
|
7
|
-
Date?: Date;
|
|
8
|
-
Name?: string;
|
|
9
|
-
Description?: string;
|
|
10
|
-
Currency?: string;
|
|
11
|
-
DebitAmount?: number;
|
|
12
|
-
CreditAmount?: number;
|
|
13
|
-
RelatedObjectId?: string;
|
|
14
|
-
RelatedObjectType?: string;
|
|
15
|
-
RelatedDocNo?: string;
|
|
16
|
-
RelatedPaymentId?: string;
|
|
17
|
-
}
|
|
1
|
+
import { TransactionTypeOptions } from '../../enum';
|
|
2
|
+
export interface ILedgerTransactionAttr {
|
|
3
|
+
LedgerNo?: string;
|
|
4
|
+
TransactionType?: TransactionTypeOptions;
|
|
5
|
+
JournalEntryId?: string;
|
|
6
|
+
AccountNo?: string;
|
|
7
|
+
Date?: Date;
|
|
8
|
+
Name?: string;
|
|
9
|
+
Description?: string;
|
|
10
|
+
Currency?: string;
|
|
11
|
+
DebitAmount?: number;
|
|
12
|
+
CreditAmount?: number;
|
|
13
|
+
RelatedObjectId?: string;
|
|
14
|
+
RelatedObjectType?: string;
|
|
15
|
+
RelatedDocNo?: string;
|
|
16
|
+
RelatedPaymentId?: string;
|
|
17
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=ledger-transaction-attr.interface.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface ILedgerTransactionRepository<T> {
|
|
2
|
-
create?(data: T | any, options?: any): Promise<T> | any;
|
|
3
|
-
findAll?(options?: any): Promise<T[]>;
|
|
4
|
-
findOne?(options: any): Promise<T>;
|
|
5
|
-
}
|
|
1
|
+
export interface ILedgerTransactionRepository<T> {
|
|
2
|
+
create?(data: T | any, options?: any): Promise<T> | any;
|
|
3
|
+
findAll?(options?: any): Promise<T[]>;
|
|
4
|
+
findOne?(options: any): Promise<T>;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=ledger-transaction.repository.interface.js.map
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { ILedgerTransactionAttr } from './interfaces/ledger-transaction-attr.interface';
|
|
2
|
-
import { TransactionTypeOptions } from '../enum/transaction-type.enum';
|
|
3
|
-
import LedgerTransactionModel from '../models/ledger-transaction.entity';
|
|
4
|
-
import { ObjectBase } from '@tomei/general';
|
|
5
|
-
export default class LedgerTransaction extends ObjectBase {
|
|
6
|
-
ObjectName: string;
|
|
7
|
-
TableName: string;
|
|
8
|
-
ObjectType: string;
|
|
9
|
-
ObjectId: string;
|
|
10
|
-
TransactionType: TransactionTypeOptions;
|
|
11
|
-
JournalEntryId: string;
|
|
12
|
-
AccountNo: string;
|
|
13
|
-
Date: Date;
|
|
14
|
-
Name: string;
|
|
15
|
-
Description: string;
|
|
16
|
-
Currency: string;
|
|
17
|
-
DebitAmount: number;
|
|
18
|
-
CreditAmount: number;
|
|
19
|
-
RelatedObjectId: string;
|
|
20
|
-
RelatedObjectType: string;
|
|
21
|
-
RelatedDocNo: string;
|
|
22
|
-
RelatedPaymentId: string;
|
|
23
|
-
get LedgerNo(): string;
|
|
24
|
-
set LedgerNo(id: string);
|
|
25
|
-
private _DbTransaction;
|
|
26
|
-
private static _LedgerTransactionRepository;
|
|
27
|
-
constructor(transactionType: TransactionTypeOptions, dbTransaction?: any, LedgerNo?: string);
|
|
28
|
-
init(params?: ILedgerTransactionAttr): void;
|
|
29
|
-
getData(): {
|
|
30
|
-
LedgerNo: string;
|
|
31
|
-
TransactionType: TransactionTypeOptions;
|
|
32
|
-
JournalEntryId: string;
|
|
33
|
-
AccountNo: string;
|
|
34
|
-
Date: Date;
|
|
35
|
-
Name: string;
|
|
36
|
-
Description: string;
|
|
37
|
-
Currency: string;
|
|
38
|
-
DebitAmount: number;
|
|
39
|
-
CreditAmount: number;
|
|
40
|
-
RelatedObjectId: string;
|
|
41
|
-
RelatedObjectType: string;
|
|
42
|
-
RelatedDocNo: string;
|
|
43
|
-
RelatedPaymentId: string;
|
|
44
|
-
};
|
|
45
|
-
save(dbTransaction?: any): Promise<LedgerTransactionModel>;
|
|
46
|
-
create(): Promise<LedgerTransactionModel>;
|
|
47
|
-
findAll(options: any): Promise<LedgerTransactionModel[]>;
|
|
48
|
-
findAllWithPagination(options: any): Promise<{
|
|
49
|
-
count: number;
|
|
50
|
-
rows: LedgerTransactionModel[];
|
|
51
|
-
}>;
|
|
52
|
-
accountTransactionHistory(accountNo: string): Promise<LedgerTransactionModel[]>;
|
|
53
|
-
newLedgerTransaction(transactionType: TransactionTypeOptions, journalEntryId?: string): Promise<any>;
|
|
54
|
-
}
|
|
1
|
+
import { ILedgerTransactionAttr } from './interfaces/ledger-transaction-attr.interface';
|
|
2
|
+
import { TransactionTypeOptions } from '../enum/transaction-type.enum';
|
|
3
|
+
import LedgerTransactionModel from '../models/ledger-transaction.entity';
|
|
4
|
+
import { ObjectBase } from '@tomei/general';
|
|
5
|
+
export default class LedgerTransaction extends ObjectBase {
|
|
6
|
+
ObjectName: string;
|
|
7
|
+
TableName: string;
|
|
8
|
+
ObjectType: string;
|
|
9
|
+
ObjectId: string;
|
|
10
|
+
TransactionType: TransactionTypeOptions;
|
|
11
|
+
JournalEntryId: string;
|
|
12
|
+
AccountNo: string;
|
|
13
|
+
Date: Date;
|
|
14
|
+
Name: string;
|
|
15
|
+
Description: string;
|
|
16
|
+
Currency: string;
|
|
17
|
+
DebitAmount: number;
|
|
18
|
+
CreditAmount: number;
|
|
19
|
+
RelatedObjectId: string;
|
|
20
|
+
RelatedObjectType: string;
|
|
21
|
+
RelatedDocNo: string;
|
|
22
|
+
RelatedPaymentId: string;
|
|
23
|
+
get LedgerNo(): string;
|
|
24
|
+
set LedgerNo(id: string);
|
|
25
|
+
private _DbTransaction;
|
|
26
|
+
private static _LedgerTransactionRepository;
|
|
27
|
+
constructor(transactionType: TransactionTypeOptions, dbTransaction?: any, LedgerNo?: string);
|
|
28
|
+
init(params?: ILedgerTransactionAttr): void;
|
|
29
|
+
getData(): {
|
|
30
|
+
LedgerNo: string;
|
|
31
|
+
TransactionType: TransactionTypeOptions;
|
|
32
|
+
JournalEntryId: string;
|
|
33
|
+
AccountNo: string;
|
|
34
|
+
Date: Date;
|
|
35
|
+
Name: string;
|
|
36
|
+
Description: string;
|
|
37
|
+
Currency: string;
|
|
38
|
+
DebitAmount: number;
|
|
39
|
+
CreditAmount: number;
|
|
40
|
+
RelatedObjectId: string;
|
|
41
|
+
RelatedObjectType: string;
|
|
42
|
+
RelatedDocNo: string;
|
|
43
|
+
RelatedPaymentId: string;
|
|
44
|
+
};
|
|
45
|
+
save(dbTransaction?: any): Promise<LedgerTransactionModel>;
|
|
46
|
+
create(): Promise<LedgerTransactionModel>;
|
|
47
|
+
findAll(options: any): Promise<LedgerTransactionModel[]>;
|
|
48
|
+
findAllWithPagination(options: any): Promise<{
|
|
49
|
+
count: number;
|
|
50
|
+
rows: LedgerTransactionModel[];
|
|
51
|
+
}>;
|
|
52
|
+
accountTransactionHistory(accountNo: string): Promise<LedgerTransactionModel[]>;
|
|
53
|
+
newLedgerTransaction(transactionType: TransactionTypeOptions, journalEntryId?: string): Promise<any>;
|
|
54
|
+
}
|
|
@@ -1,165 +1,144 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (
|
|
44
|
-
this.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
this.
|
|
68
|
-
|
|
69
|
-
this.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
this.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
-
this.init({
|
|
146
|
-
LedgerNo: this.createId(),
|
|
147
|
-
TransactionType: transactionType,
|
|
148
|
-
JournalEntryId: journalEntryId,
|
|
149
|
-
});
|
|
150
|
-
if (transactionType === transaction_type_enum_1.TransactionTypeOptions.DEBIT) {
|
|
151
|
-
this.TransactionType = transaction_type_enum_1.TransactionTypeOptions.DEBIT;
|
|
152
|
-
}
|
|
153
|
-
else if (transactionType === transaction_type_enum_1.TransactionTypeOptions.CREDIT) {
|
|
154
|
-
this.TransactionType = transaction_type_enum_1.TransactionTypeOptions.CREDIT;
|
|
155
|
-
}
|
|
156
|
-
if (journalEntryId) {
|
|
157
|
-
this.JournalEntryId = journalEntryId;
|
|
158
|
-
}
|
|
159
|
-
return yield this.create();
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
exports.default = LedgerTransaction;
|
|
164
|
-
LedgerTransaction._LedgerTransactionRepository = new ledger_transaction_repository_1.LedgerTransactionRepository();
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const transaction_type_enum_1 = require("../enum/transaction-type.enum");
|
|
4
|
+
const ledger_transaction_repository_1 = require("./ledger-transaction.repository");
|
|
5
|
+
const general_1 = require("@tomei/general");
|
|
6
|
+
class LedgerTransaction extends general_1.ObjectBase {
|
|
7
|
+
get LedgerNo() {
|
|
8
|
+
return this.ObjectId;
|
|
9
|
+
}
|
|
10
|
+
set LedgerNo(id) {
|
|
11
|
+
this.ObjectId = id;
|
|
12
|
+
}
|
|
13
|
+
constructor(transactionType, dbTransaction, LedgerNo) {
|
|
14
|
+
super();
|
|
15
|
+
this.ObjectType = 'LedgerTransaction';
|
|
16
|
+
this.ObjectId = 'New';
|
|
17
|
+
this.TransactionType = transaction_type_enum_1.TransactionTypeOptions.DEBIT;
|
|
18
|
+
this.JournalEntryId = '';
|
|
19
|
+
this.AccountNo = '';
|
|
20
|
+
this.Date = new Date();
|
|
21
|
+
this.Name = '';
|
|
22
|
+
this.Description = '';
|
|
23
|
+
this.Currency = 'MYR';
|
|
24
|
+
this.DebitAmount = 0;
|
|
25
|
+
this.CreditAmount = 0;
|
|
26
|
+
this.RelatedObjectId = '';
|
|
27
|
+
this.RelatedObjectType = '';
|
|
28
|
+
this.RelatedDocNo = '';
|
|
29
|
+
this.RelatedPaymentId = '';
|
|
30
|
+
this.TransactionType = transactionType;
|
|
31
|
+
if (dbTransaction) {
|
|
32
|
+
this._DbTransaction = dbTransaction;
|
|
33
|
+
}
|
|
34
|
+
if (LedgerNo) {
|
|
35
|
+
this.LedgerNo = LedgerNo;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
init(params) {
|
|
39
|
+
if (params.LedgerNo)
|
|
40
|
+
this.LedgerNo = params.LedgerNo;
|
|
41
|
+
if (params.TransactionType)
|
|
42
|
+
this.TransactionType = params.TransactionType;
|
|
43
|
+
if (params.JournalEntryId)
|
|
44
|
+
this.JournalEntryId = params.JournalEntryId;
|
|
45
|
+
if (params.AccountNo)
|
|
46
|
+
this.AccountNo = params.AccountNo;
|
|
47
|
+
if (params.Date)
|
|
48
|
+
this.Date = params.Date;
|
|
49
|
+
if (params.Description)
|
|
50
|
+
this.Description = params.Description;
|
|
51
|
+
if (params.Currency)
|
|
52
|
+
this.Currency = params.Currency;
|
|
53
|
+
if (params.DebitAmount)
|
|
54
|
+
this.DebitAmount = params.DebitAmount;
|
|
55
|
+
if (params.CreditAmount)
|
|
56
|
+
this.CreditAmount = params.CreditAmount;
|
|
57
|
+
if (params.RelatedObjectId)
|
|
58
|
+
this.RelatedObjectId = params.RelatedObjectId;
|
|
59
|
+
if (params.RelatedObjectType)
|
|
60
|
+
this.RelatedObjectType = params.RelatedObjectType;
|
|
61
|
+
if (params.Name)
|
|
62
|
+
this.Name = params.Name;
|
|
63
|
+
}
|
|
64
|
+
getData() {
|
|
65
|
+
return {
|
|
66
|
+
LedgerNo: this.LedgerNo,
|
|
67
|
+
TransactionType: this.TransactionType,
|
|
68
|
+
JournalEntryId: this.JournalEntryId,
|
|
69
|
+
AccountNo: this.AccountNo,
|
|
70
|
+
Date: this.Date,
|
|
71
|
+
Name: this.Name,
|
|
72
|
+
Description: this.Description,
|
|
73
|
+
Currency: this.Currency,
|
|
74
|
+
DebitAmount: this.DebitAmount,
|
|
75
|
+
CreditAmount: this.CreditAmount,
|
|
76
|
+
RelatedObjectId: this.RelatedObjectId,
|
|
77
|
+
RelatedObjectType: this.RelatedObjectType,
|
|
78
|
+
RelatedDocNo: this.RelatedDocNo,
|
|
79
|
+
RelatedPaymentId: this.RelatedPaymentId,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
async save(dbTransaction) {
|
|
83
|
+
try {
|
|
84
|
+
const count = await LedgerTransaction._LedgerTransactionRepository.count(dbTransaction);
|
|
85
|
+
this.LedgerNo = `${count + 1}`;
|
|
86
|
+
return await LedgerTransaction._LedgerTransactionRepository.create({
|
|
87
|
+
LedgerNo: this.LedgerNo,
|
|
88
|
+
TransactionType: this.TransactionType,
|
|
89
|
+
JournalEntryId: this.JournalEntryId,
|
|
90
|
+
AccountNo: this.AccountNo,
|
|
91
|
+
Date: this.Date,
|
|
92
|
+
Name: this.Name,
|
|
93
|
+
Description: this.Description,
|
|
94
|
+
Currency: this.Currency,
|
|
95
|
+
DebitAmount: this.DebitAmount,
|
|
96
|
+
CreditAmount: this.CreditAmount,
|
|
97
|
+
RelatedObjectId: this.RelatedObjectId || undefined,
|
|
98
|
+
RelatedObjectType: this.RelatedObjectType || undefined,
|
|
99
|
+
RelatedDocNo: this.RelatedDocNo || undefined,
|
|
100
|
+
RelatedPaymentId: this.RelatedPaymentId || undefined,
|
|
101
|
+
}, { transaction: dbTransaction });
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
throw error;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
async create() {
|
|
108
|
+
return await LedgerTransaction._LedgerTransactionRepository.create(this.getData, { transaction: this._DbTransaction });
|
|
109
|
+
}
|
|
110
|
+
async findAll(options) {
|
|
111
|
+
return await LedgerTransaction._LedgerTransactionRepository.findAll(options);
|
|
112
|
+
}
|
|
113
|
+
async findAllWithPagination(options) {
|
|
114
|
+
return await LedgerTransaction._LedgerTransactionRepository.findAllWithPagination(options);
|
|
115
|
+
}
|
|
116
|
+
async accountTransactionHistory(accountNo) {
|
|
117
|
+
return await this.findAll({
|
|
118
|
+
where: {
|
|
119
|
+
AccountNo: accountNo,
|
|
120
|
+
},
|
|
121
|
+
order: [['Date', 'DESC']],
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
async newLedgerTransaction(transactionType, journalEntryId) {
|
|
125
|
+
this.init({
|
|
126
|
+
LedgerNo: this.createId(),
|
|
127
|
+
TransactionType: transactionType,
|
|
128
|
+
JournalEntryId: journalEntryId,
|
|
129
|
+
});
|
|
130
|
+
if (transactionType === transaction_type_enum_1.TransactionTypeOptions.DEBIT) {
|
|
131
|
+
this.TransactionType = transaction_type_enum_1.TransactionTypeOptions.DEBIT;
|
|
132
|
+
}
|
|
133
|
+
else if (transactionType === transaction_type_enum_1.TransactionTypeOptions.CREDIT) {
|
|
134
|
+
this.TransactionType = transaction_type_enum_1.TransactionTypeOptions.CREDIT;
|
|
135
|
+
}
|
|
136
|
+
if (journalEntryId) {
|
|
137
|
+
this.JournalEntryId = journalEntryId;
|
|
138
|
+
}
|
|
139
|
+
return await this.create();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
LedgerTransaction._LedgerTransactionRepository = new ledger_transaction_repository_1.LedgerTransactionRepository();
|
|
143
|
+
exports.default = LedgerTransaction;
|
|
165
144
|
//# sourceMappingURL=ledger-transaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-transaction.js","sourceRoot":"","sources":["../../src/ledger-transaction/ledger-transaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ledger-transaction.js","sourceRoot":"","sources":["../../src/ledger-transaction/ledger-transaction.ts"],"names":[],"mappings":";;AACA,yEAAuE;AACvE,mFAA8E;AAE9E,4CAA4C;AAE5C,MAAqB,iBAAkB,SAAQ,oBAAU;IAmBvD,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,QAAQ,CAAC,EAAU;QACrB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACrB,CAAC;IAOD,YACE,eAAuC,EACvC,aAAmB,EACnB,QAAiB;QAEjB,KAAK,EAAE,CAAC;QAlCV,eAAU,GAAG,mBAAmB,CAAC;QACjC,aAAQ,GAAG,KAAK,CAAC;QACjB,o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CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,SAAiB;QAC/C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACxB,KAAK,EAAE;gBACL,SAAS,EAAE,SAAS;aACrB;YACD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,eAAuC,EACvC,cAAuB;QAEvB,IAAI,CAAC,IAAI,CAAC;YACR,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;YACzB,eAAe,EAAE,eAAe;YAChC,cAAc,EAAE,cAAc;SAY/B,CAAC,CAAC;QAEH,IAAI,eAAe,KAAK,8CAAsB,CAAC,KAAK,EAAE,CAAC;YACrD,IAAI,CAAC,eAAe,GAAG,8CAAsB,CAAC,KAAK,CAAC;QACtD,CAAC;aAAM,IAAI,eAAe,KAAK,8CAAsB,CAAC,MAAM,EAAE,CAAC;YAC7D,IAAI,CAAC,eAAe,GAAG,8CAAsB,CAAC,MAAM,CAAC;QACvD,CAAC;QAED,IAAI,cAAc,EAAE,CAAC;YACnB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACvC,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;IAC7B,CAAC;;AAjJc,8CAA4B,GACzC,IAAI,2DAA2B,EAAE,AADQ,CACP;kBA9BjB,iBAAiB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import LedgerTransactionModel from '../models/ledger-transaction.entity';
|
|
2
|
-
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
3
|
-
export declare class LedgerTransactionRepository extends RepositoryBase<LedgerTransactionModel> implements IRepositoryBase<LedgerTransactionModel> {
|
|
4
|
-
constructor();
|
|
5
|
-
count(dbTransaction?: any): Promise<number>;
|
|
6
|
-
}
|
|
1
|
+
import LedgerTransactionModel from '../models/ledger-transaction.entity';
|
|
2
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
3
|
+
export declare class LedgerTransactionRepository extends RepositoryBase<LedgerTransactionModel> implements IRepositoryBase<LedgerTransactionModel> {
|
|
4
|
+
constructor();
|
|
5
|
+
count(dbTransaction?: any): Promise<number>;
|
|
6
|
+
}
|