Browse Source

mchsrv debt

xiaoyu 2 years ago
parent
commit
a7662ac70a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mchsrv/control/merchant_info.php

+ 1 - 1
mchsrv/control/merchant_info.php

@@ -51,7 +51,7 @@ class merchant_infoControl extends mbMerchantControl
         if(!empty($merchant_debts)) {
             Log::record("merchant-debts-detail {$merchant_debts[$mchid]}", Log::DEBUG);
             $debt_detail = unserialize($merchant_debts[$mchid]);
-            $merchant_info['debt'] = number_format($debt_detail['debt'],2,'.','');
+            $merchant_info['debt'] = -1 * number_format($debt_detail['debt'],2,'.','');
         }
 //        $pub = new message\publisher();
 //        $pub->modify_refill_merchant();