Fix: invert parameters
This commit is contained in:
parent
31d3e419b2
commit
9b36df85dd
@ -343,8 +343,9 @@ if ($id || $ref)
|
|||||||
// We don't have supplier, so we try to guess.
|
// We don't have supplier, so we try to guess.
|
||||||
// For this we build a fictive supplier with same properties than user but using vat)
|
// For this we build a fictive supplier with same properties than user but using vat)
|
||||||
$mysoc2=dol_clone($mysoc);
|
$mysoc2=dol_clone($mysoc);
|
||||||
|
$mysoc2->name='Fictive seller with same country';
|
||||||
$mysoc2->tva_assuj=1;
|
$mysoc2->tva_assuj=1;
|
||||||
$default_vat=get_default_tva($mysoc2, $mysoc, 0, $product->id);
|
$default_vat=get_default_tva($mysoc2, $mysoc, $product->id, 0);
|
||||||
|
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans("VATRateForSupplierProduct").'</td>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("VATRateForSupplierProduct").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user