add column url in table supplier
This commit is contained in:
parent
b05404eb23
commit
cdf9a19816
|
@ -6,4 +6,7 @@ export class CreateSupplierDto {
|
|||
|
||||
@IsNotEmpty()
|
||||
code: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
url: string;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ export class SupplierService {
|
|||
)
|
||||
private coaService: CoaService,
|
||||
private connection: Connection,
|
||||
) {}
|
||||
) { }
|
||||
|
||||
async create(createSupplierDto: CreateSupplierDto) {
|
||||
const check = await this.supplierRepository.findOne({
|
||||
|
@ -43,6 +43,7 @@ export class SupplierService {
|
|||
supplierData.id = uuid.v4();
|
||||
supplierData.name = createSupplierDto.name;
|
||||
supplierData.code = createSupplierDto.code;
|
||||
supplierData.url = createSupplierDto.url;
|
||||
supplierData.status = false;
|
||||
|
||||
await this.connection.transaction(async (manager) => {
|
||||
|
@ -99,6 +100,7 @@ export class SupplierService {
|
|||
const supplierData = new Supplier();
|
||||
|
||||
supplierData.name = updateSupplierDto.name;
|
||||
supplierData.url = updateSupplierDto.url;
|
||||
supplierData.status = true;
|
||||
|
||||
await this.connection.transaction(async (manager) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user