@tomei/finance 0.3.11 → 0.3.13

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.11",
3
+ "version": "0.3.13",
4
4
  "description": "NestJS package for finance module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/config.ts CHANGED
@@ -163,16 +163,17 @@ type Config = {
163
163
  };
164
164
 
165
165
  export const getConfig = (): Config => {
166
- switch (process.env.NODE_ENV) {
167
- case 'development':
168
- return config['development'];
169
- case 'test':
170
- return config['test'];
171
- case 'staging':
172
- return config['staging'];
173
- case 'production':
174
- return config['production'];
175
- default:
176
- break;
177
- }
166
+ // switch (process.env.NODE_ENV) {
167
+ // case 'development':
168
+ // return config['development'];
169
+ // case 'test':
170
+ // return config['test'];
171
+ // case 'staging':
172
+ // return config['staging'];
173
+ // case 'production':
174
+ // return config['production'];
175
+ // default:
176
+ // break;
177
+ // }
178
+ return config['development'];
178
179
  };
@@ -102,7 +102,7 @@ export default abstract class FinanceCustomerBase
102
102
  CustomerId: cuid(),
103
103
  CustSystemCode: this.CustSystemCode,
104
104
  CustSystemRefId: this.CustSystemRefId,
105
- AccSystemRefId: accSystemRefId,
105
+ AccSystemRefId: this.AccSystemRefId,
106
106
  PostedToAccSystemYN: this.PostedToAccSystemYN,
107
107
  },
108
108
  { transaction: dbTransaction },
@@ -22,6 +22,7 @@ import Payment from '../payment/payment';
22
22
  import { DocumentRepository } from '../document/document.repository';
23
23
  import { DocumentItemRepository } from '../document/document-item.repository';
24
24
  import { getConfig } from '../config';
25
+
25
26
  const config = getConfig();
26
27
 
27
28
  export default class FinanceCompany extends ObjectBase {