diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index f7ccee5f9bf..f1748c973ed 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -298,7 +298,7 @@ else if ($_GET["action"] == "edit") { - print_titre($langs->trans("Bill").' : '.$fac->ref); + print_titre($langs->trans("Bill").': '.$fac->ref); print '
'; print ''; @@ -403,7 +403,7 @@ else $h=0; $head[$h][0] = "fiche.php?facid=".$fac->id; - $head[$h][1] = $langs->trans("Bill").' : '.$fac->ref; + $head[$h][1] = $langs->trans("Bill").': '.$fac->ref; $hselected = $h; $h++; @@ -555,18 +555,6 @@ else print "
\n"; - if ($fac->statut == 0 && $user->societe_id == 0) - { - if ($_GET["action"] != "edit") - { - print ''.$langs->trans("Delete").''; - } - } - elseif ($fac->statut == 1 && $fac->paye == 0 && $user->societe_id == 0) - { - print ''.$langs->trans("DoPaiement").''; - } - if ($fac->statut == 0 && $user->societe_id == 0) { if ($_GET["action"] == "edit") @@ -579,6 +567,11 @@ else } } + if ($fac->statut == 1 && $fac->paye == 0 && $user->societe_id == 0) + { + print ''.$langs->trans("DoPaiement").''; + } + if ($fac->statut == 1 && price($resteapayer) <= 0 && $fac->paye == 0 && $user->societe_id == 0) { print "id&action=payed\">".$langs->trans('ClassifyPayed').""; @@ -597,6 +590,14 @@ else } } + if ($fac->statut == 0 && $user->societe_id == 0) + { + if ($_GET["action"] != "edit") + { + print ''.$langs->trans("Delete").''; + } + } + print "
"; } diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 8980eb4f983..19cf73b51cf 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -33,6 +33,9 @@ require("./pre.inc.php"); require("./paiementfourn.class.php"); +$langs->load("bills"); + + $facid=isset($_GET["facid"])?$_GET["facid"]:$_POST["facid"]; $action=isset($_GET["action"])?$_GET["action"]:$_POST["action"]; @@ -160,9 +163,9 @@ if ($action == 'create') print ""; print ''; - print "Numéro :
N° du chèque ou du virement\n"; + print "".$langs->trans("Number").":
N° du chèque ou du virement\n"; - print "Compte à débiter :\n"; $sql = "SELECT rowid, label FROM ".MAIN_DB_PREFIX."bank_account ORDER BY rowid"; $result = $db->query($sql); if ($result) diff --git a/htdocs/langs/en_US/bills.lang b/htdocs/langs/en_US/bills.lang index be8680c2920..4ce84eeec34 100644 --- a/htdocs/langs/en_US/bills.lang +++ b/htdocs/langs/en_US/bills.lang @@ -20,6 +20,7 @@ SearchABill=Search a bill Send=Send SendRemind=Send reminder DoPaiement=Do payment +DoPayment=Do payment BuildPDF=Build PDF RebuildPDF=Rebuild PDF VAT=VAT diff --git a/htdocs/langs/fr_FR/bills.lang b/htdocs/langs/fr_FR/bills.lang index f8b04454655..da2ec08d040 100644 --- a/htdocs/langs/fr_FR/bills.lang +++ b/htdocs/langs/fr_FR/bills.lang @@ -20,6 +20,7 @@ SearchABill=Rechercher une facture Send=Envoyer SendRemind=Envoyer rappel DoPaiement=Émettre paiement +DoPayment=Émettre paiement BuildPDF=Générer le PDF RebuildPDF=Regénérer le PDF VAT=TVA