protected function setQuantityField()
    {
        $iQuantity = array_get($this->arImportData, 'quantity');
        if ($iQuantity === null) {
            return;
        }

        $iQuantity = (int) $iQuantity;
        if ($iQuantity < 0) {
            $iQuantity = 0;
        }

        $this->arImportData['quantity'] = $iQuantity;
    }
protected function setQuantityField()
    {
        $iQuantity = array_get($this->arImportData, 'quantity');
        if ($iQuantity === null) {
            return;
        }

        $iQuantity = (int) $iQuantity;
        if ($iQuantity < 0) {
            $iQuantity = 0;
        }

        $this->arImportData['quantity'] = $iQuantity;
    }
protected function setQuantityField ( ) { $ iQuantity = array_get ( $ this -> arImportData , 'quantity' ) ; if ( $ iQuantity === null ) { return ; } $ iQuantity = ( int ) $ iQuantity ; if ( $ iQuantity < 0 ) { $ iQuantity = 0 ; } $ this -> arImportData [ 'quantity' ] = $ iQuantity ; }
Set quantity field value
Set quantity field value