- change status to product history status

This commit is contained in:
Fadli 2022-08-30 01:05:18 +07:00
parent af29531485
commit 8e2106b831

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',