@@ -160,7 +160,7 @@ if ($result) {
print '</td>';
print '</tr>';
- $var = True;
+ $var = true;
while ( $i < min($num, $limit) ) {
$obj = $db->fetch_object($resql);
@@ -99,7 +99,7 @@ print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'
print '<input type="hidden" name="action" value="update">';
print '<table class="noborder" width="100%">';
-$var = True;
+$var = true;
print '<tr class="liste_titre">';
print '<td colspan="2">' . $langs->trans("Modelcsv") . '</td>';
@@ -135,7 +135,7 @@ if ($result) {
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">' . "\n";
print '<input type="hidden" name="action" value="import">';
while ( $i < min($num_lines, $limit) ) {
$objp = $db->fetch_object($result);
$var = ! $var;
@@ -191,7 +191,7 @@ print "<br>\n";
* Define Chart of accounts
*/
print '<td colspan="3">';
@@ -211,7 +211,7 @@ $sql .= " AND fk_pays = " . $mysoc->country_id;
dol_syslog('accountancy/admin/index.php:: $sql=' . $sql);
$resql = $db->query($sql);
if ($resql) {
$num = $db->num_rows($resql);
@@ -89,7 +89,7 @@ if ($resql) {
print '<td align="left">' . $langs->trans("Accountancy_code_sell") . '</td>';
print '<td align="left">' . $langs->trans("Accountancy_code_sell_suggest") . '</td>';
while ( $i < min($num, 250) ) {
@@ -146,7 +146,7 @@ if ($resql)
print "</tr>\n";
- $var=True;
+ $var=true;
while ($i < min($num,$conf->liste_limit))
{
@@ -187,7 +187,7 @@ if (! empty($conf->commande->enabled))
if ($num)
$i = 0;
while ($i < $num)
$var=!$var;
@@ -238,7 +238,7 @@ if ($resql)
@@ -308,7 +308,7 @@ if (! empty($conf->commande->enabled))
@@ -379,7 +379,7 @@ if (! empty($conf->commande->enabled))
@@ -622,7 +622,7 @@ if (($action != 'create' && $action != 'add') || !$error)
print '</form>';
print '<form name="orders2invoice" action="orderstoinvoice.php" method="GET">';
$generic_commande = new Commande($db);
@@ -177,7 +177,7 @@ if ($resql)
@@ -228,7 +228,7 @@ if ($action == 'create')
if (empty($conf->global->PRODUIT_MULTIPRICES)) print '<td align="right">'.$langs->trans("CurrentProductPrice").'</td>';
}
@@ -447,7 +447,7 @@ else
$num = count($object->lines);
@@ -572,7 +572,7 @@ else
if ($num > 0)
while ($i < min($num,$limit))
$objp = $db->fetch_object($resql);
@@ -600,7 +600,7 @@ if ($resql)
$total_ht=0;
$total_tva=0;
$total_ttc=0;
@@ -333,7 +333,7 @@ if ($resql)
@@ -491,7 +491,7 @@ if ($object->id > 0)
print '<td align="center">'.$langs->trans("WithdrawalReceipt").'</td>';
print '<td align="center">'.$langs->trans("User").'</td><td> </td><td> </td>';
if ($result_sql)
@@ -494,7 +494,7 @@ if (! empty($conf->don->enabled) && $user->rights->societe->lire)
$total_ttc = $totalam = $total = 0;
$var=true;
@@ -908,7 +908,7 @@ if ($resql)
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("TasksToDo").'</td>';
while ($i < $db->num_rows($resql))
@@ -509,7 +509,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print '<td align="right"> </td>';
$total=0;
$totalrecu=0;
$totalrecucreditnote=0;
@@ -687,7 +687,7 @@ if (! GETPOST('action'))
print_barre_liste($langs->trans('Payments'), $page, $_SERVER["PHP_SELF"],'',$sortfield,$sortorder,'',$num);
@@ -253,7 +253,7 @@ if ($_GET["action"] == 'create')
print '<td align="center">'.$langs->trans("Amount").'</td>';