add: create supplier
This commit is contained in:
		| @@ -1,7 +1,4 @@ | ||||
| import { | ||||
|   Entity, | ||||
|   Column, | ||||
| } from 'typeorm'; | ||||
| import { Entity, Column } from 'typeorm'; | ||||
| import { BaseModel } from '../../config/basemodel.entity'; | ||||
| import { coaType, balanceType } from '../../helper/enum-list'; | ||||
|  | ||||
| @@ -19,11 +16,18 @@ export class COA extends BaseModel { | ||||
|   @Column() | ||||
|   amount: number; | ||||
|  | ||||
|   @Column() | ||||
|   @Column({ | ||||
|     nullable: true, | ||||
|   }) | ||||
|   user: string; | ||||
|  | ||||
|   @Column({ | ||||
|     nullable:true | ||||
|     nullable: true, | ||||
|   }) | ||||
|   relatedUser: string; | ||||
|  | ||||
|   @Column({ | ||||
|     nullable: true, | ||||
|   }) | ||||
|   supplier: string; | ||||
| } | ||||
|   | ||||
| @@ -9,7 +9,6 @@ import { | ||||
| import { BaseModel } from '../../config/basemodel.entity'; | ||||
| import { COA } from './coa.entity'; | ||||
| import { Transactions } from './transactions.entity'; | ||||
| import { TransactionType } from './transaction-type.entity'; | ||||
| import { balanceType } from '../../helper/enum-list'; | ||||
|  | ||||
| @Entity() | ||||
|   | ||||
| @@ -1,11 +0,0 @@ | ||||
| import { | ||||
|   Entity, | ||||
|   Column, | ||||
| } from 'typeorm'; | ||||
| import { BaseModel } from '../../config/basemodel.entity'; | ||||
|  | ||||
| @Entity() | ||||
| export class TransactionType extends BaseModel { | ||||
|   @Column() | ||||
|   name: string; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user