Trad: Traduction "Emettre paiement"
This commit is contained in:
parent
20cec3ca87
commit
1f244ecb14
@ -555,18 +555,6 @@ else
|
|||||||
|
|
||||||
print "<div class=\"tabsAction\">\n";
|
print "<div class=\"tabsAction\">\n";
|
||||||
|
|
||||||
if ($fac->statut == 0 && $user->societe_id == 0)
|
|
||||||
{
|
|
||||||
if ($_GET["action"] != "edit")
|
|
||||||
{
|
|
||||||
print '<a class="tabAction" href="index.php?facid='.$fac->id.'&action=delete">'.$langs->trans("Delete").'</a>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($fac->statut == 1 && $fac->paye == 0 && $user->societe_id == 0)
|
|
||||||
{
|
|
||||||
print '<a class="tabAction" href="paiement.php?facid='.$fac->id.'&action=create">'.$langs->trans("DoPaiement").'</a>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($fac->statut == 0 && $user->societe_id == 0)
|
if ($fac->statut == 0 && $user->societe_id == 0)
|
||||||
{
|
{
|
||||||
if ($_GET["action"] == "edit")
|
if ($_GET["action"] == "edit")
|
||||||
@ -579,6 +567,11 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($fac->statut == 1 && $fac->paye == 0 && $user->societe_id == 0)
|
||||||
|
{
|
||||||
|
print '<a class="tabAction" href="paiement.php?facid='.$fac->id.'&action=create">'.$langs->trans("DoPaiement").'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
if ($fac->statut == 1 && price($resteapayer) <= 0 && $fac->paye == 0 && $user->societe_id == 0)
|
if ($fac->statut == 1 && price($resteapayer) <= 0 && $fac->paye == 0 && $user->societe_id == 0)
|
||||||
{
|
{
|
||||||
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=payed\">".$langs->trans('ClassifyPayed')."</a>";
|
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=payed\">".$langs->trans('ClassifyPayed')."</a>";
|
||||||
@ -597,6 +590,14 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($fac->statut == 0 && $user->societe_id == 0)
|
||||||
|
{
|
||||||
|
if ($_GET["action"] != "edit")
|
||||||
|
{
|
||||||
|
print '<a class="butDelete" href="index.php?facid='.$fac->id.'&action=delete">'.$langs->trans("Delete").'</a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,6 +33,9 @@
|
|||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require("./paiementfourn.class.php");
|
require("./paiementfourn.class.php");
|
||||||
|
|
||||||
|
$langs->load("bills");
|
||||||
|
|
||||||
|
|
||||||
$facid=isset($_GET["facid"])?$_GET["facid"]:$_POST["facid"];
|
$facid=isset($_GET["facid"])?$_GET["facid"]:$_POST["facid"];
|
||||||
$action=isset($_GET["action"])?$_GET["action"]:$_POST["action"];
|
$action=isset($_GET["action"])?$_GET["action"]:$_POST["action"];
|
||||||
|
|
||||||
@ -160,9 +163,9 @@ if ($action == 'create')
|
|||||||
print "<td rowspan=\"4\">";
|
print "<td rowspan=\"4\">";
|
||||||
print '<textarea name="comment" wrap="soft" cols="40" rows="10"></textarea></td></tr>';
|
print '<textarea name="comment" wrap="soft" cols="40" rows="10"></textarea></td></tr>';
|
||||||
|
|
||||||
print "<tr><td>Numéro :</td><td><input name=\"num_paiement\" type=\"text\"><br><em>N° du chèque ou du virement</em></td></tr>\n";
|
print "<tr><td>".$langs->trans("Number").":</td><td><input name=\"num_paiement\" type=\"text\"><br><em>N° du chèque ou du virement</em></td></tr>\n";
|
||||||
|
|
||||||
print "<tr><td>Compte à débiter :</td><td><select name=\"accountid\"><option value=\"\">-</option>\n";
|
print "<tr><td>".$langs->trans("Account").":</td><td><select name=\"accountid\"><option value=\"\">-</option>\n";
|
||||||
$sql = "SELECT rowid, label FROM ".MAIN_DB_PREFIX."bank_account ORDER BY rowid";
|
$sql = "SELECT rowid, label FROM ".MAIN_DB_PREFIX."bank_account ORDER BY rowid";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
@ -20,6 +20,7 @@ SearchABill=Search a bill
|
|||||||
Send=Send
|
Send=Send
|
||||||
SendRemind=Send reminder
|
SendRemind=Send reminder
|
||||||
DoPaiement=Do payment
|
DoPaiement=Do payment
|
||||||
|
DoPayment=Do payment
|
||||||
BuildPDF=Build PDF
|
BuildPDF=Build PDF
|
||||||
RebuildPDF=Rebuild PDF
|
RebuildPDF=Rebuild PDF
|
||||||
VAT=VAT
|
VAT=VAT
|
||||||
|
|||||||
@ -20,6 +20,7 @@ SearchABill=Rechercher une facture
|
|||||||
Send=Envoyer
|
Send=Envoyer
|
||||||
SendRemind=Envoyer rappel
|
SendRemind=Envoyer rappel
|
||||||
DoPaiement=Émettre paiement
|
DoPaiement=Émettre paiement
|
||||||
|
DoPayment=Émettre paiement
|
||||||
BuildPDF=Générer le PDF
|
BuildPDF=Générer le PDF
|
||||||
RebuildPDF=Regénérer le PDF
|
RebuildPDF=Regénérer le PDF
|
||||||
VAT=TVA
|
VAT=TVA
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user