fix: product
This commit is contained in:
@@ -27,7 +27,7 @@ export class ProductService {
|
||||
name: createProductDto.name,
|
||||
code: createProductDto.code,
|
||||
status: createProductDto.status,
|
||||
subCategories: subCategories,
|
||||
sub_categories: subCategories,
|
||||
price: createProductDto.price,
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@ export class ProductService {
|
||||
product: result.identifiers[0],
|
||||
type: productType.NORMAL,
|
||||
price: createProductDto.price,
|
||||
markUpPrice: createProductDto.markUpPrice,
|
||||
mark_up_price: createProductDto.markUpPrice,
|
||||
startDate: new Date(),
|
||||
endDate: null,
|
||||
});
|
||||
@@ -111,7 +111,7 @@ export class ProductService {
|
||||
name: updateProductDto.name,
|
||||
code: updateProductDto.code,
|
||||
status: updateProductDto.status,
|
||||
subCategories: subCategories,
|
||||
sub_categories: subCategories,
|
||||
});
|
||||
|
||||
return this.productRepository.findOneOrFail(id);
|
||||
@@ -127,7 +127,7 @@ export class ProductService {
|
||||
product: product,
|
||||
type: updatePriceProductDto.type,
|
||||
price: updatePriceProductDto.price,
|
||||
markUpPrice: updatePriceProductDto.markUpPrice,
|
||||
mark_up_price: updatePriceProductDto.markUpPrice,
|
||||
startDate: updatePriceProductDto.startDate,
|
||||
endDate: updatePriceProductDto.endDate,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user