shish 1 year ago
parent
commit
2d27a1fb7d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      console/controllers/LsCustomController.php

+ 3 - 2
console/controllers/LsCustomController.php

@@ -72,9 +72,10 @@ class LsCustomController extends Controller
                                 $newBalance = bcsub($balance, $debtAmount, 2);
                                 $c->balance = $newBalance;
                                 $c->debtAmount = 0;
-                                $h->isDebt =0;
-                                $h->debtNum = 0;
+                                $c->isDebt =0;
+                                $c->debtNum = 0;
                                 $c->save();
+
                                 $h->balance = $newBalance;
                                 $h->debtAmount = 0;
                                 $h->debt =1;