diff --git a/htdocs/cashdesk/facturation.php b/htdocs/cashdesk/facturation.php index 4d8f0264e5f..4d442c0dbd3 100644 --- a/htdocs/cashdesk/facturation.php +++ b/htdocs/cashdesk/facturation.php @@ -25,6 +25,15 @@ * \brief Include to show main page for cashdesk module */ + + + +/* + * View + */ + +$form=new Form($db); + // Get list of articles (in warehouse '$conf_fkentrepot' if defined and stock module enabled) if ( GETPOST('filtre') ) { diff --git a/htdocs/cashdesk/tpl/facturation1.tpl.php b/htdocs/cashdesk/tpl/facturation1.tpl.php index bb638918dd5..d8e4049f922 100644 --- a/htdocs/cashdesk/tpl/facturation1.tpl.php +++ b/htdocs/cashdesk/tpl/facturation1.tpl.php @@ -22,6 +22,8 @@ $langs->load("main"); $langs->load("bills"); $langs->load("cashdesk"); +// Object $form must de defined + ?> diff --git a/htdocs/cashdesk/tpl/validation1.tpl.php b/htdocs/cashdesk/tpl/validation1.tpl.php index 5b02cb597d7..15762ecf494 100644 --- a/htdocs/cashdesk/tpl/validation1.tpl.php +++ b/htdocs/cashdesk/tpl/validation1.tpl.php @@ -18,6 +18,8 @@ $langs->load("main"); +// Object $form must de defined + ?>
trans("Summary"); ?> diff --git a/htdocs/cashdesk/validation.php b/htdocs/cashdesk/validation.php index fc4172f3d2d..d9cd286691c 100644 --- a/htdocs/cashdesk/validation.php +++ b/htdocs/cashdesk/validation.php @@ -21,6 +21,8 @@ * \brief validation.php */ +$form=new Form($db); + // Affichage des templates require ('tpl/validation1.tpl.php');