+
+ ยอดรวมสินค้าก่อนลด
+ {fmt(simBeforeDiscount)}
+
+
+ ส่วนลดจากร้านค้า (รวม)
+
+ -{fmt(simDiscountAmount)}
+
+
+ {discounts.map((d, i) => d.value > 0 ? (
+
+ - คูปอง #{i + 1} ({d.type === 'pct' ? `${d.value}%` : `฿${d.value}`})
+
+ -{fmt(d.type === 'pct' ? simBeforeDiscount * (d.value / 100) : d.value)}
+
+
+ ) : null)}
+
+ ยอดสินค้าสุทธิ (ฐานคิดคอม)
+ {fmt(baseAmt)}
+
+
+ - ค่าคอมมิชชั่น ({simCommPct.toFixed(2)}%)
+ ฿-{simCommAmt.toFixed(2)}
+
+
+ - ค่าบริการ ({simServicePct.toFixed(2)}%)
+ ฿-{simServiceAmt.toFixed(2)}
+
+
+ - ค่าธุรกรรมการชำระเงิน ({simTransPct.toFixed(2)}%)
+ ฿-{simTransAmt.toFixed(2)}
+
+ {simAmsPct > 0 && (
+
+ - ค่าคอมมิชชั่น AMS ({simAmsPct.toFixed(2)}%)
+ ฿-{simAmsAmt.toFixed(2)}
+
+ )}
+
+ รวมค่าธรรมเนียมโดนหัก
+ ฿-{simTotalAmt.toFixed(2)}
+
+
+ ยอดเงินโอนเข้าบัญชีสุทธิ
+ ฿{simPayout.toFixed(2)}
+
+
+ - ต้นทุนสินค้า (Cost)
+ ฿-{simCost.toFixed(2)}
+
+
+ กำไรสุทธิ (Net Profit)
+ = 0 ? 'text-green-400' : 'text-rose-400'}`}>
+ {simProfit >= 0 ? '' : '-'}฿{Math.abs(simProfit).toFixed(2)}
+
+
+
+ กำไรต่อยอดขาย (Margin %)
+ = 0 ? 'text-green-400' : 'text-rose-400'}`}>
+ {simProfitMargin.toFixed(1)}%
+
+
+
+ กำไรต่อทุน (ROI %)
+ = 0 ? 'text-green-400' : 'text-rose-400'}`}>
+ {simROI.toFixed(1)}%
+
+
+