diff --git a/html/admin/sql/patch/upgrade27.sql b/html/admin/sql/patch/upgrade27.sql index 1745a8995..0f38ef9f5 100644 --- a/html/admin/sql/patch/upgrade27.sql +++ b/html/admin/sql/patch/upgrade27.sql @@ -1,6 +1,8 @@ begin; insert into format_csv_banque values ('Dexia','dexia_be.inc.php'); -alter table stock_goods alter sg_quantity type numeric(8,4); +alter table stock_goods alter sg_quantity type numeric(8,4); +alter table stock_goods add sg_comment varchar(80); +alter table stock_goods add sg_exercice varchar(4); update version set val=28; commit; \ No newline at end of file diff --git a/html/compta.php b/html/compta.php index 2c702a654..71985659d 100644 --- a/html/compta.php +++ b/html/compta.php @@ -56,6 +56,9 @@ if ( $action == 'fiche') { require_once('fiche.inc.php'); } +if ( $action == 'stock') { + require_once('stock.inc.php'); +} html_page_stop(); ?> diff --git a/include/stock.inc.php b/include/stock.inc.php index 8fd1c5338..2ea325b6f 100644 --- a/include/stock.inc.php +++ b/include/stock.inc.php @@ -57,37 +57,61 @@ if ( $User->admin == 0 ) { } +$href=basename($_SERVER['PHP_SELF']); +if ($href=='compta.php') +{ + //Show the top menu + include_once ("user_menu.php"); + + // echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); + + // Show Menu Left + $left_menu=ShowMenuAdvanced("stock.php"); + //echo '