check price where null
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
This commit is contained in:
parent
8b26f91dba
commit
3193403f90
1 changed files with 5 additions and 3 deletions
|
|
@ -477,13 +477,15 @@ export class ProductController extends Controller {
|
|||
? "serviceFee"
|
||||
: "processingFee",
|
||||
shared: item.shared === "ใช่" ? true : false,
|
||||
price: +parseFloat(item.price.replace(",", "")).toFixed(6),
|
||||
price: item?.price ? +parseFloat(item.price.replace(",", "")).toFixed(6) : 0,
|
||||
calcVat: item.calcVat === "ใช่" ? true : false,
|
||||
vatIncluded: item.vatIncluded === "รวม" ? true : false,
|
||||
agentPrice: +parseFloat(item.agentPrice.replace(",", "")).toFixed(6),
|
||||
agentPrice: item?.agentPrice ? +parseFloat(item.agentPrice.replace(",", "")).toFixed(6) : 0,
|
||||
agentPriceCalcVat: item.agentPriceCalcVat === "ใช่" ? true : false,
|
||||
agentPriceVatIncluded: item.agentPriceVatIncluded === "รวม" ? true : false,
|
||||
serviceCharge: +parseFloat(item.serviceCharge.replace(",", "")).toFixed(6),
|
||||
serviceCharge: item?.serviceCharge
|
||||
? +parseFloat(item.serviceCharge.replace(",", "")).toFixed(6)
|
||||
: 0,
|
||||
serviceChargeCalcVat: item.serviceChargeCalcVat === "ใช่" ? true : false,
|
||||
serviceChargeVatIncluded: item.serviceChargeVatIncluded === "รวม" ? true : false,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue