Fix: When creating invoice from other object, type must be standard only
This commit is contained in:
parent
aff919fd10
commit
d2074d1a17
@ -1899,14 +1899,6 @@ if ($action == 'create')
|
|||||||
print $desc;
|
print $desc;
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
// Deposit
|
|
||||||
print '<tr height="18"><td width="16px" valign="middle">';
|
|
||||||
print '<input type="radio" name="type" value="3"'.(GETPOST('type')==3?' checked="checked"':'').'>';
|
|
||||||
print '</td><td valign="middle">';
|
|
||||||
$desc=$form->textwithpicto($langs->trans("InvoiceDeposit"),$langs->transnoentities("InvoiceDepositDesc"),1);
|
|
||||||
print $desc;
|
|
||||||
print '</td></tr>'."\n";
|
|
||||||
|
|
||||||
// Proforma
|
// Proforma
|
||||||
if (! empty($conf->global->FACTURE_USE_PROFORMAT))
|
if (! empty($conf->global->FACTURE_USE_PROFORMAT))
|
||||||
{
|
{
|
||||||
@ -1918,6 +1910,16 @@ if ($action == 'create')
|
|||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($origin))
|
||||||
|
{
|
||||||
|
// Deposit
|
||||||
|
print '<tr height="18"><td width="16px" valign="middle">';
|
||||||
|
print '<input type="radio" name="type" value="3"'.(GETPOST('type')==3?' checked="checked"':'').'>';
|
||||||
|
print '</td><td valign="middle">';
|
||||||
|
$desc=$form->textwithpicto($langs->trans("InvoiceDeposit"),$langs->transnoentities("InvoiceDepositDesc"),1);
|
||||||
|
print $desc;
|
||||||
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
// Replacement
|
// Replacement
|
||||||
print '<tr height="18"><td valign="middle">';
|
print '<tr height="18"><td valign="middle">';
|
||||||
print '<input type="radio" name="type" value="1"'.(GETPOST('type')==1?' checked="checked"':'');
|
print '<input type="radio" name="type" value="1"'.(GETPOST('type')==1?' checked="checked"':'');
|
||||||
@ -1966,6 +1968,7 @@ if ($action == 'create')
|
|||||||
$desc=$form->textwithpicto($text,$langs->transnoentities("InvoiceAvoirDesc"),1);
|
$desc=$form->textwithpicto($text,$langs->transnoentities("InvoiceAvoirDesc"),1);
|
||||||
print $desc;
|
print $desc;
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user