Merge pull request #7664 from frederic34/patch-1

keep vat input with multiprices product creation
This commit is contained in:
Laurent Destailleur 2017-10-22 02:42:44 +02:00 committed by GitHub
commit 030cea6a0f

View File

@ -1114,6 +1114,14 @@ else
{
// We do no show price array on create when multiprices enabled.
// We must set them on prices tab.
print '<table class="border" width="100%">';
// VAT
print '<tr><td class="titlefieldcreate">' . $langs->trans("VATRate") . '</td><td>';
$defaultva = get_default_tva($mysoc, $mysoc);
print $form->load_tva("tva_tx", $defaultva, $mysoc, $mysoc, 0, 0, '', false, 1);
print '</td></tr>';
print '</table>';
print '<br>';
}
else
{