Fix property
This commit is contained in:
parent
c589c27b78
commit
3c7dbedecd
@ -72,7 +72,7 @@ class PaymentLoan extends CommonObject
|
||||
public $amount_interest;
|
||||
|
||||
/**
|
||||
* @var int Payment type ID
|
||||
* @var int Payment mode ID
|
||||
*/
|
||||
public $fk_typepayment;
|
||||
|
||||
@ -450,7 +450,7 @@ class PaymentLoan extends CommonObject
|
||||
// Insert payment into llx_bank
|
||||
$bank_line_id = $acc->addline(
|
||||
$this->datep,
|
||||
$this->paymenttype, // Payment mode id or code ("CHQ or VIR for example")
|
||||
$this->fk_typepayment, // Payment mode ID or code ("CHQ or VIR for example")
|
||||
$label,
|
||||
$total,
|
||||
$this->num_payment,
|
||||
|
||||
@ -314,7 +314,7 @@ if ($action == 'create')
|
||||
print '</tr>';
|
||||
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans("PaymentMode").'</td><td colspan="2">';
|
||||
$form->select_types_paiements(isset($_POST["paymenttype"]) ? $_POST["paymenttype"] : $loan->paymenttype, "paymenttype");
|
||||
$form->select_types_paiements(GETPOSTISSET("paymenttype") ? GETPOST("paymenttype", 'alphanohtml') : $loan->fk_typepayment, "paymenttype");
|
||||
print "</td>\n";
|
||||
print '</tr>';
|
||||
|
||||
@ -328,7 +328,7 @@ if ($action == 'create')
|
||||
print '<tr><td>'.$langs->trans('Numero');
|
||||
print ' <em>('.$langs->trans("ChequeOrTransferNumber").')</em>';
|
||||
print '</td>';
|
||||
print '<td colspan="2"><input name="num_payment" type="text" value="'.GETPOST('num_payment').'"></td></tr>'."\n";
|
||||
print '<td colspan="2"><input name="num_payment" type="text" value="'.GETPOST('num_payment', 'alphanohtml').'"></td></tr>'."\n";
|
||||
|
||||
print '<tr>';
|
||||
print '<td class="tdtop">'.$langs->trans("NotePrivate").'</td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user