Ejemplo n.º 1
0
         if (!isset($accounts[$objp->bid])) {
             $accounts[$objp->bid] = 0;
         }
         $accounts[$objp->bid] += 1;
         print "<tr " . $bc[$var] . ">";
         print '<td align="center">' . $i . '</td>';
         print '<td align="center">' . dol_print_date($db->jdate($objp->date), 'day') . '</td>';
         // Date operation
         print '<td align="center">' . ($objp->num_chq ? $objp->num_chq : '&nbsp;') . '</td>';
         print '<td>' . dol_trunc($objp->emetteur, 24) . '</td>';
         print '<td>' . dol_trunc($objp->banque, 24) . '</td>';
         print '<td align="right">' . price($objp->amount) . '</td>';
         print '<td align="center">';
         $accountlinestatic->rowid = $objp->rowid;
         if ($accountlinestatic->rowid) {
             print $accountlinestatic->getNomUrl(1);
         } else {
             print '&nbsp;';
         }
         print '</td>';
         if ($object->statut == 0) {
             print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&amp;action=remove&amp;lineid=' . $objp->rowid . '">' . img_delete() . '</a></td>';
         } else {
             print '<td>&nbsp;</td>';
         }
         print '</tr>';
         $var = !$var;
         $i++;
     }
     print "</table>";
 } else {
Ejemplo n.º 2
0
 print "<tr>";
 print '<td>' . $langs->trans("DatePayment") . '</td><td colspan="3">';
 print dol_print_date($object->datep, 'day');
 print '</td></tr>';
 print '<tr><td>' . $langs->trans("DateValue") . '</td><td colspan="3">';
 print dol_print_date($object->datev, 'day');
 print '</td></tr>';
 print '<tr><td>' . $langs->trans("Amount") . '</td><td colspan="3">' . price($object->amount, 0, $outputlangs, 1, -1, -1, $conf->currency) . '</td></tr>';
 if (!empty($conf->banque->enabled)) {
     if ($object->fk_account > 0) {
         $bankline = new AccountLine($db);
         $bankline->fetch($object->fk_bank);
         print '<tr>';
         print '<td>' . $langs->trans('BankTransactionLine') . '</td>';
         print '<td colspan="3">';
         print $bankline->getNomUrl(1, 0, 'showall');
         print '</td>';
         print '</tr>';
     }
 }
 // Other attributes
 $parameters = array('colspan' => ' colspan="3"');
 $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action);
 // Note that $action and $object may have been modified by hook
 print '</table>';
 dol_fiche_end();
 /*
  * Action buttons
  */
 print '<div class="tabsAction">' . "\n";
 if ($object->rappro == 0) {
Ejemplo n.º 3
0
print '</td></tr>';
// Amount
print '<tr><td valign="top">' . $langs->trans('Amount') . '</td><td colspan="3">' . price($object->montant, '', $langs, 0, 0, -1, $conf->currency) . '</td></tr>';
// Note
print '<tr><td valign="top">' . $form->editfieldkey("Note", 'note', $object->note, $object, $user->rights->facture->paiement) . '</td><td colspan="3">';
print $form->editfieldval("Note", 'note', $object->note, $object, $user->rights->facture->paiement, 'textarea');
print '</td></tr>';
// Bank account
if (!empty($conf->banque->enabled)) {
    if ($object->bank_account) {
        $bankline = new AccountLine($db);
        $bankline->fetch($object->bank_line);
        print '<tr>';
        print '<td>' . $langs->trans('BankTransactionLine') . '</td>';
        print '<td colspan="3">';
        print $bankline->getNomUrl(1, 0, 'showconciliated');
        print '</td>';
        print '</tr>';
        print '<tr>';
        print '<td>' . $langs->trans('BankAccount') . '</td>';
        print '<td colspan="3">';
        $accountstatic = new Account($db);
        $accountstatic->id = $bankline->fk_account;
        $accountstatic->label = $bankline->bank_account_ref . ' - ' . $bankline->bank_account_label;
        print $accountstatic->getNomUrl(0);
        print '</td>';
        print '</tr>';
        if ($object->type_code == 'CHQ' && $bankline->fk_bordereau > 0) {
            dol_include_once('/compta/paiement/cheque/class/remisecheque.class.php');
            $bordereau = new RemiseCheque($db);
            $bordereau->fetch($bankline->fk_bordereau);