@tomei/finance 0.6.112 → 0.6.114

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.
@@ -1,5 +1,4 @@
1
1
  import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
2
- import AccountModel from '../models/account.entity';
3
2
  import { AccountRepository } from './account.repository';
4
3
  export default class Account extends AccountSystemEntity {
5
4
  AccountNo: string;
@@ -33,5 +32,5 @@ export default class Account extends AccountSystemEntity {
33
32
  static initialize(): void;
34
33
  validateAccountValue(): void;
35
34
  isParentAccountExists(): boolean;
36
- save(CompanyId: string, AccSystemRefId: string, userId: string, dbTransaction?: any): Promise<AccountModel>;
35
+ save(CompanyId: string, AccSystemRefId: string, userId: string, dbTransaction?: any): Promise<Account>;
37
36
  }
@@ -245,7 +245,7 @@ class Account extends account_system_entity_1.AccountSystemEntity {
245
245
  console.log(data, '<><><><><><><> DATA THAT GETS CREATED <><><><><><><>');
246
246
  }
247
247
  console.log(data, 'Account Save: Account details returned');
248
- return data;
248
+ return this;
249
249
  }
250
250
  }
251
251
  Account._RepositoryBase = new account_repository_1.AccountRepository();
@@ -68,7 +68,7 @@ export default class FinanceCompany extends ObjectBase {
68
68
  static findAccount(loginUser: LoginUserBase, dbTransaction: any, accountNo: string): Promise<Account>;
69
69
  createCustomer<T extends FinanceCustomerBase>(dbTransaction: any, custSystemCode: string, custSystemRefId: string, customer: T, loginUser: LoginUser): Promise<T>;
70
70
  postJournal(dbTransaction: any, journalEntry: JournalEntry, loginUser: LoginUserBase): Promise<void>;
71
- createAccount(dbTransaction: any, account: Account, loginUser: LoginUserBase): Promise<import("../models/account.entity").default>;
71
+ createAccount(dbTransaction: any, account: Account, loginUser: LoginUserBase): Promise<Account>;
72
72
  issueInvoice<C extends FinanceCustomerBase>(dbTransaction: any, invoice: Document, loginUser?: LoginUserBase, customer?: C, dtAccountNo?: string): Promise<Document>;
73
73
  static findCustomer(custSystemRefId: string, dbTransaction?: any): Promise<FinanceCustomerModel>;
74
74
  issueDebitNote(dbTransaction: any, loginUser: LoginUserBase, invoice: Document, customer: FinanceCustomerBase, dtAccountNo?: string): Promise<Document>;