Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/product/class/productbatch.class.php
This commit is contained in:
commit
cbead0fa5a
@ -951,8 +951,8 @@ class BOM extends CommonObject
|
|||||||
$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_bom = '.((int) $this->id)));
|
$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_bom = '.((int) $this->id)));
|
||||||
|
|
||||||
if (is_numeric($result)) {
|
if (is_numeric($result)) {
|
||||||
$this->error = $this->error;
|
$this->error = $objectline->error;
|
||||||
$this->errors = $this->errors;
|
$this->errors = $objectline->errors;
|
||||||
return $result;
|
return $result;
|
||||||
} else {
|
} else {
|
||||||
$this->lines = $result;
|
$this->lines = $result;
|
||||||
|
|||||||
@ -4740,7 +4740,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
if (($mysoc->localtax2_assuj == "1" && $mysoc->useLocalTax(2)) || $object->total_localtax2 != 0) { // Localtax2
|
if (($mysoc->localtax2_assuj == "1" && $mysoc->useLocalTax(2)) || $object->total_localtax2 != 0) { // Localtax2
|
||||||
print '<tr><td>'.$langs->transcountry("AmountLT2", $mysoc->country_code).'</td>';
|
print '<tr><td>'.$langs->transcountry("AmountLT2", $mysoc->country_code).'</td>';
|
||||||
print '<td class=nowrap amountcard">'.price($sign * $object->total_localtax2, 1, '', 1, - 1, - 1, $conf->currency).'</td></tr>';
|
print '<td class="nowrap amountcard">'.price($sign * $object->total_localtax2, 1, '', 1, - 1, - 1, $conf->currency).'</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Revenue stamp
|
// Revenue stamp
|
||||||
|
|||||||
@ -528,7 +528,7 @@ class Productbatch extends CommonObject
|
|||||||
$sql .= " FROM ".$this->db->prefix()."product_lot as pl";
|
$sql .= " FROM ".$this->db->prefix()."product_lot as pl";
|
||||||
$sql .= " LEFT JOIN ".$this->db->prefix()."product as p ON p.rowid = pl.fk_product";
|
$sql .= " LEFT JOIN ".$this->db->prefix()."product as p ON p.rowid = pl.fk_product";
|
||||||
$sql .= " LEFT JOIN ".$this->db->prefix()."product_batch AS pb ON pl.batch = pb.batch";
|
$sql .= " LEFT JOIN ".$this->db->prefix()."product_batch AS pb ON pl.batch = pb.batch";
|
||||||
$sql .= " LEFT JOIN ".$this->db->prefix()."product_stock AS ps ON ps.rowid = pb.fk_product_stock";
|
$sql .= " LEFT JOIN ".$this->db->prefix()."product_stock AS ps ON ps.rowid = pb.fk_product_stock AND ps.fk_product = ".((int) $fk_product);
|
||||||
$sql .= " WHERE p.entity IN (".getEntity('product').")";
|
$sql .= " WHERE p.entity IN (".getEntity('product').")";
|
||||||
$sql .= " AND pl.fk_product = ".((int) $fk_product);
|
$sql .= " AND pl.fk_product = ".((int) $fk_product);
|
||||||
if ($fk_warehouse > 0) {
|
if ($fk_warehouse > 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user