|
@@ -310,6 +310,7 @@ class StatSaleClass extends BaseClass
|
|
|
foreach ($hdOrderList as $hdKey => $hdOrder) {
|
|
foreach ($hdOrderList as $hdKey => $hdOrder) {
|
|
|
$actPrice = $hdOrder['mainPay'] ?? 0;
|
|
$actPrice = $hdOrder['mainPay'] ?? 0;
|
|
|
$onlinePay = $hdOrder['onlinePay'] ?? 1;
|
|
$onlinePay = $hdOrder['onlinePay'] ?? 1;
|
|
|
|
|
+ $repeat = $hdOrder['repeat'] ?? 0;
|
|
|
|
|
|
|
|
if ($hdOrder['tkPrice'] && $hdOrder['tkPrice'] > 0) {
|
|
if ($hdOrder['tkPrice'] && $hdOrder['tkPrice'] > 0) {
|
|
|
$actPrice = bcsub($actPrice, $hdOrder['tkPrice'], 2);
|
|
$actPrice = bcsub($actPrice, $hdOrder['tkPrice'], 2);
|
|
@@ -326,7 +327,7 @@ class StatSaleClass extends BaseClass
|
|
|
}
|
|
}
|
|
|
$totalOrderNum++;
|
|
$totalOrderNum++;
|
|
|
|
|
|
|
|
- if ($onlinePay == 2 && floatval($cash) <= 0) {
|
|
|
|
|
|
|
+ if ($onlinePay == 2 && floatval($cash) <= 0 && $repeat == 1) {
|
|
|
$payCodeIncome = bcadd($payCodeIncome, $actPrice, 2);
|
|
$payCodeIncome = bcadd($payCodeIncome, $actPrice, 2);
|
|
|
$payCodeIncome = floatval($payCodeIncome);
|
|
$payCodeIncome = floatval($payCodeIncome);
|
|
|
}
|
|
}
|