@tomei/finance 0.3.13 → 0.3.14

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.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "NestJS package for finance module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -293,7 +293,11 @@ export default class FinanceCompany extends ObjectBase {
293
293
  EntityId: newCustomer.CustomerId,
294
294
  };
295
295
 
296
- await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
296
+ // await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
297
+ await axios.post(
298
+ `${process.env.COMMON_API_URL}/activity-histories`,
299
+ payload,
300
+ );
297
301
 
298
302
  return customer;
299
303
  } catch (error) {
@@ -350,7 +354,11 @@ export default class FinanceCompany extends ObjectBase {
350
354
  EntityId: newJournalEntry.JournalEntryId,
351
355
  };
352
356
 
353
- await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
357
+ // await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
358
+ await axios.post(
359
+ `${process.env.COMMON_API_URL}/activity-histories`,
360
+ payload,
361
+ );
354
362
  } catch (error) {
355
363
  throw error;
356
364
  }
@@ -398,7 +406,11 @@ export default class FinanceCompany extends ObjectBase {
398
406
  EntityId: newAccount.AccountNo,
399
407
  };
400
408
 
401
- await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
409
+ // await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
410
+ await axios.post(
411
+ `${process.env.COMMON_API_URL}/activity-histories`,
412
+ payload,
413
+ );
402
414
 
403
415
  return account;
404
416
  } catch (error) {
@@ -575,7 +587,11 @@ export default class FinanceCompany extends ObjectBase {
575
587
  EntityId: ledgerTransaction.TransactionId,
576
588
  };
577
589
 
578
- await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
590
+ // await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
591
+ await axios.post(
592
+ `${process.env.COMMON_API_URL}/activity-histories`,
593
+ payload,
594
+ );
579
595
 
580
596
  return invoice;
581
597
  } catch (err) {
@@ -754,7 +770,11 @@ export default class FinanceCompany extends ObjectBase {
754
770
  EntityId: debitTransaction.TransactionId,
755
771
  };
756
772
 
757
- await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
773
+ // await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
774
+ await axios.post(
775
+ `${process.env.COMMON_API_URL}/activity-histories`,
776
+ payload,
777
+ );
758
778
 
759
779
  return invoice;
760
780
  } catch (err) {
@@ -932,7 +952,11 @@ export default class FinanceCompany extends ObjectBase {
932
952
  EntityId: creditTransaction.TransactionId,
933
953
  };
934
954
 
935
- await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
955
+ // await axios.post(`${config.commonApiUrl}/activity-histories`, payload);
956
+ await axios.post(
957
+ `${process.env.COMMON_API_URL}/activity-histories`,
958
+ payload,
959
+ );
936
960
 
937
961
  return creditNote;
938
962
  } catch (err) {