|
|
@@ -149,7 +149,14 @@ open class M18MasterDataService( |
|
|
|
name = pro.desc, |
|
|
|
// type = if (pro.seriesId == m18Config.SERIESID_PF) ProductType.MATERIAL |
|
|
|
// else ItemType.PRODUCT, |
|
|
|
type = ItemType.MATERIAL, |
|
|
|
type = when (pro.udfProducttype) { |
|
|
|
M18ItemType.CONSUMABLES.type -> ItemType.CONSUMABLES |
|
|
|
M18ItemType.NONCONSUMABLES.type -> ItemType.NONCONSUMABLES |
|
|
|
M18ItemType.FG.type -> ItemType.FG |
|
|
|
M18ItemType.SFG.type -> ItemType.SFG |
|
|
|
M18ItemType.ITEM.type -> ItemType.ITEM |
|
|
|
else -> ItemType.MATERIAL |
|
|
|
}, |
|
|
|
id = existingItem?.id, |
|
|
|
description = pro.desc, |
|
|
|
remarks = null, |
|
|
@@ -236,7 +243,14 @@ open class M18MasterDataService( |
|
|
|
name = pro.desc, |
|
|
|
// type = if (pro.seriesId == m18Config.SERIESID_PF) ProductType.MATERIAL |
|
|
|
// else ItemType.PRODUCT, |
|
|
|
type = ItemType.MATERIAL, |
|
|
|
type = when (pro.udfProducttype) { |
|
|
|
M18ItemType.CONSUMABLES.type -> ItemType.CONSUMABLES |
|
|
|
M18ItemType.NONCONSUMABLES.type -> ItemType.NONCONSUMABLES |
|
|
|
M18ItemType.FG.type -> ItemType.FG |
|
|
|
M18ItemType.SFG.type -> ItemType.SFG |
|
|
|
M18ItemType.ITEM.type -> ItemType.ITEM |
|
|
|
else -> ItemType.MATERIAL |
|
|
|
}, |
|
|
|
id = existingItem?.id, |
|
|
|
description = pro.desc, |
|
|
|
remarks = null, |
|
|
|