Merge pull request #11925 from OPEN-DSI/new-product-fournisseurs-units
NEW add units fields in buying price tab of product card
This commit is contained in:
commit
acfceecda5
@ -491,6 +491,13 @@ if ($id > 0 || $ref)
|
|||||||
{
|
{
|
||||||
print '<input class="flat" name="qty" size="5" value="'.$quantity.'">';
|
print '<input class="flat" name="qty" size="5" value="'.$quantity.'">';
|
||||||
}
|
}
|
||||||
|
// Units
|
||||||
|
if ($conf->global->PRODUCT_USE_UNITS) {
|
||||||
|
$unit = $object->getLabelOfUnit();
|
||||||
|
if ($unit !== '') {
|
||||||
|
print ' ' . $langs->trans($unit);
|
||||||
|
}
|
||||||
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Vat rate
|
// Vat rate
|
||||||
@ -782,7 +789,7 @@ SCRIPT;
|
|||||||
|
|
||||||
// Suppliers list title
|
// Suppliers list title
|
||||||
print '<div class="div-table-responsive">';
|
print '<div class="div-table-responsive">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="liste" width="100%">';
|
||||||
|
|
||||||
$param="&id=".$object->id;
|
$param="&id=".$object->id;
|
||||||
|
|
||||||
@ -851,6 +858,13 @@ SCRIPT;
|
|||||||
// Quantity
|
// Quantity
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
print $productfourn->fourn_qty;
|
print $productfourn->fourn_qty;
|
||||||
|
// Units
|
||||||
|
if ($conf->global->PRODUCT_USE_UNITS) {
|
||||||
|
$unit = $object->getLabelOfUnit();
|
||||||
|
if ($unit !== '') {
|
||||||
|
print ' ' . $langs->trans($unit);
|
||||||
|
}
|
||||||
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// VAT rate
|
// VAT rate
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user