Skip to content
Permalink
Browse files

Fix no warehouse found should not return '0'

  • Loading branch information
fappels committed Feb 20, 2020
1 parent d9fa9b1 commit 3d339453a0bd6993f89ede4caa02fdf8b48e28f7
Showing with 7 additions and 2 deletions.
  1. +6 −1 extdirect/class/ExtDirectFormProduct.class.php
  2. +1 −1 extdirect/core/modules/modExtDirect.class.php
@@ -165,7 +165,7 @@ public function readWarehouses(stdClass $params)
}
$recordNbr++;
}
} else {
} else if ($res < 0) {
return ExtDirect::getDolError($res, $this->errors, $this->error);
}

@@ -258,6 +258,11 @@ public function readPriceBaseType(stdClass $params)
$row->code = 'TTC';
$row->label = $langs->transnoentities("TTC") ? $langs->trans("TTC") : "Inc. tax";
array_push($results, $row);
// workaround for pick last item in list issue, add dummy last item
$row = new stdClass;
$row->code = 'TTC';
$row->label = '';
array_push($results, $row);

return $results;
}
@@ -61,7 +61,7 @@ function __construct($db)
// not found (where XXX is value of numeric property 'numero' of module)
$this->description = "Connect to external applications which use Sencha Ext.direct";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = '1.0.54';
$this->version = '1.0.55';
// Key used in llx_const table to save module status enabled/disabled
// (where MYMODULE is value of property name of module in uppercase)
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

0 comments on commit 3d33945

Please sign in to comment.
You can’t perform that action at this time.