diff --git a/plugins/romanah/gokbakja/components/OrderItem.php b/plugins/romanah/gokbakja/components/OrderItem.php
index 4cb4891..dbfcfd6 100644
--- a/plugins/romanah/gokbakja/components/OrderItem.php
+++ b/plugins/romanah/gokbakja/components/OrderItem.php
@@ -79,6 +79,8 @@ class OrderItem extends ComponentBase
$notCompleteCalc = ' +'.number_format($calc, 2).' artyk';
}elseif($calc < 0){
$notCompleteCalc = ''.number_format($calc, 2).' ýetenok';
+ }elseif($calc == 0){
+ $notCompleteCalc = ' Ýetmezçilik ýok';
}
}else{
@@ -119,6 +121,8 @@ class OrderItem extends ComponentBase
$notCompleteCalc = ' +'.number_format($calc, 2).' artyk';
}elseif($calc < 0){
$notCompleteCalc = ''.number_format($calc, 2).' ýetenok';
+ }elseif($calc == 0){
+ $notCompleteCalc = ' Ýetmezçilik ýok';
}
diff --git a/themes/gokbakja/pages/produced/bagstock.htm b/themes/gokbakja/pages/produced/bagstock.htm
index 05c28f7..7872930 100644
--- a/themes/gokbakja/pages/produced/bagstock.htm
+++ b/themes/gokbakja/pages/produced/bagstock.htm
@@ -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();
diff --git a/themes/gokbakja/pages/produced/rulonstock.htm b/themes/gokbakja/pages/produced/rulonstock.htm
index 324c0ce..6cf58ef 100644
--- a/themes/gokbakja/pages/produced/rulonstock.htm
+++ b/themes/gokbakja/pages/produced/rulonstock.htm
@@ -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();
diff --git a/themes/gokbakja/pages/product/stock.htm b/themes/gokbakja/pages/product/stock.htm
index ba68c3e..50e43c4 100644
--- a/themes/gokbakja/pages/product/stock.htm
+++ b/themes/gokbakja/pages/product/stock.htm
@@ -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"]);