';
- // Third party
- print ''.$langs->trans('Company').' | '.$facture->client->getNomUrl(4)." |
\n";
+ // Third party
+ print ''.$langs->trans('Company').' | '.$facture->client->getNomUrl(4)." |
\n";
- // Date payment
- print ''.$langs->trans('Date').' | ';
- $datepayment = dol_mktime(12, 0 , 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
- $datepayment= ($datepayment == '' ? (empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0) : $datepayment);
- $html->select_date($datepayment,'','','',0,"add_paiement",1,1);
- print ' | ';
- print ''.$langs->trans('Comments').' |
';
+ // Date payment
+ print ''.$langs->trans('Date').' | ';
+ $datepayment = dol_mktime(12, 0 , 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
+ $datepayment= ($datepayment == '' ? (empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0) : $datepayment);
+ $html->select_date($datepayment,'','','',0,"add_paiement",1,1);
+ print ' | ';
+ print ''.$langs->trans('Comments').' |
';
- $rowspan=5;
- if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT)) $rowspan++;
+ $rowspan=5;
+ if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT)) $rowspan++;
- // Payment mode
- print ''.$langs->trans('PaymentMode').' | ';
- $html->select_types_paiements((GETPOST('paiementcode')?GETPOST('paiementcode'):$facture->mode_reglement_code),'paiementcode','',2);
- print " | \n";
- print '';
- print ' | ';
- print '
';
+ // Payment mode
+ print ''.$langs->trans('PaymentMode').' | ';
+ $html->select_types_paiements((GETPOST('paiementcode')?GETPOST('paiementcode'):$facture->mode_reglement_code),'paiementcode','',2);
+ print " | \n";
+ print '';
+ print ' | ';
+ print '
';
- // Payment amount
- if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT))
- {
- print ''.$langs->trans('AmountPayment').' | ';
- print '';
- if ($action == 'add_paiement')
- {
- print '';
- print '';
- }
- else
- {
- print '';
- }
- print ' | ';
- print '
';
- }
+ // Payment amount
+ if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT))
+ {
+ print ''.$langs->trans('AmountPayment').' | ';
+ print '';
+ if ($action == 'add_paiement')
+ {
+ print '';
+ print '';
+ }
+ else
+ {
+ print '';
+ }
+ print ' | ';
+ print '
';
+ }
- print '';
- if ($conf->banque->enabled)
- {
- if ($facture->type != 2) print ''.$langs->trans('AccountToCredit').' | ';
- if ($facture->type == 2) print ''.$langs->trans('AccountToDebit').' | ';
- print '';
- $html->select_comptes($accountid,'accountid',0,'',2);
- print ' | ';
- }
- else
- {
- print ' | ';
- }
- print "
\n";
+ print '';
+ if ($conf->banque->enabled)
+ {
+ if ($facture->type != 2) print ''.$langs->trans('AccountToCredit').' | ';
+ if ($facture->type == 2) print ''.$langs->trans('AccountToDebit').' | ';
+ print '';
+ $html->select_comptes($accountid,'accountid',0,'',2);
+ print ' | ';
+ }
+ else
+ {
+ print ' | ';
+ }
+ print "
\n";
- // Cheque number
- print ''.$langs->trans('Numero');
- print ' ('.$langs->trans("ChequeOrTransferNumber").')';
- print ' | ';
- print ' |
';
+ // Cheque number
+ print ''.$langs->trans('Numero');
+ print ' ('.$langs->trans("ChequeOrTransferNumber").')';
+ print ' | ';
+ print ' |
';
- // Check transmitter
- print ''.$langs->trans('CheckTransmitter');
- print ' ('.$langs->trans("ChequeMaker").')';
- print ' | ';
- print ' |
';
+ // Check transmitter
+ print ''.$langs->trans('CheckTransmitter');
+ print ' ('.$langs->trans("ChequeMaker").')';
+ print ' | ';
+ print ' |
';
- // Bank name
- print ''.$langs->trans('Bank');
- print ' ('.$langs->trans("ChequeBank").')';
- print ' | ';
- print ' |
';
+ // Bank name
+ print ''.$langs->trans('Bank');
+ print ' ('.$langs->trans("ChequeBank").')';
+ print ' | ';
+ print ' |
';
- print '
';
-
+ print '