@tomei/finance 0.6.90 → 0.6.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/finance",
3
- "version": "0.6.90",
3
+ "version": "0.6.92",
4
4
  "description": "NestJS package for finance module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -505,7 +505,7 @@ export default class FinanceCompany extends ObjectBase {
505
505
 
506
506
  // Retrieve & validate accountNoLength from finance config file
507
507
  const accountNoLength = ComponentConfig.getComponentConfigValue(
508
- 'finance-config.json',
508
+ '@tomei/finance',
509
509
  'accountNoLength',
510
510
  );
511
511
 
@@ -6,23 +6,23 @@ import Document from '../document/document';
6
6
 
7
7
  export interface IAccountSystem {
8
8
  createAccount(Account: Account, dbTransaction?: any): Promise<string>;
9
- createInvoice<C extends FinanceCustomerBase>(payload: {
10
- customer: C;
9
+ createInvoice(payload: {
10
+ customer: FinanceCustomerBase;
11
11
  invoice: Document;
12
12
  paymentMode: "cash" | "credit";
13
13
  }, dbTransaction?: any): Promise<string>;
14
14
  createDebitNote(payload: any, dbTransaction?: any): Promise<any>;
15
15
  createCreditNote(payload: any, dbTransaction?: any): Promise<any>;
16
16
  postTransaction(journalEntry: JournalEntry, dbTransaction?: any): Promise<any>;
17
- createCustomer<C extends FinanceCustomerBase>(customer: C, dbTransaction?: any): Promise<string>;
18
- updateCustomer<C extends FinanceCustomerBase>(customer: C, dbTransaction?: any): Promise<C>;
19
- makePayment<C extends FinanceCustomerBase>(
20
- customer: C,
17
+ createCustomer(customer: FinanceCustomerBase, dbTransaction?: any): Promise<string>;
18
+ updateCustomer(customer: FinanceCustomerBase, dbTransaction?: any): Promise<any>;
19
+ makePayment(
20
+ customer: FinanceCustomerBase,
21
21
  paymentInfo: Payment,
22
22
  dbTransaction?: any
23
23
  ): Promise<string>;
24
- collectPayments<C extends FinanceCustomerBase>(
25
- customer: C,
24
+ collectPayments(
25
+ customer: FinanceCustomerBase,
26
26
  paymentInfo: Payment,
27
27
  dbTransaction?: any
28
28
  ): Promise<string>;