projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e771cab
)
0004641: items->transactions should not show QOH for service items. @Braathwaate...
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 2 Oct 2018 08:04:32 +0000
(10:04 +0200)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 2 Oct 2018 08:04:32 +0000
(10:04 +0200)
inventory/manage/items.php
patch
|
blob
|
history
diff --git
a/inventory/manage/items.php
b/inventory/manage/items.php
index 06f27ea75fc98849f3e78626b70f3a14bf2de473..d3af29ea44dda68bdbe0c6f613085e781a245ff5 100644
(file)
--- a/
inventory/manage/items.php
+++ b/
inventory/manage/items.php
@@
-602,7
+602,8
@@
$tabs = (get_post('fixed_asset'))
'standard_cost' => array(_('Standard &Costs'), (user_check_access('SA_STANDARDCOST') ? $stock_id : null)),
'reorder_level' => array(_('&Reorder Levels'), (is_inventory_item($stock_id) &&
user_check_access('SA_REORDER') ? $stock_id : null)),
'standard_cost' => array(_('Standard &Costs'), (user_check_access('SA_STANDARDCOST') ? $stock_id : null)),
'reorder_level' => array(_('&Reorder Levels'), (is_inventory_item($stock_id) &&
user_check_access('SA_REORDER') ? $stock_id : null)),
- 'movement' => array(_('&Transactions'), (user_check_access('SA_ITEMSTRANSVIEW') ? $stock_id : null)),
+ 'movement' => array(_('&Transactions'), (user_check_access('SA_ITEMSTRANSVIEW') && is_inventory_item($stock_id) ?
+ $stock_id : null)),
'status' => array(_('&Status'), (user_check_access('SA_ITEMSSTATVIEW') ? $stock_id : null)),
);
'status' => array(_('&Status'), (user_check_access('SA_ITEMSSTATVIEW') ? $stock_id : null)),
);
@@
-630,14
+631,14
@@
tabbed_content_start('tabs', $tabs);
break;
case 'reorder_level':
if (!is_inventory_item($stock_id))
break;
case 'reorder_level':
if (!is_inventory_item($stock_id))
- {
break;
break;
- }
$_GET['page_level'] = 1;
$_GET['stock_id'] = $stock_id;
include_once($path_to_root."/inventory/reorder_level.php");
break;
case 'movement':
$_GET['page_level'] = 1;
$_GET['stock_id'] = $stock_id;
include_once($path_to_root."/inventory/reorder_level.php");
break;
case 'movement':
+ if (!is_inventory_item($stock_id))
+ break;
$_GET['stock_id'] = $stock_id;
include_once($path_to_root."/inventory/inquiry/stock_movements.php");
break;
$_GET['stock_id'] = $stock_id;
include_once($path_to_root."/inventory/inquiry/stock_movements.php");
break;