Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 17.0
This commit is contained in:
commit
e1bbdf2a8e
@ -613,9 +613,6 @@ if (empty($reshook)) {
|
|||||||
|
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
|
|
||||||
mrpCollapseBomManagement();
|
|
||||||
|
|
||||||
|
|
||||||
//Services
|
//Services
|
||||||
$filtertype = 1;
|
$filtertype = 1;
|
||||||
$res = $object->fetchLinesbytypeproduct(1);
|
$res = $object->fetchLinesbytypeproduct(1);
|
||||||
|
|||||||
@ -171,7 +171,7 @@ $tmpbom->calculateCosts();
|
|||||||
print '<td id="costline_'.$line->id.'" class="linecolcost nowrap right">';
|
print '<td id="costline_'.$line->id.'" class="linecolcost nowrap right">';
|
||||||
$coldisplay++;
|
$coldisplay++;
|
||||||
if (!empty($line->fk_bom_child)) {
|
if (!empty($line->fk_bom_child)) {
|
||||||
echo '<span class="amount">'.price($tmpbom->total_cost).'</span>';
|
echo '<span class="amount">'.price($tmpbom->total_cost * $line->qty).'</span>';
|
||||||
} else {
|
} else {
|
||||||
echo '<span class="amount">'.price($line->total_cost).'</span>';
|
echo '<span class="amount">'.price($line->total_cost).'</span>';
|
||||||
}
|
}
|
||||||
@ -269,16 +269,20 @@ if ($resql) {
|
|||||||
$label = $sub_bom_product->getLabelOfUnit('long');
|
$label = $sub_bom_product->getLabelOfUnit('long');
|
||||||
if ($sub_bom_line->qty_frozen > 0) {
|
if ($sub_bom_line->qty_frozen > 0) {
|
||||||
print '<td class="linecolqty nowrap right" id="sub_bom_qty_'.$sub_bom_line->id.'">'.price($sub_bom_line->qty, 0, '', 0, 0).'</td>';
|
print '<td class="linecolqty nowrap right" id="sub_bom_qty_'.$sub_bom_line->id.'">'.price($sub_bom_line->qty, 0, '', 0, 0).'</td>';
|
||||||
print '<td class="linecoluseunit nowrap left">';
|
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
||||||
if ($label !== '') print $langs->trans($label);
|
print '<td class="linecoluseunit nowrap left">';
|
||||||
print '</td>';
|
if ($label !== '') print $langs->trans($label);
|
||||||
|
print '</td>';
|
||||||
|
}
|
||||||
print '<td class="linecolqtyfrozen nowrap right" id="sub_bom_qty_frozen_'.$sub_bom_line->id.'">'.$langs->trans('Yes').'</td>';
|
print '<td class="linecolqtyfrozen nowrap right" id="sub_bom_qty_frozen_'.$sub_bom_line->id.'">'.$langs->trans('Yes').'</td>';
|
||||||
} else {
|
} else {
|
||||||
print '<td class="linecolqty nowrap right" id="sub_bom_qty_'.$sub_bom_line->id.'">'.price($sub_bom_line->qty * $line->qty, 0, '', 0, 0).'</td>';
|
print '<td class="linecolqty nowrap right" id="sub_bom_qty_'.$sub_bom_line->id.'">'.price($sub_bom_line->qty * $line->qty, 0, '', 0, 0).'</td>';
|
||||||
print '<td class="linecoluseunit nowrap left">';
|
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
||||||
if ($label !== '') print $langs->trans($label);
|
print '<td class="linecoluseunit nowrap left">';
|
||||||
print '</td>';
|
if ($label !== '') print $langs->trans($label);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
print '<td class="linecolqtyfrozen nowrap right" id="sub_bom_qty_frozen_'.$sub_bom_line->id.'"> </td>';
|
print '<td class="linecolqtyfrozen nowrap right" id="sub_bom_qty_frozen_'.$sub_bom_line->id.'"> </td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -128,8 +128,7 @@ class mod_task_universal extends ModeleNumRefTask
|
|||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
|
|
||||||
// On defini critere recherche compteur
|
$mask = !empty($conf->global->PROJECT_TASK_UNIVERSAL_MASK) ? $conf->global->PROJECT_TASK_UNIVERSAL_MASK : '';
|
||||||
$mask = $conf->global->PROJECT_TASK_UNIVERSAL_MASK;
|
|
||||||
|
|
||||||
if (!$mask) {
|
if (!$mask) {
|
||||||
$this->error = 'NotConfigured';
|
$this->error = 'NotConfigured';
|
||||||
|
|||||||
@ -82,7 +82,7 @@ ProductsToConsume=Produits à consommer
|
|||||||
ProductsToProduce=Produits à produire
|
ProductsToProduce=Produits à produire
|
||||||
UnitCost=Coût unitaire
|
UnitCost=Coût unitaire
|
||||||
TotalCost=Coût total
|
TotalCost=Coût total
|
||||||
BOMTotalCost=Le coût de production de cette nomenclature basé sur chaque quantité et produit à consommer (utilise le cout de la sous BOM si existante, sinon le prix de revient du produit si défini, sinon le PMP si défini, sinon le meilleur prix d'achat)
|
BOMTotalCost=Le coût de production de cette nomenclature basé sur chaque quantité et produit à consommer (utilise <b>le cout de la sous BOM si existante, sinon le prix de revient du produit si défini, sinon le PMP si défini, sinon le meilleur prix d'achat</b>)
|
||||||
BOMTotalCostService=Si le module "Poste de travail" est activé et qu'un poste de travail est défini par défaut sur la ligne, alors le calcul est "quantité (convertie en heures) x poste de travail ahr", sinon "quantité (convertie en heures) x prix de revient du service"
|
BOMTotalCostService=Si le module "Poste de travail" est activé et qu'un poste de travail est défini par défaut sur la ligne, alors le calcul est "quantité (convertie en heures) x poste de travail ahr", sinon "quantité (convertie en heures) x prix de revient du service"
|
||||||
GoOnTabProductionToProduceFirst=Vous devez avoir la production pour clôturer un Ordre de Fabrication (voir onglet '%s'). Mais vous pouvez l'annuler.
|
GoOnTabProductionToProduceFirst=Vous devez avoir la production pour clôturer un Ordre de Fabrication (voir onglet '%s'). Mais vous pouvez l'annuler.
|
||||||
ErrorAVirtualProductCantBeUsedIntoABomOrMo=Un kit ne peut pas être utilisé dans une Nomenclature ou un Ordre de fabrication.
|
ErrorAVirtualProductCantBeUsedIntoABomOrMo=Un kit ne peut pas être utilisé dans une Nomenclature ou un Ordre de fabrication.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user