示例#1
0
文件: card.php 项目: Albertopf/prueba
     print '</td>';
     print '<td>';
     print $formventilation->select_auxaccount($line->code_tiers, 'code_tiers', 1);
     print '</td>';
     print '<td><input type="text" size="15" name="label_compte" value="' . $line->label_compte . '"/></td>';
     print '<td align="right"><input type="text" size="6" name="debit" value="' . price($line->debit) . '"/></td>';
     print '<td align="right"><input type="text" size="6" name="credit" value="' . price($line->credit) . '"/></td>';
     print '<td align="right">' . price($line->montant) . '</td>';
     print '<td align="center">' . $line->sens . '</td>';
     print '<td>';
     print '<input type="hidden" name="id" value="' . $line->id . '">' . "\n";
     print '<input type="submit" class="button" name="update" value="' . $langs->trans("Update") . '">';
     print '</td>';
 } else {
     print '<td>' . length_accountg($line->numero_compte) . '</td>';
     print '<td>' . length_accounta($line->code_tiers) . '</td>';
     print '<td>' . $line->label_compte . '</td>';
     print '<td align="right">' . price($line->debit) . '</td>';
     print '<td align="right">' . price($line->credit) . '</td>';
     print '<td align="right">' . price($line->montant) . '</td>';
     print '<td align="center">' . $line->sens . '</td>';
     print '<td align="center">';
     print '<a href="./card.php?action=update&amp;id=' . $line->id . '&amp;piece_num=' . $line->piece_num . '">';
     print img_edit();
     print '</a>&nbsp;';
     print '<a href="./card.php?action=delete&amp;id=' . $line->id . '&amp;piece_num=' . $line->piece_num . '">';
     print img_delete();
     print '</a>';
     print '</td>';
 }
 print "</tr>\n";
示例#2
0
 $invoicestatic = new Facture($db);
 $companystatic = new Client($db);
 foreach ($tabfac as $key => $val) {
     $invoicestatic->id = $key;
     $invoicestatic->ref = $val["ref"];
     $invoicestatic->type = $val["type"];
     $date = dol_print_date($db->jdate($val["date"]), 'day');
     // Third party
     foreach ($tabttc[$key] as $k => $mt) {
         print "<tr " . $bc[$var] . ">";
         print "<td>" . $date . "</td>";
         print "<td>" . $invoicestatic->getNomUrl(1) . "</td>";
         $companystatic->id = $tabcompany[$key]['id'];
         $companystatic->name = $tabcompany[$key]['name'];
         $companystatic->client = $tabcompany[$key]['code_client'];
         print "<td>" . length_accounta($k);
         print "</td><td>" . $langs->trans("ThirdParty");
         print ' (' . $companystatic->getNomUrl(0, 'customer', 16) . ')';
         print "</td><td align='right'>" . ($mt >= 0 ? price($mt) : '') . "</td>";
         print "<td align='right'>" . ($mt < 0 ? price(-$mt) : '') . "</td>";
     }
     print "</tr>";
     // Product / Service
     foreach ($tabht[$key] as $k => $mt) {
         $accountingaccount = new AccountingAccount($db);
         $accountingaccount->fetch(null, $k);
         if ($mt) {
             print "<tr " . $bc[$var] . ">";
             print "<td>" . $date . "</td>";
             print "<td>" . $invoicestatic->getNomUrl(1) . "</td>";
             print "<td>" . length_accountg($k) . "</td>";
示例#3
0
     print "<td>" . $reflabel . "</td>";
     print "<td>" . length_accountg($k) . "</td>";
     print "<td>" . $langs->trans('Bank') . "</td>";
     print "<td>" . $val["type_payment"] . "</td>";
     print "<td align='right'>" . ($mt >= 0 ? price($mt) : '') . "</td>";
     print "<td align='right'>" . ($mt < 0 ? price(-$mt) : '') . "</td>";
     print "</tr>";
 }
 // Third party
 if (is_array($tabtp[$key])) {
     foreach ($tabtp[$key] as $k => $mt) {
         if ($k != 'type') {
             print "<tr " . $bc[$var] . ">";
             print "<td>" . $date . "</td>";
             print "<td>" . $val["soclib"] . "</td>";
             print "<td>" . length_accounta($k) . "</td>";
             print "<td>" . $langs->trans('ThirdParty') . " (" . $val['soclib'] . ")</td>";
             print "<td>" . $val["type_payment"] . "</td>";
             print "<td align='right'>" . ($mt < 0 ? price(-$mt) : '') . "</td>";
             print "<td align='right'>" . ($mt >= 0 ? price($mt) : '') . "</td>";
             print "</tr>";
         }
     }
 } else {
     foreach ($tabbq[$key] as $k => $mt) {
         print "<tr " . $bc[$var] . ">";
         print "<td>" . $date . "</td>";
         print "<td>" . $reflabel . "</td>";
         print "<td>" . length_accountg($conf->global->ACCOUNTING_ACCOUNT_SUSPENSE) . "</td>";
         print "<td>" . $langs->trans('ThirdParty') . "</td>";
         print "<td>&nbsp;</td>";
示例#4
0
            print length_accounta($line->numero_compte) . $sep;
            print length_accountg($line->code_tiers) . $sep;
            print price($line->debit) . $sep;
            print price($line->credit) . $sep;
            /*print $line->piece_num . $sep;
            	 print $line->label_compte . $sep;
            	 print price($line->montant) . $sep;
            	 print $line->sens . $sep;*/
            print $line->code_journal . $sep;
            print "\n";
        } elseif ($conf->global->ACCOUNTING_EXPORT_MODELCSV == 3) {
            // Coala export
            $date = dol_print_date($line->doc_date, '%d/%m/%Y');
            print $date . $sep;
            print $line->code_journal . $sep;
            print length_accounta($line->numero_compte) . $sep;
            print $line->piece_num . $sep;
            print $line->doc_ref . $sep;
            print price($line->debit) . $sep;
            print price($line->credit) . $sep;
            print 'E' . $sep;
            print length_accountg($line->code_tiers) . $sep;
            print "\n";
        }
    }
} else {
    $title_page = $langs->trans("AccountBalance") . ' ' . dol_print_date($search_date_start) . '-' . dol_print_date($search_date_end);
    llxHeader('', $title_page);
    /*
     * List
     */