public function __construct($l = FALSE)
 {
     parent::__construct('lineaspresupuestosprov', 'plugins/presupuestos_y_pedidos_proveedores/');
     if (!isset(self::$presupuestos)) {
         self::$presupuestos = array();
     }
     if ($l) {
         $this->cantidad = floatval($l['cantidad']);
         $this->codimpuesto = $l['codimpuesto'];
         $this->descripcion = $l['descripcion'];
         $this->dtolineal = floatval($l['dtolineal']);
         $this->dtopor = floatval($l['dtopor']);
         $this->idlinea = intval($l['idlinea']);
         $this->idpresupuesto = intval($l['idpresupuesto']);
         $this->irpf = floatval($l['irpf']);
         $this->iva = floatval($l['iva']);
         $this->pvpsindto = floatval($l['pvpsindto']);
         $this->pvptotal = floatval($l['pvptotal']);
         $this->pvpunitario = floatval($l['pvpunitario']);
         $this->recargo = floatval($l['recargo']);
         $this->referencia = $l['referencia'];
     } else {
         $this->cantidad = 0;
         $this->codimpuesto = NULL;
         $this->descripcion = NULL;
         $this->dtolineal = 0;
         $this->dtopor = 0;
         $this->idlinea = NULL;
         $this->idpresupuesto = NULL;
         $this->irpf = 0;
         $this->iva = 0;
         $this->pvpsindto = 0;
         $this->pvptotal = 0;
         $this->pvpunitario = 0;
         $this->recargo = 0;
         $this->referencia = '';
     }
 }