@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.
Files changed (223) hide show
  1. package/.husky/commit-msg +12 -3
  2. package/.husky/pre-commit +4 -4
  3. package/configs/config.js +1 -1
  4. package/dist/account/account.d.ts +37 -37
  5. package/dist/account/account.js +251 -263
  6. package/dist/account/account.js.map +1 -1
  7. package/dist/account/account.repository.d.ts +5 -5
  8. package/dist/account/account.repository.js +11 -11
  9. package/dist/account/interfaces/account-attr.interface.d.ts +29 -29
  10. package/dist/account/interfaces/account-attr.interface.js +2 -2
  11. package/dist/account-system-entity/account-system-entity.d.ts +12 -12
  12. package/dist/account-system-entity/account-system-entity.js +55 -66
  13. package/dist/account-system-entity/account-system-entity.js.map +1 -1
  14. package/dist/account-system-entity/post-history.repository.d.ts +5 -5
  15. package/dist/account-system-entity/post-history.repository.js +11 -11
  16. package/dist/config.d.ts +1888 -1888
  17. package/dist/config.js +331 -331
  18. package/dist/config.js.map +1 -1
  19. package/dist/customer/customer.d.ts +44 -44
  20. package/dist/customer/customer.js +212 -234
  21. package/dist/customer/customer.js.map +1 -1
  22. package/dist/customer/finance-customer.repository.d.ts +5 -5
  23. package/dist/customer/finance-customer.repository.js +25 -25
  24. package/dist/customer/finance-customer.repository.js.map +1 -1
  25. package/dist/customer/interfaces/customer.repository.interface.d.ts +3 -3
  26. package/dist/customer/interfaces/customer.repository.interface.js +2 -2
  27. package/dist/customer/interfaces/finance-customer-attr.interface.d.ts +10 -10
  28. package/dist/customer/interfaces/finance-customer-attr.interface.js +2 -2
  29. package/dist/customer/interfaces/finance-customer.repository.interface.d.ts +3 -3
  30. package/dist/customer/interfaces/finance-customer.repository.interface.js +2 -2
  31. package/dist/database.d.ts +4 -4
  32. package/dist/database.js +46 -47
  33. package/dist/database.js.map +1 -1
  34. package/dist/document/document-item.d.ts +46 -46
  35. package/dist/document/document-item.js +122 -132
  36. package/dist/document/document-item.js.map +1 -1
  37. package/dist/document/document-item.repository.d.ts +5 -5
  38. package/dist/document/document-item.repository.js +11 -11
  39. package/dist/document/document.d.ts +87 -88
  40. package/dist/document/document.js +735 -766
  41. package/dist/document/document.js.map +1 -1
  42. package/dist/document/document.repository.d.ts +5 -5
  43. package/dist/document/document.repository.js +11 -11
  44. package/dist/document/interfaces/document-attr.interface.d.ts +27 -27
  45. package/dist/document/interfaces/document-attr.interface.js +6 -6
  46. package/dist/document/interfaces/document-find-all.interface.d.ts +13 -13
  47. package/dist/document/interfaces/document-find-all.interface.js +2 -2
  48. package/dist/document/interfaces/document-item-attr.interface.d.ts +26 -26
  49. package/dist/document/interfaces/document-item-attr.interface.js +6 -6
  50. package/dist/document/interfaces/document-item.repository.interface.d.ts +3 -3
  51. package/dist/document/interfaces/document-item.repository.interface.js +2 -2
  52. package/dist/enum/collect-payment-type.d.ts +4 -4
  53. package/dist/enum/collect-payment-type.js +8 -8
  54. package/dist/enum/collect-payment-type.js.map +1 -1
  55. package/dist/enum/doc-type.enum.d.ts +8 -8
  56. package/dist/enum/doc-type.enum.js +12 -12
  57. package/dist/enum/doc-type.enum.js.map +1 -1
  58. package/dist/enum/document-status.enum.d.ts +6 -6
  59. package/dist/enum/document-status.enum.js +10 -10
  60. package/dist/enum/document-status.enum.js.map +1 -1
  61. package/dist/enum/index.d.ts +9 -9
  62. package/dist/enum/index.js +19 -19
  63. package/dist/enum/payment-method.enum.d.ts +3 -3
  64. package/dist/enum/payment-method.enum.js +7 -7
  65. package/dist/enum/payment-method.enum.js.map +1 -1
  66. package/dist/enum/payment-status.enum.d.ts +10 -10
  67. package/dist/enum/payment-status.enum.js +15 -16
  68. package/dist/enum/payment-status.enum.js.map +1 -1
  69. package/dist/enum/payment-type.enum.d.ts +4 -4
  70. package/dist/enum/payment-type.enum.js +8 -8
  71. package/dist/enum/payment-type.enum.js.map +1 -1
  72. package/dist/enum/quick-book-client-scopes.enum.d.ts +13 -13
  73. package/dist/enum/quick-book-client-scopes.enum.js +18 -18
  74. package/dist/enum/quick-book-client-scopes.enum.js.map +1 -1
  75. package/dist/enum/transaction-type.enum.d.ts +4 -4
  76. package/dist/enum/transaction-type.enum.js +8 -8
  77. package/dist/enum/transaction-type.enum.js.map +1 -1
  78. package/dist/finance-company/finance-company.d.ts +88 -88
  79. package/dist/finance-company/finance-company.js +1533 -1576
  80. package/dist/finance-company/finance-company.js.map +1 -1
  81. package/dist/finance-company/finance-company.repository.d.ts +5 -5
  82. package/dist/finance-company/finance-company.repository.js +11 -11
  83. package/dist/helpers/login-user.d.ts +13 -13
  84. package/dist/helpers/login-user.js +28 -28
  85. package/dist/helpers/login-user.js.map +1 -1
  86. package/dist/helpers/typeof.d.ts +1 -1
  87. package/dist/helpers/typeof.js +28 -29
  88. package/dist/helpers/typeof.js.map +1 -1
  89. package/dist/index.d.ts +17 -17
  90. package/dist/index.js +32 -32
  91. package/dist/interfaces/account-system.interface.d.ts +30 -30
  92. package/dist/interfaces/account-system.interface.js +2 -2
  93. package/dist/interfaces/index.d.ts +2 -2
  94. package/dist/interfaces/index.js +2 -2
  95. package/dist/journal-entry/interfaces/journal-entry-attr.interface.d.ts +12 -12
  96. package/dist/journal-entry/interfaces/journal-entry-attr.interface.js +2 -2
  97. package/dist/journal-entry/journal-entry.d.ts +42 -42
  98. package/dist/journal-entry/journal-entry.js +216 -233
  99. package/dist/journal-entry/journal-entry.js.map +1 -1
  100. package/dist/journal-entry/journal-entry.repository.d.ts +6 -6
  101. package/dist/journal-entry/journal-entry.repository.js +16 -27
  102. package/dist/journal-entry/journal-entry.repository.js.map +1 -1
  103. package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.d.ts +17 -17
  104. package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.js +2 -2
  105. package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.d.ts +5 -5
  106. package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.js +2 -2
  107. package/dist/ledger-transaction/ledger-transaction.d.ts +54 -54
  108. package/dist/ledger-transaction/ledger-transaction.js +143 -164
  109. package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
  110. package/dist/ledger-transaction/ledger-transaction.repository.d.ts +6 -6
  111. package/dist/ledger-transaction/ledger-transaction.repository.js +16 -27
  112. package/dist/ledger-transaction/ledger-transaction.repository.js.map +1 -1
  113. package/dist/models/account.entity.d.ts +30 -30
  114. package/dist/models/account.entity.js +232 -232
  115. package/dist/models/account.entity.js.map +1 -1
  116. package/dist/models/customer.entity.d.ts +13 -13
  117. package/dist/models/customer.entity.js +109 -109
  118. package/dist/models/customer.entity.js.map +1 -1
  119. package/dist/models/document-item.entity.d.ts +31 -31
  120. package/dist/models/document-item.entity.js +200 -200
  121. package/dist/models/document-item.entity.js.map +1 -1
  122. package/dist/models/document.entity.d.ts +36 -36
  123. package/dist/models/document.entity.js +242 -242
  124. package/dist/models/document.entity.js.map +1 -1
  125. package/dist/models/finance-company.entity.d.ts +15 -15
  126. package/dist/models/finance-company.entity.js +93 -93
  127. package/dist/models/finance-company.entity.js.map +1 -1
  128. package/dist/models/journal-entry.entity.d.ts +16 -16
  129. package/dist/models/journal-entry.entity.js +127 -127
  130. package/dist/models/journal-entry.entity.js.map +1 -1
  131. package/dist/models/ledger-transaction.entity.d.ts +24 -24
  132. package/dist/models/ledger-transaction.entity.js +172 -172
  133. package/dist/models/ledger-transaction.entity.js.map +1 -1
  134. package/dist/models/payment-item.entity.d.ts +12 -12
  135. package/dist/models/payment-item.entity.js +75 -75
  136. package/dist/models/payment-item.entity.js.map +1 -1
  137. package/dist/models/payment-method-type.entity.d.ts +13 -13
  138. package/dist/models/payment-method-type.entity.js +85 -85
  139. package/dist/models/payment-method-type.entity.js.map +1 -1
  140. package/dist/models/payment-method.entity.d.ts +10 -10
  141. package/dist/models/payment-method.entity.js +62 -62
  142. package/dist/models/payment-method.entity.js.map +1 -1
  143. package/dist/models/payment-paid-with.entity.d.ts +24 -24
  144. package/dist/models/payment-paid-with.entity.js +158 -158
  145. package/dist/models/payment-paid-with.entity.js.map +1 -1
  146. package/dist/models/payment.entity.d.ts +29 -29
  147. package/dist/models/payment.entity.js +193 -193
  148. package/dist/models/payment.entity.js.map +1 -1
  149. package/dist/models/post-history.entity.d.ts +11 -11
  150. package/dist/models/post-history.entity.js +63 -63
  151. package/dist/models/post-history.entity.js.map +1 -1
  152. package/dist/models/tax.entity.d.ts +13 -13
  153. package/dist/models/tax.entity.js +89 -89
  154. package/dist/models/tax.entity.js.map +1 -1
  155. package/dist/payment/interfaces/payment-attr.interface.d.ts +22 -22
  156. package/dist/payment/interfaces/payment-attr.interface.js +6 -6
  157. package/dist/payment/interfaces/payment-params.interface.d.ts +7 -7
  158. package/dist/payment/interfaces/payment-params.interface.js +2 -2
  159. package/dist/payment/payment.d.ts +53 -53
  160. package/dist/payment/payment.js +186 -201
  161. package/dist/payment/payment.js.map +1 -1
  162. package/dist/payment/payment.repository.d.ts +5 -5
  163. package/dist/payment/payment.repository.js +11 -11
  164. package/dist/payment-item/interfaces/payment-item-attr.interface.d.ts +10 -10
  165. package/dist/payment-item/interfaces/payment-item-attr.interface.js +6 -6
  166. package/dist/payment-item/payment-item.d.ts +25 -25
  167. package/dist/payment-item/payment-item.js +111 -122
  168. package/dist/payment-item/payment-item.js.map +1 -1
  169. package/dist/payment-item/payment-item.repository.d.ts +5 -5
  170. package/dist/payment-item/payment-item.repository.js +11 -11
  171. package/dist/payment-method/interfaces/payment-method-attr.interface.d.ts +5 -5
  172. package/dist/payment-method/interfaces/payment-method-attr.interface.js +2 -2
  173. package/dist/payment-method/payment-method.d.ts +21 -21
  174. package/dist/payment-method/payment-method.js +104 -117
  175. package/dist/payment-method/payment-method.js.map +1 -1
  176. package/dist/payment-method/payment-method.repository.d.ts +5 -5
  177. package/dist/payment-method/payment-method.repository.js +11 -11
  178. package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.d.ts +8 -8
  179. package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js +2 -2
  180. package/dist/payment-method-type/payment-method-type.d.ts +18 -18
  181. package/dist/payment-method-type/payment-method-type.js +65 -76
  182. package/dist/payment-method-type/payment-method-type.js.map +1 -1
  183. package/dist/payment-method-type/payment-method-type.repository.d.ts +5 -5
  184. package/dist/payment-method-type/payment-method-type.repository.js +11 -11
  185. package/dist/payment-paid-with/interfaces/payment-paid-with.interface.d.ts +19 -19
  186. package/dist/payment-paid-with/interfaces/payment-paid-with.interface.js +6 -6
  187. package/dist/payment-paid-with/payment-paid-with.d.ts +33 -33
  188. package/dist/payment-paid-with/payment-paid-with.js +56 -56
  189. package/dist/payment-paid-with/payment-paid-with.js.map +1 -1
  190. package/dist/payment-paid-with/payment-paid-with.repository.d.ts +5 -5
  191. package/dist/payment-paid-with/payment-paid-with.repository.js +11 -11
  192. package/dist/tax/interfaces/tax-attr.interface.d.ts +10 -10
  193. package/dist/tax/interfaces/tax-attr.interface.js +2 -2
  194. package/dist/tax/tax.d.ts +26 -26
  195. package/dist/tax/tax.js +51 -51
  196. package/dist/tax/tax.js.map +1 -1
  197. package/dist/tax/tax.repository.d.ts +5 -5
  198. package/dist/tax/tax.repository.js +11 -11
  199. package/dist/test-document.d.ts +3 -3
  200. package/dist/test-document.js +18 -18
  201. package/dist/test.d.ts +1 -1
  202. package/dist/test.js +6 -7
  203. package/dist/test.js.map +1 -1
  204. package/dist/tsconfig.tsbuildinfo +1 -1
  205. package/eslint.config.mjs +58 -0
  206. package/invoice-template/assets/js/html2canvas.min.js +16 -16
  207. package/package.json +35 -41
  208. package/src/account/account.ts +2 -1
  209. package/src/customer/customer.ts +8 -7
  210. package/src/document/document-item.ts +3 -2
  211. package/src/document/document.ts +20 -13
  212. package/src/enum/collect-payment-type.ts +3 -3
  213. package/src/enum/payment-status.enum.ts +1 -1
  214. package/src/finance-company/finance-company.ts +5 -7
  215. package/src/journal-entry/journal-entry.ts +0 -1
  216. package/src/ledger-transaction/ledger-transaction.ts +4 -4
  217. package/src/payment-method-type/payment-method-type.ts +1 -1
  218. package/src/tax/tax.ts +0 -1
  219. package/tsconfig.json +4 -3
  220. package/.eslintrc.js +0 -72
  221. package/img.png +0 -0
  222. package/img_1.png +0 -0
  223. package/tslint.json +0 -18
@@ -1,5 +1,5 @@
1
- import { RepositoryBase, IRepositoryBase } from '@tomei/general';
2
- import DocumentItemModel from '../models/document-item.entity';
3
- export declare class DocumentItemRepository extends RepositoryBase<DocumentItemModel> implements IRepositoryBase<DocumentItemModel> {
4
- constructor();
5
- }
1
+ import { RepositoryBase, IRepositoryBase } from '@tomei/general';
2
+ import DocumentItemModel from '../models/document-item.entity';
3
+ export declare class DocumentItemRepository extends RepositoryBase<DocumentItemModel> implements IRepositoryBase<DocumentItemModel> {
4
+ constructor();
5
+ }
@@ -1,12 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentItemRepository = void 0;
4
- const general_1 = require("@tomei/general");
5
- const document_item_entity_1 = require("../models/document-item.entity");
6
- class DocumentItemRepository extends general_1.RepositoryBase {
7
- constructor() {
8
- super(document_item_entity_1.default);
9
- }
10
- }
11
- exports.DocumentItemRepository = DocumentItemRepository;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentItemRepository = void 0;
4
+ const general_1 = require("@tomei/general");
5
+ const document_item_entity_1 = require("../models/document-item.entity");
6
+ class DocumentItemRepository extends general_1.RepositoryBase {
7
+ constructor() {
8
+ super(document_item_entity_1.default);
9
+ }
10
+ }
11
+ exports.DocumentItemRepository = DocumentItemRepository;
12
12
  //# sourceMappingURL=document-item.repository.js.map
@@ -1,88 +1,87 @@
1
- /// <reference types="multer" />
2
- import { CommonService as MediaCommonService, MediasModel } from '@tomei/media';
3
- import { DocumentStatus, DocType } from '../enum';
4
- import { IDocumentAttr } from './interfaces/document-attr.interface';
5
- import { IDocumentFindAll } from './interfaces/document-find-all.interface';
6
- import DocumentItem from './document-item';
7
- import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
8
- import { DocumentRepository } from './document.repository';
9
- import FinanceCustomerBase from '../customer/customer';
10
- import DocumentModel from '../models/document.entity';
11
- import { LoginUserBase } from '@tomei/general';
12
- import { IAccountSystem } from '../interfaces/account-system.interface';
13
- export default class Document extends AccountSystemEntity {
14
- DocNo: string;
15
- private _DocType;
16
- private _DocDate;
17
- Currency: string;
18
- private _Amount;
19
- Description: string;
20
- private _Status;
21
- IssuedById: string;
22
- IssuedToId: string;
23
- IssuedToType: string;
24
- RelatedObjectId: string;
25
- RelatedObjectType: string;
26
- CreatedById: string;
27
- CreatedAt: Date;
28
- UpdatedById: string;
29
- UpdatedAt: Date;
30
- UseAccSystemDocYN: string;
31
- protected _ObjectType: string;
32
- get ObjectType(): string;
33
- private _DocHTMLFileMediaId;
34
- private _DocPDFFileMediaId;
35
- private static _RepositoryBase;
36
- private static _DocumentItemRepository;
37
- private static _AccountingSystem;
38
- private _DbTransaction;
39
- private _IsNewRecord;
40
- private _DocumentItems;
41
- private static _MediaRepository;
42
- mediaCommonService: MediaCommonService;
43
- private get IsNewRecord();
44
- private set IsNewRecord(value);
45
- get DocType(): DocType;
46
- set DocType(docType: DocType);
47
- get DocDate(): Date;
48
- set DocDate(date: Date);
49
- get DocHTMLFileMediaId(): string;
50
- set DocHTMLFileMediaId(mediaId: string);
51
- get DocPDFFileMediaId(): string;
52
- set DocPDFFileMediaId(mediaId: string);
53
- get Amount(): number;
54
- private set Amount(value);
55
- get Status(): DocumentStatus;
56
- set Status(status: DocumentStatus);
57
- get RepositoryBase(): DocumentRepository;
58
- get ObjectId(): string;
59
- get ObjectName(): string;
60
- get TableName(): string;
61
- constructor(dbTransaction?: any, documentData?: any);
62
- init(params: IDocumentAttr): void;
63
- static initDocument(dbTransaction: any, docNo: string): Promise<Document>;
64
- reCalculateAmount(): Promise<void>;
65
- get DocumentItems(): Promise<DocumentItem[]>;
66
- getDocumentItems(dbTransaction?: any): Promise<any[]>;
67
- static settleByCreditNote(loginUser: LoginUserBase, dbTransaction: any, DocNo: string, AmountToReduce: number): Promise<Document>;
68
- static DEFAULT_INVOICE_TEMPLATE_HTML(): Promise<Express.Multer.File>;
69
- DEFAULT_INVOICE_TEMPLATE_PDF(customer: FinanceCustomerBase, date?: Date): Promise<Express.Multer.File>;
70
- DEFAULT_RECEIPT_TEMPLATE_PDF(customer: FinanceCustomerBase, date?: Date): Promise<Express.Multer.File>;
71
- get DocumentFileInHTML(): Promise<MediasModel>;
72
- get DocumentFileInPDF(): Promise<MediasModel>;
73
- generateInvoice(userId?: string, customer?: FinanceCustomerBase, dbTransaction?: any, date?: Date): Promise<{
74
- HTMLMedia: MediasModel;
75
- PDFMedia: MediasModel;
76
- }>;
77
- generateReceipt(userId?: string, customer?: FinanceCustomerBase, transaction?: any, date?: Date): Promise<{
78
- HTMLMedia: MediasModel;
79
- PDFMedia: MediasModel;
80
- }>;
81
- generateCreditNote(userId?: string, customer?: FinanceCustomerBase): Promise<void>;
82
- newDocumentItem(documentItem?: DocumentItem): Promise<DocumentItem>;
83
- getPreviousDocument(docType: DocType): Promise<DocumentModel>;
84
- static findAll(loginUser: LoginUserBase, dbTransaction: any, page?: number, row?: number, search?: IDocumentFindAll, order?: [string, string][], accountingSystem?: IAccountSystem): Promise<{
85
- count: number;
86
- rows: DocumentModel[];
87
- }>;
88
- }
1
+ import { CommonService as MediaCommonService, MediasModel } from '@tomei/media';
2
+ import { DocumentStatus, DocType } from '../enum';
3
+ import { IDocumentAttr } from './interfaces/document-attr.interface';
4
+ import { IDocumentFindAll } from './interfaces/document-find-all.interface';
5
+ import DocumentItem from './document-item';
6
+ import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
7
+ import { DocumentRepository } from './document.repository';
8
+ import FinanceCustomerBase from '../customer/customer';
9
+ import DocumentModel from '../models/document.entity';
10
+ import { LoginUserBase } from '@tomei/general';
11
+ import { IAccountSystem } from '../interfaces/account-system.interface';
12
+ export default class Document extends AccountSystemEntity {
13
+ DocNo: string;
14
+ private _DocType;
15
+ private _DocDate;
16
+ Currency: string;
17
+ private _Amount;
18
+ Description: string;
19
+ private _Status;
20
+ IssuedById: string;
21
+ IssuedToId: string;
22
+ IssuedToType: string;
23
+ RelatedObjectId: string;
24
+ RelatedObjectType: string;
25
+ CreatedById: string;
26
+ CreatedAt: Date;
27
+ UpdatedById: string;
28
+ UpdatedAt: Date;
29
+ UseAccSystemDocYN: string;
30
+ protected _ObjectType: string;
31
+ get ObjectType(): string;
32
+ private _DocHTMLFileMediaId;
33
+ private _DocPDFFileMediaId;
34
+ private static _RepositoryBase;
35
+ private static _DocumentItemRepository;
36
+ private static _AccountingSystem;
37
+ private _DbTransaction;
38
+ private _IsNewRecord;
39
+ private _DocumentItems;
40
+ private static _MediaRepository;
41
+ mediaCommonService: MediaCommonService;
42
+ private get IsNewRecord();
43
+ private set IsNewRecord(value);
44
+ get DocType(): DocType;
45
+ set DocType(docType: DocType);
46
+ get DocDate(): Date;
47
+ set DocDate(date: Date);
48
+ get DocHTMLFileMediaId(): string;
49
+ set DocHTMLFileMediaId(mediaId: string);
50
+ get DocPDFFileMediaId(): string;
51
+ set DocPDFFileMediaId(mediaId: string);
52
+ get Amount(): number;
53
+ private set Amount(value);
54
+ get Status(): DocumentStatus;
55
+ set Status(status: DocumentStatus);
56
+ get RepositoryBase(): DocumentRepository;
57
+ get ObjectId(): string;
58
+ get ObjectName(): string;
59
+ get TableName(): string;
60
+ constructor(dbTransaction?: any, documentData?: any);
61
+ init(params: IDocumentAttr): void;
62
+ static initDocument(dbTransaction: any, docNo: string): Promise<Document>;
63
+ reCalculateAmount(): Promise<void>;
64
+ get DocumentItems(): Promise<DocumentItem[]>;
65
+ getDocumentItems(dbTransaction?: any): Promise<any[]>;
66
+ static settleByCreditNote(loginUser: LoginUserBase, dbTransaction: any, DocNo: string, AmountToReduce: number): Promise<Document>;
67
+ static DEFAULT_INVOICE_TEMPLATE_HTML(): Promise<Express.Multer.File>;
68
+ DEFAULT_INVOICE_TEMPLATE_PDF(customer: FinanceCustomerBase, date?: Date): Promise<Express.Multer.File>;
69
+ DEFAULT_RECEIPT_TEMPLATE_PDF(customer: FinanceCustomerBase, date?: Date): Promise<Express.Multer.File>;
70
+ get DocumentFileInHTML(): Promise<MediasModel>;
71
+ get DocumentFileInPDF(): Promise<MediasModel>;
72
+ generateInvoice(userId?: string, customer?: FinanceCustomerBase, dbTransaction?: any, date?: Date): Promise<{
73
+ HTMLMedia: MediasModel;
74
+ PDFMedia: MediasModel;
75
+ }>;
76
+ generateReceipt(userId?: string, customer?: FinanceCustomerBase, transaction?: any, date?: Date): Promise<{
77
+ HTMLMedia: MediasModel;
78
+ PDFMedia: MediasModel;
79
+ }>;
80
+ generateCreditNote(userId?: string, customer?: FinanceCustomerBase): Promise<void>;
81
+ newDocumentItem(documentItem?: DocumentItem): Promise<DocumentItem>;
82
+ getPreviousDocument(docType: DocType): Promise<DocumentModel>;
83
+ static findAll(loginUser: LoginUserBase, dbTransaction: any, page?: number, row?: number, search?: IDocumentFindAll, order?: [string, string][], accountingSystem?: IAccountSystem): Promise<{
84
+ count: number;
85
+ rows: DocumentModel[];
86
+ }>;
87
+ }