待确认Q5

This commit is contained in:
Jerry Yan 2020-12-04 13:31:15 +08:00
parent f9be35da6d
commit a984171a03

View File

@ -1562,6 +1562,10 @@ class Orders extends Base{
'预获优惠券被助购转换所扣',0);
$vm->insertAlreadyVouchersNotice($order['helpUserId'], $orderId, 0, $yhyhq_zh,
'订单【'.($order['orderNo']?:'--').'】预获优惠券助购转换所得',1);
//原来 计算被助购户获得【已获产品券】的算式为u×n%×1-50%
//现在 计算被助购户获得【已获产品券】的算式为u×n%×1-50%-20%
// 根据设置新添的【购户获得已获优惠券是在助购吧购的物的优惠款的20%】,
// 同时计算该助购户自己获得【已获优惠券】的算式为u×n%×20%
$yhcpq_zh = $calBaseNum*(1-(float)dataConf('helpSaleCouponsCalBase')/100-(float)dataConf('helpSaleAlreadyCouponGet')/100);
$yhcpq_zh2 = $calBaseNum*((float)dataConf('helpSaleAlreadyCouponGet')/100);
if ($yhcpq_zh < 0) $yhcpq_zh = 0;