shish 1 год назад
Родитель
Сommit
2e4be9cab7
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      biz/ghs/classes/GhsClass.php

+ 5 - 0
biz/ghs/classes/GhsClass.php

@@ -252,6 +252,11 @@ class GhsClass extends BaseClass
             $telephone = $currentShop['telephone'] ?? '';
             $list[$key]['telephone'] = $telephone;
 
+            $balance = $val['balance']??0;
+            $debtAmount = $val['debtAmount'] ?? 0;
+            $remainDebtAmount = bcsub($debtAmount, $balance, 2);
+            $list[$key]['remainDebtAmount'] = $remainDebtAmount;
+
             //与花神的合作
             $openKmCg = $currentShop['openKmCg'] ?? 0;
             $kmCgAppId = $currentShop['kmCgAppId'] ?? '';