add column in table supplier
This commit is contained in:
parent
cdf9a19816
commit
790c0902a6
|
@ -9,4 +9,16 @@ export class CreateSupplierDto {
|
|||
|
||||
@IsNotEmpty()
|
||||
url: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
irs_id: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
irs_pin: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
irs_user: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
irs_pass: string;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,26 @@ export class Supplier extends BaseModel {
|
|||
})
|
||||
url: string;
|
||||
|
||||
@Column({
|
||||
nullable: true
|
||||
})
|
||||
irs_id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true
|
||||
})
|
||||
irs_pin: string;
|
||||
|
||||
@Column({
|
||||
nullable: true
|
||||
})
|
||||
irs_user: string;
|
||||
|
||||
@Column({
|
||||
nullable: true
|
||||
})
|
||||
irs_pass: string;
|
||||
|
||||
coa: COA;
|
||||
|
||||
coa_undistribute: COA;
|
||||
|
|
|
@ -44,6 +44,10 @@ export class SupplierService {
|
|||
supplierData.name = createSupplierDto.name;
|
||||
supplierData.code = createSupplierDto.code;
|
||||
supplierData.url = createSupplierDto.url;
|
||||
supplierData.irs_id = createSupplierDto.irs_id;
|
||||
supplierData.irs_pin = createSupplierDto.irs_pin;
|
||||
supplierData.irs_user = createSupplierDto.irs_user;
|
||||
supplierData.irs_pass = createSupplierDto.irs_pass;
|
||||
supplierData.status = false;
|
||||
|
||||
await this.connection.transaction(async (manager) => {
|
||||
|
@ -101,6 +105,10 @@ export class SupplierService {
|
|||
|
||||
supplierData.name = updateSupplierDto.name;
|
||||
supplierData.url = updateSupplierDto.url;
|
||||
supplierData.irs_id = updateSupplierDto.irs_id;
|
||||
supplierData.irs_pin = updateSupplierDto.irs_pin;
|
||||
supplierData.irs_user = updateSupplierDto.irs_user;
|
||||
supplierData.irs_pass = updateSupplierDto.irs_pass;
|
||||
supplierData.status = true;
|
||||
|
||||
await this.connection.transaction(async (manager) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user