|
@@ -795,9 +795,11 @@ class Specialstock extends Start_Controller {
|
|
{
|
|
{
|
|
$where .= " and purchase = '$purchase'";
|
|
$where .= " and purchase = '$purchase'";
|
|
}
|
|
}
|
|
- if($state)
|
|
|
|
|
|
+ if(isset($state))
|
|
{
|
|
{
|
|
- $where .= " and state = '$state'";
|
|
|
|
|
|
+ if($state >-1){
|
|
|
|
+ $where .= " and state = '$state'";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if($ktime && $jtime)
|
|
if($ktime && $jtime)
|
|
{
|
|
{
|
|
@@ -982,9 +984,7 @@ class Specialstock extends Start_Controller {
|
|
}
|
|
}
|
|
if($state)
|
|
if($state)
|
|
{
|
|
{
|
|
- if($state >-1){
|
|
|
|
- $where .= " and state = '$state'";
|
|
|
|
- }
|
|
|
|
|
|
+ $where .= " and state = '$state'";
|
|
}
|
|
}
|
|
if($ktime && $jtime)
|
|
if($ktime && $jtime)
|
|
{
|
|
{
|