';
$total_debit += $line->debit;
$total_credit += $line->credit;
if ($action == 'update' && $line->id == $id) {
print '';
print '| ';
- print $formaccounting->select_account((GETPOSTISSET("accountingaccount_number") ? GETPOST("accountingaccount_number", "alpha") : $line->numero_compte), 'accountingaccount_number', 1, array(), 1, 1, '');
+ print $formaccounting->select_account((GETPOSTISSET("accountingaccount_number") ? GETPOST("accountingaccount_number", "alpha") : $line->numero_compte), 'accountingaccount_number', 1, array(), 1, 1, 'minwidth200 maxwidth500');
print ' | ';
print '';
// TODO For the moment we keep a free input text instead of a combo. The select_auxaccount has problem because:
@@ -697,7 +698,7 @@ if ($action == 'create') {
if ($action == "" || $action == 'add') {
print '';
print ' | ';
- print $formaccounting->select_account('', 'accountingaccount_number', 1, array(), 1, 1, '');
+ print $formaccounting->select_account('', 'accountingaccount_number', 1, array(), 1, 1, 'minwidth200 maxwidth500');
print ' | ';
print '';
// TODO For the moment we keep a free input text instead of a combo. The select_auxaccount has problem because:
@@ -714,7 +715,7 @@ if ($action == 'create') {
print ' | | ';
print ' | ';
print ' | ';
- print ' | ';
+ print ' | ';
}
} else {
print '';
@@ -732,8 +733,8 @@ if ($action == 'create') {
}
print '';
print ''.$line->label_operation.' | ';
- print ''.price($line->debit).' | ';
- print ''.price($line->credit).' | ';
+ print ''.($line->debit != 0 ? price($line->debit) : '').' | ';
+ print ''.($line->credit != 0 ? price($line->credit) : '').' | ';
print '';
if (empty($line->date_export) && empty($line->date_validation)) {
|