aa
This commit is contained in:
@@ -404,11 +404,10 @@ function libriInPrevendita()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setProductFromGM($article, $initlog, ProductLogger $passproductLogger)
|
function setProductFromGM($article, $initlog, ProductLogger &$passproductLogger)
|
||||||
{
|
{
|
||||||
if ($initlog) {
|
if ($initlog) {
|
||||||
$productLogger = new ProductLogger(null);
|
$productLogger = new ProductLogger(null);
|
||||||
$productLogger->init();
|
|
||||||
} else {
|
} else {
|
||||||
$productLogger = $passproductLogger;
|
$productLogger = $passproductLogger;
|
||||||
}
|
}
|
||||||
@@ -1414,10 +1413,12 @@ function updateArticoloFromGM($idarticolo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($article) {
|
if ($article) {
|
||||||
|
$str = "Articolo: ";
|
||||||
|
$str .= getarraystr($article);
|
||||||
|
|
||||||
|
$str = "setProductFromGM: ";
|
||||||
setProductFromGM($article, false, $productLogger);
|
setProductFromGM($article, false, $productLogger);
|
||||||
|
|
||||||
$str = "Concatena: ";
|
|
||||||
$str .= getarraystr($article);
|
|
||||||
|
|
||||||
$str .= $productLogger->concatenateLogs();
|
$str .= $productLogger->concatenateLogs();
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ class ProductLogger
|
|||||||
public function __construct($settingOraValue)
|
public function __construct($settingOraValue)
|
||||||
{
|
{
|
||||||
$this->settingOra = $settingOraValue;
|
$this->settingOra = $settingOraValue;
|
||||||
|
$this->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
|
|||||||
Reference in New Issue
Block a user