From 8a1e9fe68259ec263c8fb00e8b5f6a6840e5e9fa Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 30 Nov 2003 13:15:46 +0000 Subject: [PATCH] Correct the vat label --- include/user_action_ven.php | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/include/user_action_ven.php b/include/user_action_ven.php index ff421c2b8..b1fecb34c 100644 --- a/include/user_action_ven.php +++ b/include/user_action_ven.php @@ -18,4 +18,45 @@ */ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr /* $Revision$ */ +if ( ! isset ($_GET['action']) ) { + return; +} +$dossier=sprintf("dossier%d",$g_dossier); +$cn=DbConnect($dossier); +$action=$_GET['action']; +if ( $action == 'insert_vente' ) { +// Check privilege + if ( CheckJrn($g_dossier,$g_user,$g_jrn) != 2 ) { + NoAccess(); + exit -1; + } +// Show an empyt form of invoice + include_once("form_input.php"); + $form=FormVente($cn,$g_jrn,'deb'); + echo '
'; + echo $form; + echo '
'; +} +if ( $action == 'voir_vente' ) { +// Show list of sell +// Date - date of payment - Customer - amount + $list=ListSell(); + echo '
'; + echo $list; + echo '
'; +} +if ( $action == 'voir_vente_non_paye' ) { +// Show list of unpaid sell +// Date - date of payment - Customer - amount + $list=ListSell('filtre'); + echo '
'; + echo $list; + echo '
'; +} +if ( $action == 'impress' ) { +// Print list of sell or print the current invoice +} +if ( $action == 'search' ) { +// display a search box +} ?> \ No newline at end of file