From 027326a9e437bdc5019f07ae9365cacaf27113bf Mon Sep 17 00:00:00 2001 From: Kanjana Date: Tue, 22 Apr 2025 11:23:12 +0700 Subject: [PATCH] add check point price --- src/controllers/04-product-controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/04-product-controller.ts b/src/controllers/04-product-controller.ts index ed4d401..69b1848 100644 --- a/src/controllers/04-product-controller.ts +++ b/src/controllers/04-product-controller.ts @@ -477,10 +477,13 @@ export class ProductController extends Controller { ? "serviceFee" : "processingFee", shared: item.shared === "ใช่" ? true : false, + price: +parseFloat(item.price.replace(",", "")).toFixed(6), calcVat: item.calcVat === "ใช่" ? true : false, vatIncluded: item.vatIncluded === "รวม" ? true : false, + agentPrice: +parseFloat(item.agentPrice.replace(",", "")).toFixed(6), agentPriceCalcVat: item.agentPriceCalcVat === "ใช่" ? true : false, agentPriceVatIncluded: item.agentPriceVatIncluded === "รวม" ? true : false, + serviceCharge: +parseFloat(item.serviceCharge.replace(",", "")).toFixed(6), serviceChargeCalcVat: item.serviceChargeCalcVat === "ใช่" ? true : false, serviceChargeVatIncluded: item.serviceChargeVatIncluded === "รวม" ? true : false, };