Excel:L53,59,64
This commit is contained in:
parent
209a90d585
commit
841ce33eb8
@ -2272,7 +2272,7 @@ class Orders extends Base{
|
|||||||
$lm['targetId'] = $userId;
|
$lm['targetId'] = $userId;
|
||||||
$lm['dataId'] = $orderId;
|
$lm['dataId'] = $orderId;
|
||||||
$lm['dataSrc'] = 1;
|
$lm['dataSrc'] = 1;
|
||||||
$lm['remark'] = '交易订单【'.$v['orderNo'].'】支出¥'.$needPay;
|
$lm['remark'] = '订单【'.$v['orderNo'].'】支出';
|
||||||
$lm['moneyType'] = 0;
|
$lm['moneyType'] = 0;
|
||||||
$lm['money'] = $needPay;
|
$lm['money'] = $needPay;
|
||||||
$lm['payType'] = 0;
|
$lm['payType'] = 0;
|
||||||
@ -2645,7 +2645,7 @@ class Orders extends Base{
|
|||||||
$lm['targetId'] = $userId;
|
$lm['targetId'] = $userId;
|
||||||
$lm['dataId'] = $order->orderId;
|
$lm['dataId'] = $order->orderId;
|
||||||
$lm['dataSrc'] = 1;
|
$lm['dataSrc'] = 1;
|
||||||
$lm['remark'] = '交易订单【'.$order->orderNo.'】支出¥'.$tmpNeedPay;
|
$lm['remark'] = '订单【'.$order->orderNo.'】支出';
|
||||||
$lm['moneyType'] = 0;
|
$lm['moneyType'] = 0;
|
||||||
$lm['money'] = $tmpNeedPay;
|
$lm['money'] = $tmpNeedPay;
|
||||||
$lm['payType'] = 'wallets';
|
$lm['payType'] = 'wallets';
|
||||||
@ -2826,19 +2826,19 @@ class Orders extends Base{
|
|||||||
//记录各个券支出
|
//记录各个券支出
|
||||||
//产品券
|
//产品券
|
||||||
if($order->productNum > 0){
|
if($order->productNum > 0){
|
||||||
Model('common/LogMoneys')->addMoneyLog(0,$userId,$order->orderId,1,'交易订单【'.$order->orderNo.'】支出¥'.$order->productNum,0,$order->productNum,'qlgpay',1);
|
Model('common/LogMoneys')->addMoneyLog(0,$userId,$order->orderId,1,'订单【'.$order->orderNo.'】支出',0,$order->productNum,'qlgpay',1);
|
||||||
}
|
}
|
||||||
//优惠券
|
//优惠券
|
||||||
if($order->couponsNum > 0){
|
if($order->couponsNum > 0){
|
||||||
Model('common/LogMoneys')->addMoneyLog(0,$userId,$order->orderId,1,'交易订单【'.$order->orderNo.'】支出¥'.$order->couponsNum,0,$order->couponsNum,'qlgpay',2);
|
Model('common/LogMoneys')->addMoneyLog(0,$userId,$order->orderId,1,'订单【'.$order->orderNo.'】支出',0,$order->couponsNum,'qlgpay',2);
|
||||||
}
|
}
|
||||||
//旺旺券
|
//旺旺券
|
||||||
if($order->wangNum > 0){
|
if($order->wangNum > 0){
|
||||||
Model('common/LogMoneys')->addMoneyLog(0,$userId,$order->orderId,1,'交易订单【'.$order->orderNo.'】支出¥'.$order->wangNum,0,$order->wangNum,'qlgpay',3);
|
Model('common/LogMoneys')->addMoneyLog(0,$userId,$order->orderId,1,'订单【'.$order->orderNo.'】支出',0,$order->wangNum,'qlgpay',3);
|
||||||
}
|
}
|
||||||
//现金
|
//现金
|
||||||
if($order->moneyNum > 0){
|
if($order->moneyNum > 0){
|
||||||
Model('common/LogMoneys')->addMoneyLog(0,$userId,$order->orderId,1,'交易订单【'.$order->orderNo.'】支出¥'.$order->moneyNum,0,$order->moneyNum,'qlgpay',4);
|
Model('common/LogMoneys')->addMoneyLog(0,$userId,$order->orderId,1,'订单【'.$order->orderNo.'】支出',0,$order->moneyNum,'qlgpay',4);
|
||||||
//$lmm->insert($lm);//加入记录,不扣减
|
//$lmm->insert($lm);//加入记录,不扣减
|
||||||
}
|
}
|
||||||
//创建一条支出流水记录
|
//创建一条支出流水记录
|
||||||
@ -2847,7 +2847,7 @@ class Orders extends Base{
|
|||||||
// $lm['targetId'] = $userId;
|
// $lm['targetId'] = $userId;
|
||||||
// $lm['dataId'] = $order->orderId;
|
// $lm['dataId'] = $order->orderId;
|
||||||
// $lm['dataSrc'] = 1;
|
// $lm['dataSrc'] = 1;
|
||||||
// $lm['remark'] = '交易订单【'.$order->orderNo.'】支出¥'.$tmpNeedPay;
|
// $lm['remark'] = '订单【'.$order->orderNo.'】支出';
|
||||||
// $lm['moneyType'] = 0;
|
// $lm['moneyType'] = 0;
|
||||||
// $lm['money'] = $tmpNeedPay;
|
// $lm['money'] = $tmpNeedPay;
|
||||||
// $lm['payType'] = 'ect';
|
// $lm['payType'] = 'ect';
|
||||||
@ -3031,7 +3031,7 @@ class Orders extends Base{
|
|||||||
$lm['targetId'] = $userId;
|
$lm['targetId'] = $userId;
|
||||||
$lm['dataId'] = $order->orderId;
|
$lm['dataId'] = $order->orderId;
|
||||||
$lm['dataSrc'] = 1;
|
$lm['dataSrc'] = 1;
|
||||||
$lm['remark'] = '交易订单【'.$order->orderNo.'】支出¥'.$tmpNeedPay;
|
$lm['remark'] = '订单【'.$order->orderNo.'】支出';
|
||||||
$lm['moneyType'] = 0;
|
$lm['moneyType'] = 0;
|
||||||
$lm['money'] = $tmpNeedPay;
|
$lm['money'] = $tmpNeedPay;
|
||||||
$lm['payType'] = 'ect';
|
$lm['payType'] = 'ect';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user