| ".$langs->trans("PaymentConditions")." | ";
- $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$invoice->id, $invoice->cond_reglement_id, 'none');
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->cond_reglement_id, 'none');
print " |
";
+ // Payment mode
print "| ".$langs->trans("PaymentMode")." | ";
- $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$invoice->id, $facture->mode_reglement_id, 'none');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->mode_reglement_id, 'none');
print " |
";
- if (! empty($conf->projet->enabled) && $invoice->fk_project > 0)
+ // Project
+ if (! empty($conf->projet->enabled) && $object->fk_project > 0)
{
print "';
- print '| '.$langs->trans("Ref").' | ';
+ print '
| '.$langs->trans("Ref").' | ';
print ''.$object->titre.' | ';
print '
| '.$langs->trans("Customer").' | ';
- print ''.$object->thirdparty->getNomUrl(1,'customer').' | ';
- print "". $langs->trans("PaymentConditions") ." : ";
- $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->cond_reglement_id,'none');
- print " |
";
+ print ''.$object->thirdparty->getNomUrl(1,'customer').' | ';
- print "| ".$langs->trans("Author")." | ".$author->getFullName($langs)." | ";
-
- if ($object->remise_percent > 0)
- {
- print '';
- }
- else
- {
- print ' | ';
- }
-
- print $langs->trans("PaymentMode") ." : ";
- $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->mode_reglement_id,'none');
- print " |
";
+ print "| ".$langs->trans("Author").' | '.$author->getFullName($langs)." |
";
print '| '.$langs->trans("AmountHT").' | ';
print ''.price($object->total_ht).' | ';
@@ -392,11 +383,19 @@ else
print ''.$langs->trans("Currency".$conf->currency).' |
';
print '| '.$langs->trans("AmountTTC").' | '.price($object->total_ttc).' | ';
print ''.$langs->trans("Currency".$conf->currency).' |
';
- if ($object->note)
- {
- print '| '.$langs->trans("Note").' : '.nl2br($object->note)." |
";
- }
+ // Payment term
+ print '| '.$langs->trans("PaymentConditions").' | ';
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->cond_reglement_id,'none');
+ print " |
";
+
+ // Payment mode
+ print '| '.$langs->trans("PaymentMode").' | ';
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->mode_reglement_id,'none');
+ print " |
";
+
+ print '| '.$langs->trans("Note").' | '.nl2br($object->note)." |
";
+
print "
";
print '';