Fix warning
This commit is contained in:
parent
a5b86f74ce
commit
5fe8c599d2
@ -598,6 +598,7 @@ class Propal extends CommonObject
|
|||||||
$localtaxes_type = getLocalTaxesFromRate($txtva, 0, $this->thirdparty, $mysoc);
|
$localtaxes_type = getLocalTaxesFromRate($txtva, 0, $this->thirdparty, $mysoc);
|
||||||
|
|
||||||
// Clean vat code
|
// Clean vat code
|
||||||
|
$reg = array();
|
||||||
$vat_src_code = '';
|
$vat_src_code = '';
|
||||||
if (preg_match('/\((.*)\)/', $txtva, $reg))
|
if (preg_match('/\((.*)\)/', $txtva, $reg))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -593,8 +593,8 @@ class SupplierProposal extends CommonObject
|
|||||||
// Mise en option de la ligne
|
// Mise en option de la ligne
|
||||||
if (empty($qty) && empty($special_code)) $this->line->special_code = 3;
|
if (empty($qty) && empty($special_code)) $this->line->special_code = 3;
|
||||||
|
|
||||||
if (is_array($array_option) && count($array_option) > 0) {
|
if (is_array($array_options) && count($array_options) > 0) {
|
||||||
$this->line->array_options = $array_option;
|
$this->line->array_options = $array_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->line->insert();
|
$result = $this->line->insert();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user