|
|
@@ -220,13 +220,14 @@ class StatSaleClass extends BaseClass
|
|
|
if (!empty($cgList)) {
|
|
|
foreach ($cgList as $cgKey => $cgItem) {
|
|
|
$actPrice = $cgItem['actPrice'] ?? 0;
|
|
|
- if($actPrice<=0){
|
|
|
- //如果应付供货商的actPrice金额已经清0,所以这个单子已经取消,那么代表提货费、本地运费、到付的短途和长途运费总金额的paidPrice,也已经清0
|
|
|
- //数据库端没有清零,但这边代码端先清0
|
|
|
- $paidPrice = 0;
|
|
|
- }else{
|
|
|
- $paidPrice = $cgItem['paidPrice'] ?? 0;
|
|
|
- }
|
|
|
+// if($actPrice<=0){
|
|
|
+// //如果应付供货商的actPrice金额已经清0,所以这个单子已经取消,那么代表提货费、本地运费、到付的短途和长途运费总金额的paidPrice,也已经清0
|
|
|
+// //数据库端没有清零,但这边代码端先清0
|
|
|
+// $paidPrice = 0;
|
|
|
+// }else{
|
|
|
+// $paidPrice = $cgItem['paidPrice'] ?? 0;
|
|
|
+// }
|
|
|
+ $paidPrice = $cgItem['paidPrice'] ?? 0;
|
|
|
$total = bcadd($actPrice, $paidPrice, 2);
|
|
|
//物流费用不算成本
|
|
|
if (isset($cgItem['isCost']) && $cgItem['isCost'] == 0) {
|