commit
a26281dab3
@ -1510,6 +1510,10 @@ if ($id)
|
|||||||
$key=$langs->trans("PaymentType".strtoupper($obj->code));
|
$key=$langs->trans("PaymentType".strtoupper($obj->code));
|
||||||
$valuetoshow=($obj->code && $key != "PaymentType".strtoupper($obj->code)?$key:$obj->{$fieldlist[$field]});
|
$valuetoshow=($obj->code && $key != "PaymentType".strtoupper($obj->code)?$key:$obj->{$fieldlist[$field]});
|
||||||
}
|
}
|
||||||
|
elseif ($fieldlist[$field]=='type' && $tabname[$id]==MAIN_DB_PREFIX.'c_paiement') {
|
||||||
|
$payment_type_list = array(0=>$langs->trans('PaymentTypeCustomer'), 1=>$langs->trans('PaymentTypeSupplier'), 2=>$langs->trans('PaymentTypeBoth'));
|
||||||
|
$valuetoshow = $payment_type_list[$valuetoshow];
|
||||||
|
}
|
||||||
elseif ($fieldlist[$field]=='label' && $tabname[$id]==MAIN_DB_PREFIX.'c_input_reason') {
|
elseif ($fieldlist[$field]=='label' && $tabname[$id]==MAIN_DB_PREFIX.'c_input_reason') {
|
||||||
$key=$langs->trans("DemandReasonType".strtoupper($obj->code));
|
$key=$langs->trans("DemandReasonType".strtoupper($obj->code));
|
||||||
$valuetoshow=($obj->code && $key != "DemandReasonType".strtoupper($obj->code)?$key:$obj->{$fieldlist[$field]});
|
$valuetoshow=($obj->code && $key != "DemandReasonType".strtoupper($obj->code)?$key:$obj->{$fieldlist[$field]});
|
||||||
@ -1876,6 +1880,13 @@ function fieldList($fieldlist, $obj = '', $tabname = '', $context = '')
|
|||||||
print $type.'<input type="hidden" name="type" value="'.$type.'">';
|
print $type.'<input type="hidden" name="type" value="'.$type.'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
elseif ($fieldlist[$field] == 'type' && $tabname == MAIN_DB_PREFIX.'c_paiement')
|
||||||
|
{
|
||||||
|
print '<td>';
|
||||||
|
$select_list = array(0=>$langs->trans('PaymentTypeCustomer'), 1=>$langs->trans('PaymentTypeSupplier'), 2=>$langs->trans('PaymentTypeBoth'));
|
||||||
|
print $form->selectarray($fieldlist[$field], $select_list, (! empty($obj->{$fieldlist[$field]})?$obj->{$fieldlist[$field]}:'2'));
|
||||||
|
print '</td>';
|
||||||
|
}
|
||||||
elseif ($fieldlist[$field] == 'recuperableonly' || $fieldlist[$field] == 'type_cdr' || $fieldlist[$field] == 'deductible' || $fieldlist[$field] == 'category_type') {
|
elseif ($fieldlist[$field] == 'recuperableonly' || $fieldlist[$field] == 'type_cdr' || $fieldlist[$field] == 'deductible' || $fieldlist[$field] == 'category_type') {
|
||||||
if ($fieldlist[$field] == 'type_cdr') print '<td class="center">';
|
if ($fieldlist[$field] == 'type_cdr') print '<td class="center">';
|
||||||
else print '<td>';
|
else print '<td>';
|
||||||
|
|||||||
@ -438,5 +438,6 @@ PaymentTypeCustomer=Payment Type - Customer
|
|||||||
PaymentTermsCustomer=Payment Terms - Customer
|
PaymentTermsCustomer=Payment Terms - Customer
|
||||||
PaymentTypeSupplier=Payment Type - Vendor
|
PaymentTypeSupplier=Payment Type - Vendor
|
||||||
PaymentTermsSupplier=Payment Term - Vendor
|
PaymentTermsSupplier=Payment Term - Vendor
|
||||||
|
PaymentTypeBoth=Payment Type - Customer and Vendor
|
||||||
MulticurrencyUsed=Use Multicurrency
|
MulticurrencyUsed=Use Multicurrency
|
||||||
MulticurrencyCurrency=Currency
|
MulticurrencyCurrency=Currency
|
||||||
Loading…
Reference in New Issue
Block a user