add: create supplier

This commit is contained in:
ilham
2021-12-11 23:45:03 +07:00
parent d332935e85
commit 14a00988d9
18 changed files with 267 additions and 45 deletions

View File

@@ -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;
}

View File

@@ -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()

View File

@@ -1,11 +0,0 @@
import {
Entity,
Column,
} from 'typeorm';
import { BaseModel } from '../../config/basemodel.entity';
@Entity()
export class TransactionType extends BaseModel {
@Column()
name: string;
}