Fix printing following the rules

This commit is contained in:
Juanjo Menent 2016-06-04 15:51:28 +02:00
parent c59c86e648
commit 8f617b196a
16 changed files with 18 additions and 18 deletions

View File

@ -138,7 +138,7 @@ if ($action == 'display' || $action == 'delete') {
if(!empty($obj)){
foreach ( $obj as $cpt ) {
$var = ! $var;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td>' . length_accountg($cpt->account_number) . '</td>';
print '<td>' . $cpt->label . '</td>';
print $form->formconfirm($_SERVER["PHP_SELF"]."?account_category=$cat_id&cptid=".$cpt->rowid, $langs->trans("DeleteCptCategory"), $langs->trans("ConfirmDeleteCptCategory"), "delete", '', 0, "action-delete".$j);

View File

@ -138,7 +138,7 @@ if ($result) {
while ( $i < min($num_lines, $limit) ) {
$objp = $db->fetch_object($result);
$var = ! $var;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td align="left">';
print $objp->accounting;

View File

@ -328,10 +328,10 @@ if ($result) {
$product_static = new Product($db);
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print "</tr>";
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
// Ref produit as link
$product_static->ref = $obj->ref;
$product_static->id = $obj->rowid;

View File

@ -223,7 +223,7 @@ else {
if(empty($description)){
$link = '<a href="../admin/card.php?action=create&compte=' . length_accountg($line->numero_compte) . '">' . img_edit_add() .'</a>';
}
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td>' . length_accountg($line->numero_compte) . '</td>';
print '<td>' . $description . '</td>';

View File

@ -346,7 +346,7 @@ if ($action == 'create') {
foreach ( $book->linesmvt as $line ) {
$var = ! $var;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
$total_debit += $line->debit;
$total_credit += $line->credit;
@ -400,7 +400,7 @@ if ($action == 'create') {
if ($action == "" || $action == 'add') {
$var = ! $var;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td>';
print $formventilation->select_account($account_number, 'account_number', 0, array (), 1, 1, '');
print '</td>';

View File

@ -368,7 +368,7 @@ foreach ( $object->lines as $line ) {
$total_debit += $line->debit;
$total_credit += $line->credit;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td><a href="./card.php?piece_num=' . $line->piece_num . '">' . $line->piece_num . '</a></td>';
print '<td align="center">' . dol_print_date($line->doc_date, 'day') . '</td>';

View File

@ -269,7 +269,7 @@ $var = True;
foreach ( $object->lines as $line ) {
$var = ! $var;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td>' . $line->piece_num . '</td>' . "\n";
print '<td>' . $line->doc_type . '</td>' . "\n";
print '<td>' . dol_print_date($line->doc_date) . '</td>';

View File

@ -288,7 +288,7 @@ if ($result) {
$var = ! $var;
$codecompta = length_accountg($objp->account_number) . ' - ' . $objp->label_compte;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
// Ref Invoice
$facture_static->ref = $objp->facnumber;

View File

@ -302,7 +302,7 @@ if ($result) {
if ($objp->code_sell_l != $objp->code_sell_p)
$code_sell_p_l_differ = 'color:red';
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
// Ref Invoice
$facture_static->ref = $objp->facnumber;

View File

@ -127,7 +127,7 @@ if(!empty($cats))
$resultN = $AccCat->getResult($cpt['account_number'], 0, $year_current, $cpt['dc']);
$sommes[$code]['NP'] += $resultNP;
$sommes[$code]['N'] += $resultN;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td>' . $cpt['account_number'] . '</td>';
print '<td>' . $cpt['name_cpt'] . '</td>';
print '<td>' . price($resultNP) . '</td>';

View File

@ -236,7 +236,7 @@ if ($result) {
$var = ! $var;
$codeCompta = length_accountg($objp->account_number) . ' - ' . $objp->label;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
// Ref Invoice
$facturefournisseur_static->ref = $objp->facnumber;

View File

@ -314,7 +314,7 @@ if ($result) {
if ($objp->code_buy_l != $objp->code_buy_p)
$code_buy_p_l_differ = 'color:red';
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
// Ref Invoice
$facturefourn_static->ref = $objp->ref;

View File

@ -165,7 +165,7 @@ else:
while($i<$num):
$objp = $db->fetch_object($resql);
$var=!$var;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td>'.$objp->ref.'</td>';
print '<td>'.dol_print_date($db->jdate($objp->date_valid),'day').'</td>';
print '<td><a href="'.DOL_URL_ROOT.'/user/card.php?id='.$objp->fk_user_author.'">'.img_object($langs->trans("ShowUser"),"user").' '.$objp->declarant_NDF.'</a></td>';

View File

@ -1315,7 +1315,7 @@ if ((empty($conf->global->PRODUIT_CUSTOMER_PRICES) || $action=='showlog_default_
{
$objp = $db->fetch_object($result);
$var = ! $var;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
// Date
print "<td>" . dol_print_date($db->jdate($objp->dp), "dayhour") . "</td>";

View File

@ -416,7 +416,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
foreach ( $prodcustprice->lines as $line ) {
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
$staticprod = new Product($db);
$staticprod->fetch($line->fk_product);

View File

@ -207,7 +207,7 @@ if ($resql) {
$var = ! $var;
print "<tr $bc[$var]>";
print '<tr'. $bc[$var].'>';
print '<td>';
$thirdpartystatic->id = $obj->rowid;
$thirdpartystatic->name = $obj->name;