From 90823bcab28b3e854fdcde5e9e0af8a3ec1c8026 Mon Sep 17 00:00:00 2001 From: marc_ocebo Date: Wed, 5 Oct 2005 13:04:30 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20affiche=20le=20num=E9ro=20de=20facture?= =?UTF-8?q?=20lors=20de=20la=20demande=20de=20validation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/facture/fiche.php | 197 +++++++++++++++++---------------- 1 file changed, 100 insertions(+), 97 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index e694baa3d00..3b38f584083 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -231,116 +231,119 @@ if ($_GET['action'] == 'add_ligne') * */ -if ($_GET["action"] == 'create' or $_GET["action"] == 'copy') +if ($_GET['action'] == 'create' or $_GET['action'] == 'copy') { + llxHeader(); - llxHeader(); + print_titre($langs->trans('NewBill')); - print_titre($langs->trans("NewBill")); + if ($mesg) { print $mesg.'
'; } - if ($mesg) { print "$mesg
"; } + if ($_GET['action'] == 'copy') + { + $fac_ori = new FactureFournisseur($db); + $fac_ori->fetch($_GET['facid']); + } - if ($_GET["action"] == 'copy') - { - $fac_ori = new FactureFournisseur($db); - $fac_ori->fetch($_GET["facid"]); - } + print '
'; + print ''; + print ''; + print ''; - print ''; - print ''; - print '
'.$langs->trans('Company').'
'; - print ''; + print ''; +*/ + print ''; + print ''; - if ($_GET["socid"] == $obj->idp) - { - print '" selected="true">'.$obj->nom.''; - } - else - { - print '">'.$obj->nom.''; - } - $i++; - } - } - print ''; - print ''; + print ''; - print ''; + print ''; + if ($_GET['action'] == 'copy') + { + print ''; + } + else + { + print ''; + } + print ''; - print ''; - if ($_GET["action"] == 'copy') - { - print ''; - } - else - { - print ''; - } - print ''; + print ''; - print ''; + print '
'.$langs->trans("Company").''; + $html->select_societes(empty($_GET['socid'])?'':$_GET['socid'],'socidp','s.fournisseur = 1'); +/* + print ''.$langs->trans('Comments').'
'.$langs->trans("Comments").'
'.$langs->trans('Ref').'
'.$langs->trans("Ref").'
'.$langs->trans('Label').'
'.$langs->trans('Label').'
'.$langs->trans('Date').''; + $html->select_date(); + print '
'.$langs->trans("Label").'
'.$langs->trans("Label").'
'.$langs->trans("Date").''; - $html->select_date(); - print '
'.$langs->trans('DateEcheance').''; + $html->select_date('','ech'); + print '
'.$langs->trans("DateEcheance").''; - $html->select_date('','ech'); - print '

'; - print "
"; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; - print '
 '.$langs->trans('Label').''.$langs->trans('PriceUHT').''.$langs->trans('Qty').''.$langs->trans('VATRate').''.$langs->trans('PriceUTTC').'
'; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - - for ($i = 1 ; $i < 9 ; $i++) - { - if ($_GET["action"] == 'copy') - { - $value_label = $fac_ori->lignes[$i-1][0]; - $value_pu = $fac_ori->lignes[$i-1][1]; - $value_qty = $fac_ori->lignes[$i-1][3]; - } - else - { - $value_qty = "1"; - } - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - } - - print "
 '.$langs->trans("Label").''.$langs->trans("PriceUHT").''.$langs->trans("Qty").''.$langs->trans("VATRate").''.$langs->trans("PriceUTTC").'
'.$i.''; - $html->select_tva("tauxtva".$i); - print '
"; - print '

'; - print "
"; + for ($i = 1 ; $i < 9 ; $i++) + { + if ($_GET['action'] == 'copy') + { + $value_label = $fac_ori->lignes[$i-1][0]; + $value_pu = $fac_ori->lignes[$i-1][1]; + $value_qty = $fac_ori->lignes[$i-1][3]; + } + else + { + $value_qty = '1'; + } + print ''.$i.''; + print ''; + print ''; + print ''; + print ''; + $html->select_tva('tauxtva'.$i); + print ''; + print ''; + } + print ''; + print '

'; + print ''; } else { @@ -487,13 +490,13 @@ else * Confirmation de la validation * */ - if ($_GET["action"] == 'valid') + if ($_GET['action'] == 'valid') { - $html->form_confirm("fiche.php?facid=$fac->id",$langs->trans("ValidateBill"),$langs->trans("ConfirmValidateBill"),"confirm_valid"); + $html->form_confirm('fiche.php?facid='.$fac->id, $langs->trans('ValidateBill'), $langs->trans('ConfirmValidateBill', $fac->ref), 'confirm_valid'); print '
'; } - print ""; + print '
'; print '
'; /*