|
|
@@ -1905,9 +1905,8 @@ class OrderClass extends BaseClass
|
|
|
$custom = CustomClass::getById($customId, true);
|
|
|
$debtAmount = $custom->debtAmount ?? 0;
|
|
|
$balance = $custom->balance ?? 0;
|
|
|
- $balanceString = '';
|
|
|
- if ($balance > 0) {
|
|
|
- $balanceString = "<span>可用余额:{$balance}</span>";
|
|
|
+ if ($debtAmount >= $balance) {
|
|
|
+ $debtAmount = bcsub($debtAmount, $balance, 2);
|
|
|
}
|
|
|
$mainId = $order->mainId ?? 0;
|
|
|
|
|
|
@@ -2073,7 +2072,6 @@ XL;
|
|
|
<span style="margin-right:15px;">本单:{$actPrice}</span>
|
|
|
<span style="margin-right:15px;">上次欠款:{$beforeDebtPrice}</span>
|
|
|
<span style="margin-right:15px;">待付欠款:{$debtAmount}</span>
|
|
|
- {$balanceString}
|
|
|
</div>
|
|
|
XL;
|
|
|
|