Skip to content

Commit

Permalink
Merge pull request #82 from leon-mbs/dev
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
leon-mbs authored May 7, 2020
2 parents 2fb0cf9 + 690897e commit 47045ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/app/acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public static function getStoreBranchConstraint() {
if (strlen($user->aclbranch) == 0) {
return " (0)";
} //нет доступа ни к одному филиалу
return "select stacl.store_id from stores stacl where branch_id in {$user->aclbranch} ";
return "select stacl.store_id from stores stacl where branch_id in ({$user->aclbranch} ) ";
}

/**
Expand All @@ -345,7 +345,7 @@ public static function getMFBranchConstraint() {
if (strlen($user->aclbranch) == 0) {
return " (0)";
} //нет доступа ни к одному филиалу
return "select stacl.mf_id from mfund stacl where branch_id in {$user->aclbranch} ";
return "select stacl.mf_id from mfund stacl where branch_id in ({$user->aclbranch}) ";
}

/**
Expand All @@ -371,7 +371,7 @@ public static function getEmpBranchConstraint() {
if (strlen($user->aclbranch) == 0) {
return " (0)";
} //нет доступа ни к одному филиалу
return "select stacl.employee_id from employees stacl where branch_id in {$user->aclbranch} ";
return "select stacl.employee_id from employees stacl where branch_id in ({$user->aclbranch}) ";
}

/**
Expand All @@ -397,7 +397,7 @@ public static function getDocBranchConstraint() {
if (strlen($user->aclbranch) == 0) {
return " (0)";
} //нет доступа ни к одному филиалу
return "select stacl.document_id from documents stacl where branch_id in {$user->aclbranch} ";
return "select stacl.document_id from documents stacl where branch_id in ({$user->aclbranch})";
}

/**
Expand Down
1 change: 1 addition & 0 deletions www/app/entity/stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public static function getStock($store_id, $item_id, $price, $snumber = "", $sda
$stock->item_id = $item_id;
$stock->partion = $price;
$stock->snumber = $snumber;
$stock->sdate = null;
if ($sdate > 0) {
$stock->sdate = $sdate;
}
Expand Down

0 comments on commit 47045ac

Please sign in to comment.