stock settings

This commit is contained in:
Shohrat 2023-12-06 12:29:32 +05:00
parent c656a5b6c8
commit 75aa96b61d
4 changed files with 7 additions and 0 deletions

View File

@ -79,6 +79,8 @@ class OrderItem extends ComponentBase
$notCompleteCalc = '<font style="color: darkgreen;"> +'.number_format($calc, 2).' artyk</font>';
}elseif($calc < 0){
$notCompleteCalc = '<font style="color: darkred;">'.number_format($calc, 2).' ýetenok</font>';
}elseif($calc == 0){
$notCompleteCalc = '<font style="color: darkgreen;"> Ýetmezçilik ýok</font>';
}
}else{
@ -119,6 +121,8 @@ class OrderItem extends ComponentBase
$notCompleteCalc = '<font style="color: darkgreen;"> +'.number_format($calc, 2).' artyk</font>';
}elseif($calc < 0){
$notCompleteCalc = '<font style="color: darkred;">'.number_format($calc, 2).' ýetenok</font>';
}elseif($calc == 0){
$notCompleteCalc = '<font style="color: darkgreen;"> Ýetmezçilik ýok</font>';
}

View File

@ -13,6 +13,7 @@ function onStart(){
//->where("status_accountant", "accept")
//->where("status_director", "accept")
->addSelect(DB::raw("SUM(amount) as quantity"))
->having('quantity', '>', 0)
->groupBy('romanah_gokbakja_bag_actions.product_id')
->orderBy('id', 'DESC')
->get();

View File

@ -15,6 +15,7 @@ function onStart(){
//->where("status_accountant", "accept")
//->where("status_director", "accept")
->addSelect(DB::raw("SUM(amount) as quantity"))
->having('quantity', '>', 0)
->groupBy('romanah_gokbakja_rulon_action.product_id')
->orderBy('id', 'DESC')
->get();

View File

@ -12,6 +12,7 @@ function onStart(){
//->where("status_accountant", "accept")
//->where("status_director", "accept")
->addSelect(DB::raw("SUM(amount) as quantity"))
->having('quantity', '>', 0)
->groupBy('romanah_gokbakja_action.product_id')
->get();
// dd($this["actions"]);