From d7a14a15b3519f4d21ecfadba688dbce87430944 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 6 Sep 2013 09:26:23 +0200 Subject: [PATCH] Fix: Bad link --- htdocs/fourn/facture/fiche.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 4772d23d208..2bb1820693e 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -460,7 +460,7 @@ elseif ($action == 'add' && $user->rights->fournisseur->facture->creer) else { $db->commit(); - + if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) { $result=supplier_invoice_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref); if ($result <= 0) @@ -469,7 +469,7 @@ elseif ($action == 'add' && $user->rights->fournisseur->facture->creer) exit; } } - + header("Location: ".$_SERVER['PHP_SELF']."?id=".$id); exit; } @@ -1213,7 +1213,7 @@ if ($action == 'create') print ''.$langs->trans('DateMaxPayment').''; $form->select_date($datedue,'ech','','','',"add",1,1); print ''; - + // Payment term print ''.$langs->trans('PaymentConditionsShort').''; $form->select_conditions_paiements(isset($_POST['cond_reglement_id'])?$_POST['cond_reglement_id']:$cond_reglement_id,'cond_reglement_id'); @@ -1656,7 +1656,7 @@ else } print ""; print ''; - + // Mode of payment $langs->load('bills'); $form = new Form($db); @@ -1683,7 +1683,7 @@ else print ''.$langs->trans('AmountHT').''.price($object->total_ht,1,$langs,0,-1,-1,$conf->currency).' '; print ''.$langs->trans('AmountVAT').''.price($object->total_tva,1,$langs,0,-1,-1,$conf->currency).''; - if (! empty($conf->global->MAIN_FEATURES_LEVEL)) + if (! empty($conf->global->MAIN_FEATURES_LEVEL)) { if (GETPOST('calculationrule')) $calculationrule=GETPOST('calculationrule','alpha'); else $calculationrule=(empty($conf->global->MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND)?'totalofround':'roundoftotal'); @@ -2146,7 +2146,7 @@ else // Make payments if ($action != 'edit' && $object->statut == 1 && $object->paye == 0 && $user->societe_id == 0) { - print ''.$langs->trans('DoPayment').''; + print ''.$langs->trans('DoPayment').''; // must use facid because id is for payment id not invoice } // Classify paid