- change status to product history status

This commit is contained in:
Fadli 2022-08-30 01:18:57 +07:00
parent 112662d069
commit 42e0ab57dd

View File

@ -133,7 +133,7 @@ export class ProductService {
const savedProduct = await this.productRepository.insert({
name: it[1],
code: it[0],
status: null,
status: it[5] == 'active' ? 'ACTIVE' : 'NOT ACTIVE',
sub_categories: subCategories,
supplier: supplierData,
type: it[7] == 'postpaid' ? 'postpaid' : 'prepaid',