Kosmeticka uprava po novinkach
[mirrors/SokoMan.git] / index.php
index c944d1a0866f196b16d4914f8ba414cf3db898c7..b90738f1ff2884e1d79c671e3229ce5ba29ec1c8 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -267,7 +267,7 @@ EOF;
                if($count) $assistants[$item] = "assistant/$item";
        }
 
-       $tables=array('item','model','category','producer','vendor','room','status','location');
+       $tables=array('item','barcode','model','category','producer','vendor','room','status','location');
 
        foreach($tables as $table) {
                $listable[$table] = $table;
@@ -364,6 +364,11 @@ EOF;
                                'barcode_name' => array(array('store','assistant/%d?barcode=%v')),
                                'model_name' => array(array('google','http://google.com/search?q=%v')) //TODO: add manufacturer to google query
                        ),
+                       'barcode' => array(
+                               'model_id' => array(array('model',$where_url)),
+                               'barcode_id' => array(array('item',$where_url),array('edit','barcode/%v/edit/')),
+                               'barcode_name' => array(array('store','assistant/%d?barcode=%v')),
+                       ),
                        'item' => array(
                                'item_serial' => array(array('dispose','assistant/%d?serial=%v','in_stock'),array('sell','assistant/%d?serial=%v','in_stock')),
                                'item_id' => array(array('edit','item/%v/edit/'))
This page took 0.095967 seconds and 4 git commands to generate.