|
|
@@ -427,13 +427,15 @@ class PurchaseController extends BaseController
|
|
|
$id = $get['id'] ?? 0;
|
|
|
$info = PurchaseService::getInfo($id, true, true);
|
|
|
if (isset($info['mainId']) == false || $info['mainId'] != $this->mainId) {
|
|
|
- //不能注释,好像分享付款功能要用
|
|
|
+ //不能注释,好像分享付款功能要用,客户不需要登录
|
|
|
//util::fail('没有权限访问');
|
|
|
}
|
|
|
$customId = $info['customId'] ?? 0;
|
|
|
$custom = CustomClass::getById($customId);
|
|
|
$customName = $custom['name'] ?? '';
|
|
|
$customMobile = $custom['mobile'] ?? '';
|
|
|
+ $debtAmount = $custom['debtAmount'] ?? 0;
|
|
|
+ $info['totalDebtAmount'] = $debtAmount;
|
|
|
$info['customName'] = $customName;
|
|
|
$info['customMobile'] = $customMobile;
|
|
|
$hasDebtPay = $custom['debt'] ?? 0;
|