This commit is contained in:
Shohrat 2024-01-26 15:06:32 +05:00
parent d6e8b4ddc3
commit 24e9ca8ccd
2 changed files with 15 additions and 14 deletions

View File

@ -57,7 +57,7 @@ return [
'engine' => 'InnoDB',
'host' => 'localhost',
'port' => 3306,
'database' => 'gok_bakja_from_server',
'database' => 'gok_bakja_01_24',
'username' => 'root',
'password' => 'bt110226',
'charset' => 'utf8mb4',

View File

@ -290,10 +290,11 @@ class Order extends ComponentBase
$mustPay = '';
$mustPayCalc = number_format(($orderDatas[$x]->order_all_price - $orderDatas[$x]->all_payments), 2);
$mustPayCalcQQ = ($orderDatas[$x]->order_all_price - $orderDatas[$x]->all_payments);
if($mustPayCalc < 0){
if($mustPayCalcQQ < 0){
$mustPay = 'artykmaç '.abs($mustPayCalc).' $';
}else if($mustPayCalc == 0){
}else if($mustPayCalcQQ == 0){
$mustPay = '';
} else{
$mustPay = $mustPayCalc.' $';