|
|
@@ -425,12 +425,12 @@
|
|
|
this._loadOperation();
|
|
|
res.owner_price_operations.forEach((operation,i)=>{
|
|
|
if (operation.discount_count){
|
|
|
- res.owner_price_operations[i].discount_count = operation.discount_count.split(",");
|
|
|
- res.owner_price_operations[i].total_discount_price = operation.total_discount_price.split(",");
|
|
|
+ if (operation.discount_count) res.owner_price_operations[i].discount_count = operation.discount_count.split(",");
|
|
|
+ if (operation.total_discount_price) res.owner_price_operations[i].total_discount_price = operation.total_discount_price.split(",");
|
|
|
operation.isDiscount = true;
|
|
|
}
|
|
|
operation.items.forEach((item,i)=>{
|
|
|
- res.owner_price_operations[i].items[i].discount_price = item.discount_price.split(",");
|
|
|
+ if (item.discount_price) res.owner_price_operations[i].items[i].discount_price = item.discount_price.split(",");
|
|
|
});
|
|
|
if (operation.total_price)operation.isSingle = true;
|
|
|
});
|