stock settings
This commit is contained in:
parent
c656a5b6c8
commit
75aa96b61d
|
|
@ -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>';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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"]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue