public function __construct($t = false) { parent::__construct('distribucion_segmentos', 'plugins/distribucion/'); if ($t) { $this->idempresa = $t['idempresa']; $this->codigo = $t['codigo']; $this->descripcion = $t['descripcion']; $this->codigo_padre = $t['codigo_padre']; $this->tiposegmento = $t['tiposegmento']; $this->estado = $this->str2bool($t['estado']); $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); } else { $this->idempresa = null; $this->codigo = null; $this->descripcion = null; $this->codigo_padre = null; $this->tiposegmento = null; $this->estado = false; $this->usuario_creacion = null; $this->fecha_creacion = Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = null; } }
public function __construct($t = false) { parent::__construct('distribucion_ordenescarga_facturas', 'plugins/distribucion/'); if ($t) { $this->idempresa = $t['idempresa']; $this->codalmacen = $t['codalmacen']; $this->idordencarga = $t['idordencarga']; $this->idfactura = $t['idfactura']; $this->idtransporte = $t['idtransporte']; $this->fecha = $t['fecha']; $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); } else { $this->idempresa = null; $this->codalmacen = null; $this->idordencarga = null; $this->idfactura = null; $this->idtransporte = null; $this->fecha = null; $this->usuario_creacion = null; $this->fecha_creacion = Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = null; } $this->factura_cliente = new factura_cliente(); $this->cliente = new cliente(); if (class_exists('ncf_rango')) { $this->ncf_ventas = new ncf_ventas(); } }
public function __construct($r = FALSE) { parent::__construct('remesas_sepa'); if ($r) { $this->idremesa = $this->intval($r['idremesa']); $this->descripcion = $r['descripcion']; $this->codpago = $r['codpago']; $this->codcuenta = $r['codcuenta']; $this->iban = $r['iban']; $this->swift = $r['swift']; $this->total = floatval($r['total']); $this->coddivisa = $r['coddivisa']; $this->tasaconv = floatval($r['tasaconv']); $this->estado = $r['estado']; $this->fechacargo = date('d-m-Y', strtotime($r['fechacargo'])); $this->fecha = date('d-m-Y', strtotime($r['fecha'])); } else { $this->idremesa = NULL; $this->descripcion = NULL; $this->codpago = NULL; $this->codcuenta = NULL; $this->iban = NULL; $this->swift = NULL; $this->total = 0; $this->coddivisa = NULL; $this->tasaconv = 1; $this->estado = 'Preparada'; $this->fechacargo = date('d-m-Y'); $this->fecha = date('d-m-Y'); } }
public function __construct($a = FALSE) { parent::__construct('almacenes'); if ($a) { $this->codalmacen = $a['codalmacen']; $this->nombre = $a['nombre']; $this->codpais = $a['codpais']; $this->provincia = $a['provincia']; $this->poblacion = $a['poblacion']; $this->codpostal = $a['codpostal']; $this->direccion = $a['direccion']; $this->contacto = $a['contacto']; $this->fax = $a['fax']; $this->telefono = $a['telefono']; $this->observaciones = $a['observaciones']; } else { $this->codalmacen = NULL; $this->nombre = ''; $this->codpais = NULL; $this->provincia = NULL; $this->poblacion = NULL; $this->codpostal = ''; $this->direccion = ''; $this->contacto = ''; $this->fax = ''; $this->telefono = ''; $this->observaciones = ''; } }
public function __construct($p = FALSE) { parent::__construct('autorizados', 'plugins/autorizados_procli/'); if ($p) { $this->autorizado_id = $p['autorizado_id']; $this->autorizado_cifnif = $p['autorizado_cifnif']; $this->autorizado_nombre = $p['autorizado_nombre']; $this->autorizado_telefono = $p['autorizado_telefono']; $this->autorizado_concepto = $this->no_html($p['autorizado_concepto']); $this->autorizado_fecha = NULL; if (isset($p['autorizado_fecha'])) { $this->autorizado_fecha = date('d-m-Y', strtotime($p['autorizado_fecha'])); } $this->autorizado_codproveedor = $p['autorizado_codproveedor']; $this->autorizado_codcliente = $p['autorizado_codcliente']; } else { $this->autorizado_id = NULL; $this->autorizado_cifnif = ''; $this->autorizado_nombre = ''; $this->autorizado_telefono = ''; $this->autorizado_concepto = ''; $this->autorizado_fecha = date('d-m-Y'); $this->autorizado_codproveedor = NULL; $this->autorizado_codcliente = NULL; } }
public function __construct($s = FALSE) { parent::__construct('stocks', 'plugins/facturacion_base/'); if ($s) { $this->idstock = $this->intval($s['idstock']); $this->codalmacen = $s['codalmacen']; $this->referencia = $s['referencia']; $this->nombre = $s['nombre']; $this->cantidad = floatval($s['cantidad']); $this->reservada = floatval($s['reservada']); $this->disponible = floatval($s['disponible']); $this->pterecibir = floatval($s['pterecibir']); $this->stockmin = floatval($s['stockmin']); $this->stockmax = floatval($s['stockmax']); $this->cantidadultreg = floatval($s['cantidadultreg']); } else { $this->idstock = NULL; $this->codalmacen = NULL; $this->referencia = NULL; $this->nombre = ''; $this->cantidad = 0; $this->reservada = 0; $this->disponible = 0; $this->pterecibir = 0; $this->stockmin = 0; $this->stockmax = 0; $this->cantidadultreg = 0; } }
public function __construct($d = FALSE) { parent::__construct('dirclientes'); if ($d) { $this->id = $this->intval($d['id']); $this->codcliente = $d['codcliente']; $this->codpais = $d['codpais']; $this->apartado = $d['apartado']; $this->provincia = $d['provincia']; $this->ciudad = $d['ciudad']; $this->codpostal = $d['codpostal']; $this->direccion = $d['direccion']; $this->domenvio = $this->str2bool($d['domenvio']); $this->domfacturacion = $this->str2bool($d['domfacturacion']); $this->descripcion = $d['descripcion']; $this->fecha = date('d-m-Y', strtotime($d['fecha'])); } else { $this->id = NULL; $this->codcliente = NULL; $this->codpais = NULL; $this->apartado = NULL; $this->provincia = NULL; $this->ciudad = NULL; $this->codpostal = NULL; $this->direccion = NULL; $this->domenvio = TRUE; $this->domfacturacion = TRUE; $this->descripcion = 'Principal'; $this->fecha = date('d-m-Y'); } }
public function __construct($t = false) { parent::__construct('distribucion_transporte', 'plugins/distribucion/'); if ($t) { $this->idempresa = $t['idempresa']; $this->codalmacen = $t['codalmacen']; $this->idordencarga = $t['idordencarga']; $this->idtransporte = $t['idtransporte']; $this->codalmacen_dest = $t['codalmacen_dest']; $this->fecha = $t['fecha']; $this->fechad = $t['fechad']; $this->fechal = $t['fechal']; $this->codtrans = $t['codtrans']; $this->unidad = $t['unidad']; $this->tipounidad = $t['tipounidad']; $this->conductor = $t['conductor']; $this->tipolicencia = $t['tipolicencia']; $this->totalcantidad = $t['totalcantidad']; $this->totalimporte = $t['totalimporte']; $this->liquidacion_importe = $t['liquidacion_importe']; $this->liquidacion_faltante = $t['liquidacion_faltante']; $this->totalpeso = $t['totalpeso']; $this->estado = $this->str2bool($t['estado']); $this->despachado = $this->str2bool($t['despachado']); $this->liquidado = $this->str2bool($t['liquidado']); $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); } else { $this->idempresa = null; $this->codalmacen = null; $this->idordencarga = null; $this->idtransporte = null; $this->codalmacen_dest = null; $this->fecha = null; $this->fechad = null; $this->fechal = null; $this->codtrans = null; $this->unidad = null; $this->tipounidad = null; $this->conductor = null; $this->tipolicencia = null; $this->totalcantidad = null; $this->totalimporte = null; $this->liquidacion_importe = null; $this->liquidacion_faltante = null; $this->totalpeso = null; $this->estado = false; $this->despachado = false; $this->liquidado = false; $this->cargado = false; $this->usuario_creacion = null; $this->fecha_creacion = Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = null; } $this->distribucion_conductores = new distribucion_conductores(); $this->distribucion_unidades = new distribucion_unidades(); }
public function __construct($t = false) { parent::__construct('ncf_entidad_tipo', 'plugins/republica_dominicana/'); if ($t) { $this->idempresa = $t['idempresa']; $this->entidad = $t['entidad']; $this->tipo_entidad = $t['tipo_entidad']; $this->tipo_comprobante = $t['tipo_comprobante']; $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i:s', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); $this->estado = $this->str2bool($t['estado']); } else { $this->idempresa = null; $this->entidad = null; $this->tipo_entidad = null; $this->tipo_comprobante = null; $this->usuario_creacion = null; $this->fecha_creacion = Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = null; $this->estado = false; } }
public function __construct($t = FALSE) { parent::__construct('tarifasav'); if ($t) { $this->codtarifa = $t['codtarifa']; $this->madre = $t['madre']; $this->codfamilia = $t['codfamilia']; $this->nombre = $t['nombre']; $this->margen = $this->str2bool($t['margen']); $this->incporcentual = floatval($t['incporcentual']); $this->inclineal = floatval($t['inclineal']); $this->mincoste = $this->str2bool($t['mincoste']); $this->maxpvp = $this->str2bool($t['maxpvp']); } else { $this->codtarifa = NULL; $this->madre = NULL; $this->codfamilia = NULL; $this->nombre = NULL; $this->margen = FALSE; $this->incporcentual = 0; $this->inclineal = 0; $this->mincoste = TRUE; $this->maxpvp = TRUE; } }
public function __construct($t = false) { parent::__construct('distribucion_clientes', 'plugins/distribucion/'); if ($t) { $this->idempresa = $t['idempresa']; $this->codalmacen = $t['codalmacen']; $this->codcliente = $t['codcliente']; $this->iddireccion = $t['iddireccion']; $this->ruta = $t['ruta']; $this->canal = $t['canal']; $this->subcanal = $t['subcanal']; $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); } else { $this->idempresa = null; $this->codalmacen = null; $this->codcliente = null; $this->iddireccion = null; $this->ruta = null; $this->canal = null; $this->subcanal = null; $this->usuario_creacion = null; $this->fecha_creacion = Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = null; } $this->distrib_rutas = new distribucion_rutas(); $this->distrib_segmentos = new distribucion_segmentos(); $this->direccion_cliente = new direccion_cliente(); $this->cliente = new cliente(); }
public function __construct($d = FALSE) { parent::__construct('divisas'); if ($d) { $this->coddivisa = $d['coddivisa']; $this->descripcion = $d['descripcion']; $this->tasaconv = floatval($d['tasaconv']); $this->codiso = $d['codiso']; $this->simbolo = $d['simbolo']; if ($this->simbolo == '' and $this->coddivisa == 'EUR') { $this->simbolo = '€'; $this->save(); } if (is_null($d['tasaconv_compra'])) { $this->tasaconv_compra = floatval($d['tasaconv']); /// forzamos guardar para asegurarnos que siempre hay una tasa para compras $this->save(); } else { $this->tasaconv_compra = floatval($d['tasaconv_compra']); } } else { $this->coddivisa = NULL; $this->descripcion = ''; $this->tasaconv = 1; $this->tasaconv_compra = 1; $this->codiso = NULL; $this->simbolo = '?'; } }
public function __construct($t = false) { parent::__construct('distribucion_organizacion', 'plugins/distribucion/'); if ($t) { $this->idempresa = $t['idempresa']; $this->codalmacen = $t['codalmacen']; $this->codagente = $t['codagente']; $this->codsupervisor = $t['codsupervisor']; $this->tipoagente = $t['tipoagente']; $this->estado = $this->str2bool($t['estado']); $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); } else { $this->idempresa = null; $this->codalmacen = null; $this->codagente = null; $this->codsupervisor = null; $this->tipoagente = null; $this->estado = false; $this->usuario_creacion = null; $this->fecha_creacion = Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = null; } $this->agente = new agente(); }
public function __construct($d = FALSE) { parent::__construct('dirproveedores'); if ($d) { $this->codproveedor = $d['codproveedor']; $this->codpais = $d['codpais']; $this->apartado = $d['apartado']; $this->provincia = $d['provincia']; $this->ciudad = $d['ciudad']; $this->codpostal = $d['codpostal']; $this->direccion = $d['direccion']; $this->direccionppal = $this->str2bool($d['direccionppal']); $this->descripcion = $d['descripcion']; $this->id = $this->intval($d['id']); } else { $this->codproveedor = NULL; $this->codpais = NULL; $this->apartado = NULL; $this->provincia = NULL; $this->ciudad = NULL; $this->codpostal = NULL; $this->direccion = NULL; $this->direccionppal = TRUE; $this->descripcion = NULL; $this->id = NULL; } }
public function __construct($t = false) { parent::__construct('distribucion_lineastransporte', 'plugins/distribucion/'); if ($t) { $this->idempresa = $t['idempresa']; $this->codalmacen = $t['codalmacen']; $this->idtransporte = $t['idtransporte']; $this->fecha = $t['fecha']; $this->referencia = $t['referencia']; $this->cantidad = $t['cantidad']; $this->importe = $t['importe']; $this->peso = $t['peso']; $this->estado = $this->str2bool($t['estado']); $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); } else { $this->idempresa = null; $this->idtransporte = null; $this->codalmacen = null; $this->fecha = null; $this->referencia = null; $this->cantidad = null; $this->importe = null; $this->peso = null; $this->estado = false; $this->usuario_creacion = null; $this->fecha_creacion = \Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = \Date('d-m-Y H:i'); } $this->articulo = new articulo(); }
public function __construct($r = FALSE) { parent::__construct('lineasregstocks'); if ($r) { $this->id = $this->intval($r['id']); $this->idstock = $this->intval($r['idstock']); $this->cantidadini = floatval($r['cantidadini']); $this->cantidadfin = floatval($r['cantidadfin']); $this->codalmacendest = $r['codalmacendest']; $this->fecha = date('d-m-Y', strtotime($r['fecha'])); $this->hora = '00:00:00'; if (!is_null($r['hora'])) { $this->hora = date('H:i:s', strtotime($r['hora'])); } $this->motivo = $r['motivo']; $this->nick = $r['nick']; } else { $this->id = NULL; $this->idstock = NULL; $this->cantidadini = 0; $this->cantidadfin = 0; $this->codalmacendest = NULL; $this->fecha = date('d-m-Y'); $this->hora = date('H:i:s'); $this->motivo = ''; $this->nick = NULL; } }
public function __construct($p = FALSE) { parent::__construct('pagos', 'plugins/tesoreria/'); if ($p) { $this->id = $this->intval($p['id']); $this->idfactura = $this->intval($p['idfactura']); $this->idalbaran = $this->intval($p['idalbaran']); $this->idpedido = $this->intval($p['idpedido']); $this->idrecibo = $this->intval($p['idrecibo']); $this->fase = $p['fase']; $this->fecha = Date('d-m-Y', strtotime($p['fecha'])); $this->importe = floatval($p['importe']); $this->nota = $p['nota']; } else { $this->id = NULL; $this->idfactura = NULL; $this->idalbaran = NULL; $this->idpedido = NULL; $this->idrecibo = NULL; $this->fase = '-'; $this->fecha = Date('d-m-Y'); $this->importe = 0; $this->nota = ''; } $this->pendiente = 0; }
public function __construct($a = FALSE) { parent::__construct('autoventas_opciones', 'plugins/autoventas/'); if ($a) { $this->url = $this->escape_string($a["url"]); $this->activo = (int) $a["activo"]; $this->cron = (int) $a["cron"]; $this->tiempocron = (int) $a["tiempocron"]; $this->last_sincro = (int) $a["last_sincro"]; $this->ftp_url = $this->escape_string($a["ftp_url"]); $this->ftp_user = $this->escape_string($a["ftp_user"]); $this->ftp_pass = $this->escape_string($a["ftp_pass"]); $this->ftp_dir = $this->escape_string($a["ftp_dir"]); } else { $this->url = NULL; $this->activo = 0; $this->cron = 0; $this->tiempocron = 5; $this->last_sincro = 0; $this->ftp_url = NULL; $this->ftp_user = NULL; $this->ftp_pass = NULL; $this->ftp_dir = NULL; } }
public function __construct($l = FALSE) { parent::__construct('lineasivafactprov', 'plugins/facturacion_base/'); if ($l) { $this->idlinea = $this->intval($l['idlinea']); $this->idfactura = $this->intval($l['idfactura']); $this->neto = floatval($l['neto']); $this->codimpuesto = $l['codimpuesto']; $this->iva = floatval($l['iva']); $this->totaliva = floatval($l['totaliva']); $this->recargo = floatval($l['recargo']); $this->totalrecargo = floatval($l['totalrecargo']); $this->totallinea = floatval($l['totallinea']); } else { $this->idlinea = NULL; $this->idfactura = NULL; $this->neto = 0; $this->codimpuesto = NULL; $this->iva = 0; $this->totaliva = 0; $this->recargo = 0; $this->totalrecargo = 0; $this->totallinea = 0; } }
public function __construct($t = FALSE) { parent::__construct('inme_temas'); if ($t) { $this->codtema = $t['codtema']; $this->titulo = $t['titulo']; $this->texto = $t['texto']; $this->keywords = $t['keywords']; $this->imagen = $t['imagen']; $this->articulos = intval($t['articulos']); $this->popularidad = intval($t['popularidad']); $this->activo = $this->str2bool($t['activo']); $this->fecha = date('d-m-Y', strtotime($t['fecha'])); $this->busqueda = $t['busqueda']; } else { $this->codtema = NULL; $this->titulo = ''; $this->texto = ''; $this->keywords = ''; $this->imagen = NULL; $this->articulos = 0; $this->popularidad = 0; $this->activo = TRUE; $this->fecha = date('d-m-Y'); $this->busqueda = ''; } }
public function __construct($e = FALSE) { parent::__construct('ejercicios'); if ($e) { $this->codejercicio = $e['codejercicio']; $this->nombre = $e['nombre']; $this->fechainicio = Date('d-m-Y', strtotime($e['fechainicio'])); $this->fechafin = Date('d-m-Y', strtotime($e['fechafin'])); $this->estado = $e['estado']; $this->idasientocierre = $this->intval($e['idasientocierre']); $this->idasientopyg = $this->intval($e['idasientopyg']); $this->idasientoapertura = $this->intval($e['idasientoapertura']); $this->plancontable = $e['plancontable']; $this->longsubcuenta = $this->intval($e['longsubcuenta']); } else { $this->codejercicio = NULL; $this->nombre = ''; $this->fechainicio = Date('01-01-Y'); $this->fechafin = Date('31-12-Y'); $this->estado = 'ABIERTO'; $this->idasientocierre = NULL; $this->idasientopyg = NULL; $this->idasientoapertura = NULL; $this->plancontable = '08'; $this->longsubcuenta = 10; } }
public function __construct($t = false) { parent::__construct('distribucion_unidades', 'plugins/distribucion/'); if ($t) { $this->idempresa = $t['idempresa']; $this->codalmacen = $t['codalmacen']; $this->codtrans = $t['codtrans']; $this->placa = $t['placa']; $this->tipounidad = $t['tipounidad']; $this->capacidad = $t['capacidad']; $this->estado = $this->str2bool($t['estado']); $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); } else { $this->idempresa = null; $this->codalmacen = null; $this->codtrans = null; $this->placa = null; $this->tipounidad = null; $this->capacidad = null; $this->estado = false; $this->usuario_creacion = null; $this->fecha_creacion = Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = null; } }
public function __construct($s = FALSE) { parent::__construct('co_subcuentas'); if ($s) { $this->idsubcuenta = $this->intval($s['idsubcuenta']); $this->codsubcuenta = $s['codsubcuenta']; $this->idcuenta = $this->intval($s['idcuenta']); $this->codcuenta = $s['codcuenta']; $this->codejercicio = $s['codejercicio']; $this->coddivisa = $s['coddivisa']; $this->codimpuesto = $s['codimpuesto']; $this->descripcion = $s['descripcion']; $this->debe = floatval($s['debe']); $this->haber = floatval($s['haber']); $this->saldo = floatval($s['saldo']); $this->recargo = floatval($s['recargo']); $this->iva = floatval($s['iva']); } else { $this->idsubcuenta = NULL; $this->codsubcuenta = NULL; $this->idcuenta = NULL; $this->codcuenta = NULL; $this->codejercicio = NULL; $this->coddivisa = $this->default_items->coddivisa(); $this->codimpuesto = NULL; $this->descripcion = ''; $this->debe = 0; $this->haber = 0; $this->saldo = 0; $this->recargo = 0; $this->iva = 0; } }
public function __construct($data = FALSE) { $pluginname = str_replace(realpath(".") . "/", "", realpath(__DIR__ . "/..")) . "/"; parent::__construct('maquinas', $pluginname); if ($data) { $this->id_maquina = $this->intval($data['id_maquina']); $this->codcliente = $data['codcliente']; $this->nombre_cliente = $data['nombre_cliente']; $this->ubicacion = $data['ubicacion']; $this->numero_maquina = $data['numero_maquina']; $this->contrato = $data['contrato']; $this->alquilada = $data['alquilada']; $this->equipo = $data['equipo']; $this->marca = $data['marca']; $this->modelo = $data['modelo']; $this->numero_serie = $data['numero_serie']; $this->contacto = $data['contacto']; $this->costo_copia_negro = $data['costo_copia_negro']; $this->costo_copia_color = $data['costo_copia_color']; $this->costo_copia_especial = $data['costo_copia_especial']; $this->como_leer_contador = $data['como_leer_contador']; $this->email = $data['email']; $this->notas = $data['notas']; } }
public function __construct($a = FALSE) { parent::__construct('co_asientos', 'plugins/facturacion_base/'); if ($a) { $this->idasiento = $this->intval($a['idasiento']); $this->numero = $this->intval($a['numero']); $this->idconcepto = $a['idconcepto']; $this->concepto = '---'; if ($a['concepto'] != '') { $this->concepto = $a['concepto']; } $this->fecha = Date('d-m-Y', strtotime($a['fecha'])); $this->codejercicio = $a['codejercicio']; $this->codplanasiento = $a['codplanasiento']; $this->editable = $this->str2bool($a['editable']); $this->documento = $a['documento']; $this->tipodocumento = $a['tipodocumento']; $this->importe = floatval($a['importe']); } else { $this->idasiento = NULL; $this->numero = NULL; $this->idconcepto = NULL; $this->concepto = NULL; $this->fecha = Date('d-m-Y'); $this->codejercicio = NULL; $this->codplanasiento = NULL; $this->editable = TRUE; $this->documento = NULL; $this->tipodocumento = NULL; $this->importe = 0; } }
public function __construct($c = FALSE) { parent::__construct('contratoservicioscli'); if ($c) { $this->idcontrato = $this->intval($c['idcontrato']); $this->codcliente = $c['codcliente']; $this->codagente = $c['codagente']; $this->fecha_alta = date('d-m-Y', strtotime($c['fecha_alta'])); $this->fecha_renovacion = NULL; if ($c['fecha_renovacion']) { $this->fecha_renovacion = date('d-m-Y', strtotime($c['fecha_renovacion'])); } $this->observaciones = $c['observaciones']; $this->codpago = $c['codpago']; $this->importe_anual = floatval($c['importe_anual']); $this->periodo = $c['periodo']; $this->fsiguiente_servicio = NULL; if ($c['fsiguiente_servicio']) { $this->fsiguiente_servicio = date('d-m-Y', strtotime($c['fsiguiente_servicio'])); } } else { $this->idcontrato = NULL; $this->codcliente = NULL; $this->codagente = NULL; $this->fecha_alta = date('d-m-Y'); $this->fecha_renovacion = date('d-m-Y', strtotime('+1year')); $this->observaciones = NULL; $this->codpago = NULL; $this->importe_anual = NULL; $this->periodo = NULL; $this->fsiguiente_servicio = NULL; } }
public function __construct($d = FALSE) { parent::__construct('dirclientes', 'plugins/facturacion_base/'); if ($d) { $this->id = $this->intval($d['id']); $this->codcliente = $d['codcliente']; $this->codpais = $d['codpais']; $this->apartado = $d['apartado']; $this->provincia = $d['provincia']; $this->ciudad = $d['ciudad']; $this->codpostal = $d['codpostal']; $this->direccion = $d['direccion']; $this->domenvio = $this->str2bool($d['domenvio']); $this->domfacturacion = $this->str2bool($d['domfacturacion']); $this->descripcion = $d['descripcion']; } else { $this->id = NULL; $this->codcliente = NULL; $this->codpais = NULL; $this->apartado = NULL; $this->provincia = NULL; $this->ciudad = NULL; $this->codpostal = NULL; $this->direccion = NULL; $this->domenvio = TRUE; $this->domfacturacion = TRUE; $this->descripcion = NULL; } }
public function __construct($t = false) { parent::__construct('distribucion_conductores', 'plugins/distribucion/'); if ($t) { $this->id = $t['id']; $this->idempresa = $t['idempresa']; $this->codalmacen = $t['codalmacen']; $this->codtrans = $t['codtrans']; $this->nombre = $t['nombre']; $this->licencia = $t['licencia']; $this->tipolicencia = $t['tipolicencia']; $this->idsubcuenta = $t['idsubcuenta']; $this->codsubcuenta = $t['codsubcuenta']; $this->estado = $this->str2bool($t['estado']); $this->usuario_creacion = $t['usuario_creacion']; $this->fecha_creacion = Date('d-m-Y H:i', strtotime($t['fecha_creacion'])); $this->usuario_modificacion = $t['usuario_modificacion']; $this->fecha_modificacion = Date('d-m-Y H:i'); } else { $this->id = null; $this->idempresa = null; $this->codalmacen = null; $this->codtrans = null; $this->nombre = null; $this->licencia = null; $this->tipolicencia = null; $this->idsubcuenta = null; $this->codsubcuenta = null; $this->estado = false; $this->usuario_creacion = null; $this->fecha_creacion = Date('d-m-Y H:i'); $this->usuario_modificacion = null; $this->fecha_modificacion = null; } }
public function __construct($p = FALSE) { parent::__construct('fs_pages'); if ($p) { $this->name = $p['name']; $this->title = $p['title']; $this->folder = $p['folder']; $this->version = NULL; if (isset($p['version'])) { $this->version = $p['version']; } $this->show_on_menu = $this->str2bool($p['show_on_menu']); $this->important = $this->str2bool($p['important']); } else { $this->name = NULL; $this->title = NULL; $this->folder = NULL; $this->version = NULL; $this->show_on_menu = TRUE; $this->important = FALSE; } $this->exists = FALSE; $this->enabled = FALSE; $this->extra_url = ''; }
public function __construct($d = FALSE) { parent::__construct('divisas'); if ($d) { $this->coddivisa = $d['coddivisa']; $this->descripcion = $d['descripcion']; $this->tasaconv = floatval($d['tasaconv']); if (is_null($d['tasaconv_compra'])) { $this->tasaconv_compra = floatval($d['tasaconv']); } else { $this->tasaconv_compra = floatval($d['tasaconv_compra']); } $this->codiso = $d['codiso']; $this->simbolo = $d['simbolo']; if ($this->simbolo == '' and $this->coddivisa == 'EUR') { $this->simbolo = '€'; $this->save(); } } else { $this->coddivisa = NULL; $this->descripcion = ''; $this->tasaconv = 1; $this->tasaconv_compra = 1; $this->codiso = NULL; $this->simbolo = '?'; } }