@tomei/finance 0.3.15 → 0.3.17

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,7 +1,7 @@
1
+ import * as cuid from 'cuid';
1
2
  import { ILedgerTransactionAttr } from './interfaces/ledger-transaction-attr.interface';
2
3
  import { TransactionTypeOptions } from '../enum/transaction-type.enum';
3
4
  import { LedgerTransactionRepository } from './ledger-transaction.repository';
4
- import * as uniqid from 'uniqid';
5
5
 
6
6
  export default class LedgerTransaction {
7
7
  TransactionId: string;
@@ -63,7 +63,7 @@ export default class LedgerTransaction {
63
63
  journalEntryId?: string,
64
64
  ): Promise<any> {
65
65
  this.init({
66
- TransactionId: uniqid(),
66
+ TransactionId: cuid(),
67
67
  TransactionType: transactionType,
68
68
  JournalEntryId: '',
69
69
  AccountNo: '',
@@ -53,7 +53,7 @@ export default class Payment extends AccountSystemEntity {
53
53
  return this._ReceivedBy;
54
54
  }
55
55
 
56
- private set ReceivedBy(id: string) {
56
+ public set ReceivedBy(id: string) {
57
57
  this._ReceivedBy = id;
58
58
  }
59
59