|
|
@@ -291,14 +291,18 @@ class StatKdClass extends BaseClass
|
|
|
$staffId = $hdOrder['shopAdminId'] ?? 0;
|
|
|
$staffName = $hdOrder['shopAdminName'] ?? '';
|
|
|
$repeat = $hdOrder['repeat'] ?? 0;
|
|
|
+ $forward = $hdOrder['forward'] ?? 0;
|
|
|
+ $tkPrice = $hdOrder['tkPrice'] ?? 0;
|
|
|
+ $mainPay = bcsub($mainPay, $tkPrice, 2);
|
|
|
+
|
|
|
+ if ($forward == 1) {
|
|
|
+ //售后付款不属于收入
|
|
|
+ continue;
|
|
|
+ }
|
|
|
|
|
|
$currentAmount = 0;
|
|
|
if ($onlinePay == dict::getDict('onlinePay', 'yes')) {
|
|
|
|
|
|
- //现金 和 微信支付宝付款,微信支付宝还存在退款情况
|
|
|
- $tkPrice = $hdOrder['tkPrice'] ?? 0;
|
|
|
- $mainPay = bcsub($mainPay, $tkPrice, 2);
|
|
|
-
|
|
|
$incomeList['system']['amount'] = bcadd($incomeList['system']['amount'], $mainPay, 2);
|
|
|
$incomeList['system']['num'] = bcadd($incomeList['system']['num'], 1);
|
|
|
$incomeList['system']['category']['ls']['amount'] = bcadd($incomeList['system']['category']['ls']['amount'], $mainPay, 2);
|
|
|
@@ -336,7 +340,7 @@ class StatKdClass extends BaseClass
|
|
|
$incomeList['debtClear']['category']['ls']['amount'] = bcadd($incomeList['debtClear']['category']['ls']['amount'], $clearDebt, 2);
|
|
|
$incomeList['debtClear']['category']['ls']['num'] = bcadd($incomeList['debtClear']['category']['ls']['num'], 1);
|
|
|
}
|
|
|
- $currentAmount = bcsub($mainPay, $debtPrice, 2);
|
|
|
+ $currentAmount = bcadd($remainDebtPrice, $clearDebt, 2);
|
|
|
} else {
|
|
|
$currentAmount = $mainPay;
|
|
|
}
|