@tomei/finance 0.6.24 → 0.6.25

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.24",
3
+ "version": "0.6.25",
4
4
  "description": "NestJS package for finance module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -304,9 +304,10 @@ export default class FinanceCompany extends ObjectBase {
304
304
  }
305
305
 
306
306
  // Retrieve the type of accounting system, API Key, and API secret based on SysCode from the Config.ts
307
- const customerId = await this.AccountingSystem.createCustomer({
308
- customer,
309
- });
307
+ // const customerId = await this.AccountingSystem.createCustomer({
308
+ // customer,
309
+ // });
310
+ const customerId = "REF"
310
311
 
311
312
  customer.CompanyId = this._CompanyId;
312
313
 
@@ -392,7 +393,7 @@ export default class FinanceCompany extends ObjectBase {
392
393
  // await ct.save();
393
394
  }
394
395
 
395
- await this.AccountingSystem.postJournalEntry(newJournalEntry);
396
+ // await this.AccountingSystem.postJournalEntry(newJournalEntry);
396
397
 
397
398
  const payload = {
398
399
  Action: 'Create',
@@ -445,9 +446,11 @@ export default class FinanceCompany extends ObjectBase {
445
446
  'Finance Company Create Account: Before accSystemAccountId Create',
446
447
  );
447
448
 
448
- const accSystemAccountId = await this.AccountingSystem.createAccount(
449
- createAccountPayload,
450
- );
449
+ // const accSystemAccountId = await this.AccountingSystem.createAccount(
450
+ // createAccountPayload,
451
+ // );
452
+
453
+ const accSystemAccountId = "REF"
451
454
 
452
455
  console.log(
453
456
  'Finance Company Create Account: After accSystemAccountId Create',
@@ -547,7 +550,7 @@ export default class FinanceCompany extends ObjectBase {
547
550
 
548
551
  if (invoice.UseAccSystemDocYN === 'Y') {
549
552
  /*todo: Posting to accounting system to generate invoice*/
550
- await this.AccountingSystem.createInvoice(invoice);
553
+ // await this.AccountingSystem.createInvoice(invoice);
551
554
  } else {
552
555
  /*todo: check config file to see which invoice template is to be used for specific project*/
553
556
 
@@ -834,7 +837,7 @@ export default class FinanceCompany extends ObjectBase {
834
837
  /*Generating the invoice*/
835
838
  if (invoice.UseAccSystemDocYN === 'Y') {
836
839
  /*todo: Posting to accounting system to generate invoice*/
837
- await this.AccountingSystem.createInvoice(invoice);
840
+ // await this.AccountingSystem.createInvoice(invoice);
838
841
  } else {
839
842
  /*todo: check config file to see which invoice template is to be used for specific project*/
840
843
 
@@ -1048,7 +1051,7 @@ export default class FinanceCompany extends ObjectBase {
1048
1051
  /*Generating the credit note*/
1049
1052
  if (creditNote.UseAccSystemDocYN === 'Y') {
1050
1053
  /*todo: Posting to accounting system to generate creditNote*/
1051
- await this.AccountingSystem.createCreditNote(creditNote);
1054
+ // await this.AccountingSystem.createCreditNote(creditNote);
1052
1055
  } else {
1053
1056
  /*todo: check config file to see which invoice template is to be used for specific project*/
1054
1057