';
@@ -416,7 +414,7 @@ if ($action == 'create')
// Account movement
print '
';
print '| ' . $langs->trans("NumMvts") . ' | ';
- print '' . $book->piece_num . ' | ';
+ print '' . $object->piece_num . ' | ';
print '
';
// Date
@@ -425,19 +423,19 @@ if ($action == 'create')
print $langs->trans('Docdate');
print '';
if ($action != 'editdate')
- print '
piece_num .'&mode='. $mode .'">'.img_edit($langs->transnoentitiesnoconv('SetDate'),1).' | ';
+ print '
piece_num .'&mode='. $mode .'">'.img_edit($langs->transnoentitiesnoconv('SetDate'),1).' | ';
print '';
print '
';
if ($action == 'editdate') {
- print '';
} else {
- print $book->doc_date ? dol_print_date($book->doc_date, 'day') : ' ';
+ print $object->doc_date ? dol_print_date($object->doc_date, 'day') : ' ';
}
print ' | ';
print '';
@@ -448,19 +446,19 @@ if ($action == 'create')
print $langs->trans('Codejournal');
print '';
if ($action != 'editjournal')
- print '
piece_num.'&mode='. $mode .'">'.img_edit($langs->transnoentitiesnoconv('Edit'),1).' | ';
+ print '
piece_num.'&mode='. $mode .'">'.img_edit($langs->transnoentitiesnoconv('Edit'),1).' | ';
print '';
print '
';
if ($action == 'editjournal') {
- print '';
} else {
- print $book->code_journal ;
+ print $object->code_journal ;
}
print ' | ';
print '';
@@ -468,22 +466,22 @@ if ($action == 'create')
// Ref document
print '
| ';
print '';
print ' | ';
if ($action == 'editdocref') {
- print '';
} else {
- print $book->doc_ref ;
+ print $object->doc_ref ;
}
print ' | ';
print '
';
@@ -498,11 +496,11 @@ if ($action == 'create')
print '
';
// Doc type
- if(! empty($book->doc_type))
+ if(! empty($object->doc_type))
{
print '';
print '| ' . $langs->trans("Doctype") . ' | ';
- print '' . $book->doc_type . ' | ';
+ print '' . $object->doc_type . ' | ';
print '
';
}
@@ -510,7 +508,7 @@ if ($action == 'create')
print '';
print '| ' . $langs->trans("DateCreation") . ' | ';
print '';
- print $book->date_creation ? dol_print_date($book->date_creation, 'day') : ' ';
+ print $object->date_creation ? dol_print_date($object->date_creation, 'day') : ' ';
print ' | ';
print '
';
@@ -519,7 +517,7 @@ if ($action == 'create')
print '';
print '| ' . $langs->trans("Status") . ' | ';
print '';
- if (empty($book->validated)) {
+ if (empty($object->validated)) {
print 'rowid . '&action=enable">';
print img_picto($langs->trans("Disabled"), 'switch_off');
print '';
@@ -536,11 +534,11 @@ if ($action == 'create')
/*
print ' |
';
print '| ' . $langs->trans("Control") . ' | ';
- if ($book->doc_type == 'customer_invoice')
+ if ($object->doc_type == 'customer_invoice')
{
$sqlmid = 'SELECT rowid as ref';
$sqlmid .= " FROM ".MAIN_DB_PREFIX."facture as fac";
- $sqlmid .= " WHERE fac.rowid=" . $book->fk_doc;
+ $sqlmid .= " WHERE fac.rowid=" . $object->fk_doc;
dol_syslog("accountancy/bookkeeping/card.php::sqlmid=" . $sqlmid, LOG_DEBUG);
$resultmid = $db->query($sqlmid);
if ($resultmid) {
@@ -563,24 +561,24 @@ if ($action == 'create')
print '
';
- $result = $book->fetchAllPerMvt($piece_num, $mode);
+ $result = $object->fetchAllPerMvt($piece_num, $mode);
if ($result < 0) {
- setEventMessages($book->error, $book->errors, 'errors');
+ setEventMessages($object->error, $object->errors, 'errors');
} else {
print load_fiche_titre($langs->trans("ListeMvts"), '', '');
- print '