|
|
@@ -71,8 +71,14 @@ class LsCustomController extends Controller
|
|
|
}
|
|
|
$newBalance = bcsub($balance, $debtAmount, 2);
|
|
|
$c->balance = $newBalance;
|
|
|
+ $c->debtAmount = 0;
|
|
|
+ $h->isDebt =0;
|
|
|
+ $h->debtNum = 0;
|
|
|
$c->save();
|
|
|
$h->balance = $newBalance;
|
|
|
+ $h->debtAmount = 0;
|
|
|
+ $h->debt =1;
|
|
|
+ $h->debtNum = 0;
|
|
|
$h->save();
|
|
|
|
|
|
$hdName = $h->name ?? '';
|
|
|
@@ -103,7 +109,7 @@ class LsCustomController extends Controller
|
|
|
|
|
|
|
|
|
}else{
|
|
|
- echo "shopId:".$shopId." | ".$customName . " customId:" . $customId . " hdId:" . $hdId . " 没有欠款 ok ok \n";
|
|
|
+ //echo "shopId:".$shopId." | ".$customName . " customId:" . $customId . " hdId:" . $hdId . " 没有欠款 ok ok \n";
|
|
|
}
|
|
|
}
|
|
|
}
|