|
@@ -23,6 +23,7 @@ class DebtController extends Controller
|
|
|
foreach ($list as $shop) {
|
|
foreach ($list as $shop) {
|
|
|
$shopId = $shop->id ?? 0;
|
|
$shopId = $shop->id ?? 0;
|
|
|
$mainId = $shop->mainId ?? 0;
|
|
$mainId = $shop->mainId ?? 0;
|
|
|
|
|
+ $sjName = $shop->merchantName ?? '';
|
|
|
$shopName = $shop->shopName ?? '';
|
|
$shopName = $shop->shopName ?? '';
|
|
|
$customList = CustomClass::getAllByCondition(['ownMainId' => $mainId], null, '*', null, true);
|
|
$customList = CustomClass::getAllByCondition(['ownMainId' => $mainId], null, '*', null, true);
|
|
|
$customDebt = 0;
|
|
$customDebt = 0;
|
|
@@ -41,9 +42,9 @@ class DebtController extends Controller
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (floatval($customDebt) != floatval($orderDebt)) {
|
|
if (floatval($customDebt) != floatval($orderDebt)) {
|
|
|
- echo "门店:{$shopName} 订单和客户欠款不一致 \n";
|
|
|
|
|
|
|
+ echo "门店:{$sjName} {$shopName} 订单和客户欠款不一致 \n";
|
|
|
} else {
|
|
} else {
|
|
|
- echo "门店:{$shopName} 总欠款{$customDebt} \n";
|
|
|
|
|
|
|
+ echo "门店:{$sjName} {$shopName} 总欠款{$customDebt} \n";
|
|
|
}
|
|
}
|
|
|
//$lsShopId = $shop->lsShopId ?? 0;
|
|
//$lsShopId = $shop->lsShopId ?? 0;
|
|
|
}
|
|
}
|