Debug v16
This commit is contained in:
parent
8c14f42d60
commit
3afeb16227
@ -115,6 +115,11 @@ abstract class CommonObject
|
|||||||
*/
|
*/
|
||||||
public $array_languages = null; // Value is array() when load already tried
|
public $array_languages = null; // Value is array() when load already tried
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var mixed Array of linked objects, set and used when calling ->create() to be able to create links during the creation of object
|
||||||
|
*/
|
||||||
|
public $linked_objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int[][] Array of linked objects ids. Loaded by ->fetchObjectLinked
|
* @var int[][] Array of linked objects ids. Loaded by ->fetchObjectLinked
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -61,6 +61,19 @@ abstract class CommonObjectLine extends CommonObject
|
|||||||
public $date_fin_prevue;
|
public $date_fin_prevue;
|
||||||
public $date_fin_reel;
|
public $date_fin_reel;
|
||||||
|
|
||||||
|
public $weight;
|
||||||
|
public $weight_units;
|
||||||
|
public $width;
|
||||||
|
public $width_units;
|
||||||
|
public $height;
|
||||||
|
public $height_units;
|
||||||
|
public $length;
|
||||||
|
public $length_units;
|
||||||
|
public $surface;
|
||||||
|
public $surface_units;
|
||||||
|
public $volume;
|
||||||
|
public $volume_units;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|||||||
@ -528,6 +528,8 @@ class Delivery extends CommonObject
|
|||||||
public function create_from_sending($user, $sending_id)
|
public function create_from_sending($user, $sending_id)
|
||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
|
global $conf;
|
||||||
|
|
||||||
$expedition = new Expedition($this->db);
|
$expedition = new Expedition($this->db);
|
||||||
$result = $expedition->fetch($sending_id);
|
$result = $expedition->fetch($sending_id);
|
||||||
|
|
||||||
@ -772,9 +774,9 @@ class Delivery extends CommonObject
|
|||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Load lines
|
* Load lines insto $this->lines.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function fetch_lines()
|
public function fetch_lines()
|
||||||
{
|
{
|
||||||
@ -840,9 +842,11 @@ class Delivery extends CommonObject
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
}
|
|
||||||
|
|
||||||
return $this->lines;
|
return 1;
|
||||||
|
} else {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -973,7 +977,7 @@ class Delivery extends CommonObject
|
|||||||
if ($resultSourceLine) {
|
if ($resultSourceLine) {
|
||||||
$num_lines = $this->db->num_rows($resultSourceLine);
|
$num_lines = $this->db->num_rows($resultSourceLine);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$resultArray = array();
|
$array = array();
|
||||||
while ($i < $num_lines) {
|
while ($i < $num_lines) {
|
||||||
$objSourceLine = $this->db->fetch_object($resultSourceLine);
|
$objSourceLine = $this->db->fetch_object($resultSourceLine);
|
||||||
|
|
||||||
@ -1133,14 +1137,6 @@ class DeliveryLine extends CommonObjectLine
|
|||||||
*/
|
*/
|
||||||
public $table_element = 'deliverydet';
|
public $table_element = 'deliverydet';
|
||||||
|
|
||||||
// From llx_expeditiondet
|
|
||||||
public $qty;
|
|
||||||
public $qty_asked;
|
|
||||||
public $qty_shipped;
|
|
||||||
public $price;
|
|
||||||
public $fk_product;
|
|
||||||
public $origin_id;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string delivery note lines label
|
* @var string delivery note lines label
|
||||||
*/
|
*/
|
||||||
@ -1162,11 +1158,25 @@ class DeliveryLine extends CommonObjectLine
|
|||||||
*/
|
*/
|
||||||
public $libelle;
|
public $libelle;
|
||||||
|
|
||||||
public $origin_line_id;
|
// From llx_expeditiondet
|
||||||
|
public $qty;
|
||||||
|
public $qty_asked;
|
||||||
|
public $qty_shipped;
|
||||||
|
|
||||||
|
public $fk_product;
|
||||||
|
public $product_desc;
|
||||||
|
public $product_type;
|
||||||
public $product_ref;
|
public $product_ref;
|
||||||
public $product_label;
|
public $product_label;
|
||||||
|
|
||||||
|
public $fk_origin_line;
|
||||||
|
public $origin_id;
|
||||||
|
|
||||||
|
public $price;
|
||||||
|
|
||||||
|
public $origin_line_id;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
|
|||||||
@ -1106,14 +1106,14 @@ if ($step == 4 && $datatoimport) {
|
|||||||
if ($j == $i) {
|
if ($j == $i) {
|
||||||
print ' selected';
|
print ' selected';
|
||||||
}
|
}
|
||||||
print " data-html='".dol_escape_htmltag($label)."'";
|
print ' data-html="'.dol_escape_htmltag($label).'"';
|
||||||
print '>';
|
print '>';
|
||||||
print $label;
|
print $label;
|
||||||
print '</options>';
|
print '</options>';
|
||||||
$j++;
|
$j++;
|
||||||
}
|
}
|
||||||
print '</select>';
|
print '</select>';
|
||||||
//print ajax_combobox('selectorderimport_'.($i+1));
|
print ajax_combobox('selectorderimport_'.($i+1));
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|
||||||
print '<td class="nowraponall" style="font-weight:normal; text-align:right">';
|
print '<td class="nowraponall" style="font-weight:normal; text-align:right">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user