private function share_extensions()
 {
     if ($this->page->get('cuentas_articulo')) {
         $fsext = new fs_extension(array('name' => 'cuentas_articulo', 'page_from' => 'cuentas_articulo', 'page_to' => 'ventas_articulo', 'type' => 'tab', 'text' => 'Cuentas', 'params' => '&action=edit'));
         $fsext->save();
     }
 }
 private function share_extension()
 {
     $extensiones = array(array('name' => 'documentos_facturascli', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'tab', 'text' => '<span class="glyphicon glyphicon-file" aria-hidden="true" title="Documentos"></span>', 'params' => '&folder=facturascli'), array('name' => 'documentos_facturasprov', 'page_from' => __CLASS__, 'page_to' => 'compras_factura', 'type' => 'tab', 'text' => '<span class="glyphicon glyphicon-file" aria-hidden="true" title="Documentos"></span>', 'params' => '&folder=facturasprov'));
     foreach ($extensiones as $ext) {
         $fsext = new fs_extension($ext);
         $fsext->save();
     }
 }
 public function shared_extensions()
 {
     $extensiones = array(array('name' => 'articulos_unidadesmedida', 'page_from' => __CLASS__, 'page_to' => 'ventas_articulos', 'type' => 'button', 'text' => '<span class="fa fa-cubes"></span>&nbsp; Unidades de Medida', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
 }
 public function shared_extensions()
 {
     $extensiones = array(array('name' => 'tipo_ncfs', 'page_from' => __CLASS__, 'page_to' => 'ncf', 'type' => 'button', 'text' => '<span class="fa fa-list-ol"></span>&nbsp;Configurar Tipos NCF', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
 }
 private function share_extension()
 {
     $fsext = new fs_extension();
     $fsext->name = 'opciones_fac_detallada';
     $fsext->from = __CLASS__;
     $fsext->to = 'admin_empresa';
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-print" aria-hidden="true"></span> &nbsp; Factura Detallada';
     $fsext->save();
 }
 private function share_extensions()
 {
     $extensiones = array(array('name' => 'imprimir_pedido', 'page_from' => __CLASS__, 'page_to' => 'ventas_pedido', 'type' => 'pdf', 'text' => ucfirst(FS_PEDIDO) . ' simple', 'params' => '&pedido=TRUE'), array('name' => 'email_pedido', 'page_from' => __CLASS__, 'page_to' => 'ventas_pedido', 'type' => 'email', 'text' => ucfirst(FS_PEDIDO) . ' simple', 'params' => '&pedido=TRUE'), array('name' => 'imprimir_presupuesto', 'page_from' => __CLASS__, 'page_to' => 'ventas_presupuesto', 'type' => 'pdf', 'text' => ucfirst(FS_PRESUPUESTO) . ' simple', 'params' => '&presupuesto=TRUE'), array('name' => 'email_presupuesto', 'page_from' => __CLASS__, 'page_to' => 'ventas_presupuesto', 'type' => 'email', 'text' => ucfirst(FS_PRESUPUESTO) . ' simple', 'params' => '&presupuesto=TRUE'));
     foreach ($extensiones as $ext) {
         $fsext = new fs_extension($ext);
         if (!$fsext->save()) {
             $this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
         }
     }
 }
 private function share_extension()
 {
     $fsext = new fs_extension();
     $fsext->name = 'imprimir_ticket';
     $fsext->from = __CLASS__;
     $fsext->to = 'ventas_servicio';
     $fsext->type = 'pdf';
     $fsext->text = 'Ticket ' . FS_SERVICIO;
     $fsext->save();
 }
 private function share_extension()
 {
     $fsext = new fs_extension();
     $fsext->name = __CLASS__;
     $fsext->from = __CLASS__;
     $fsext->to = 'ventas_pedidos';
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-duplicate"></span>' . '<span class="hidden-xs">&nbsp; Agrupar</span>';
     $fsext->save();
 }
 public function share_extensions()
 {
     $fsxet = new fs_extension();
     $fsxet->name = 'tab_ventas_cliente_articulos';
     $fsxet->from = __CLASS__;
     $fsxet->to = 'ventas_cliente';
     $fsxet->type = 'tab';
     $fsxet->text = '<span class="glyphicon glyphicon-list" aria-hidden="true"></span> &nbsp; Artículos';
     $fsxet->save();
 }
Example #10
0
 private function share_extensions()
 {
     $extensiones = array(array('name' => 'imprimir_servicio', 'page_from' => __CLASS__, 'page_to' => 'ventas_servicio', 'type' => 'pdf', 'text' => ucfirst(FS_SERVICIO) . ' simple', 'params' => ''), array('name' => 'email_servicio', 'page_from' => __CLASS__, 'page_to' => 'ventas_servicio', 'type' => 'email', 'text' => ucfirst(FS_SERVICIO) . ' simple', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext = new fs_extension($ext);
         if (!$fsext->save()) {
             $this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
         }
     }
 }
 private function share_extensions()
 {
     $extensiones = array(array('name' => 'imprimir_servicio_sin_detalles_horizontal', 'page_from' => __CLASS__, 'page_to' => 'ventas_servicio', 'type' => 'pdf', 'text' => '2 ' . ucfirst(FS_SERVICIO) . ' sin líneas en 1 página', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext = new fs_extension($ext);
         if (!$fsext->save()) {
             $this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
         }
     }
 }
Example #12
0
 private function share_extensions()
 {
     $extensiones = array(array('name' => 'imprimir_albaran', 'page_from' => __CLASS__, 'page_to' => 'ventas_albaran', 'type' => 'pdf', 'text' => ucfirst(FS_ALBARAN) . ' simple', 'params' => '&albaran=TRUE'), array('name' => 'email_albaran', 'page_from' => __CLASS__, 'page_to' => 'ventas_albaran', 'type' => 'email', 'text' => ucfirst(FS_ALBARAN) . ' simple', 'params' => '&albaran=TRUE'), array('name' => 'imprimir_factura', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'pdf', 'text' => ucfirst(FS_FACTURA) . ' simple', 'params' => '&factura=TRUE&tipo=simple'), array('name' => 'imprimir_factura_firma', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'pdf', 'text' => ucfirst(FS_FACTURA) . ' con firma', 'params' => '&factura=TRUE&tipo=firma'), array('name' => 'imprimir_factura_carta', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'pdf', 'text' => 'Modelo carta', 'params' => '&factura=TRUE&tipo=carta'), array('name' => 'email_factura', 'page_from' => __CLASS__, 'page_to' => 'ventas_factura', 'type' => 'email', 'text' => ucfirst(FS_FACTURA) . ' simple', 'params' => '&factura=TRUE&tipo=simple'));
     foreach ($extensiones as $ext) {
         $fsext = new fs_extension($ext);
         if (!$fsext->save()) {
             $this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
         }
     }
 }
Example #13
0
 private function share_extensions()
 {
     $extensiones = array(array('name' => 'imprimir_albaran_proveedor', 'page_from' => __CLASS__, 'page_to' => 'compras_albaran', 'type' => 'pdf', 'text' => ucfirst(FS_ALBARAN) . ' simple', 'params' => '&albaran=TRUE'), array('name' => 'email_albaran_proveedor', 'page_from' => __CLASS__, 'page_to' => 'compras_albaran', 'type' => 'email', 'text' => ucfirst(FS_ALBARAN) . ' simple', 'params' => '&albaran=TRUE'), array('name' => 'imprimir_factura_proveedor', 'page_from' => __CLASS__, 'page_to' => 'compras_factura', 'type' => 'pdf', 'text' => 'Factura simple', 'params' => '&factura=TRUE'));
     foreach ($extensiones as $ext) {
         $fsext = new fs_extension($ext);
         if (!$fsext->save()) {
             $this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
         }
     }
 }
 private function share_extension()
 {
     $fsext = new fs_extension();
     $fsext->name = 'opciones_clientes';
     $fsext->from = __CLASS__;
     $fsext->to = 'ventas_clientes';
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-wrench" aria-hidden="true" title="Opciones para nuevos clientes"></span>' . '<span class="hidden-xs">&nbsp; Opciones</span>';
     $fsext->save();
 }
 private function share_extensions()
 {
     $fsext = new fs_extension();
     $fsext->name = 'btn_atributos';
     $fsext->from = __CLASS__;
     $fsext->to = 'ventas_articulos';
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>' . '<span class="hidden-xs"> &nbsp; Atributos</span>';
     $fsext->save();
 }
Example #16
0
 private function share_extensions()
 {
     $extensiones = array(array('name' => 'imprimir_recibo', 'page_from' => __CLASS__, 'page_to' => 'ventas_recibo', 'type' => 'pdf', 'text' => 'Recibo simple', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext = new fs_extension($ext);
         if (!$fsext->save()) {
             $this->new_error_msg('Error al guardar la extensión ' . $ext['name']);
         }
     }
 }
 protected function process()
 {
     /// Guardamos la extensión
     $fsext = new fs_extension(array('name' => 'chart.js', 'page_from' => __CLASS__, 'page_to' => NULL, 'type' => 'head', 'text' => '<script src="plugins/informes_y_charts/view/js/chartjs/Chart.min.js"></script>', 'params' => ''));
     if (!$fsext->save()) {
         $this->new_error_msg('Error al guardar la extensión.');
     }
     /// declaramos los objetos sólo para asegurarnos de que existen las tablas
     $albaran_cli = new albaran_cliente();
     $albaran_pro = new albaran_proveedor();
 }
Example #18
0
 private function share_extensions()
 {
     $fsext = new fs_extension();
     $fsext->name = 'pcge_peru';
     $fsext->from = __CLASS__;
     $fsext->to = 'contabilidad_ejercicio';
     $fsext->type = 'fuente';
     $fsext->text = 'PCGE Perú';
     $fsext->params = 'plugins/peru/extras/peru.xml';
     $fsext->save();
 }
 private function share_extensions()
 {
     /// añadimos la extensión para ventas_artículos
     $fsext = new fs_extension();
     $fsext->name = 'btn_fabricantes';
     $fsext->from = __CLASS__;
     $fsext->to = 'ventas_articulos';
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span><span class="hidden-xs"> &nbsp; Fabricantes</span>';
     $fsext->save();
 }
 protected function process()
 {
     /// Guardamos las extensiones
     $extensiones = array(array('name' => 'docs.min.css', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<link href="plugins/dashboard/view/css/docs.min.css" rel="stylesheet" type="text/css" />', 'params' => ''), array('name' => 'carousel.css', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<link href="plugins/dashboard/view/css/carousel.css" rel="stylesheet" type="text/css" />', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
 }
Example #21
0
 protected function process()
 {
     /// Guardamos las extensiones
     $extensiones = array(array('name' => 'docs.min.css', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<link href="plugins/dashboard/view/css/docs.min.css" rel="stylesheet" type="text/css" />', 'params' => ''), array('name' => 'carousel.css', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<link href="plugins/dashboard/view/css/carousel.css" rel="stylesheet" type="text/css" />', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
     // Cambiar este valor si no se va a utilizar nunca el plugin "Presupuestos y pedidos" en ventas
     $this->show_presupuestos_y_pedidos_ventas = TRUE;
     // Cambiar este valor si no se va a utilizar nunca el plugin "Presupuestos y pedidos" en compras
     $this->show_presupuestos_y_pedidos_compras = TRUE;
 }
 private function share_extensions()
 {
     $fsext = new fs_extension();
     $fsext->name = 'pagar_facturas';
     $fsext->from = __CLASS__;
     $fsext->to = 'compras_facturas';
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-check" aria-hidden="true"></span>' . '<span class="hidden-xs">&nbsp; Pagar...</span>';
     $fsext->save();
     $fsext2 = new fs_extension();
     $fsext2->name = 'pagar_recibos';
     $fsext2->from = __CLASS__;
     $fsext2->to = 'compras_recibos';
     $fsext2->type = 'button';
     $fsext2->text = '<span class="glyphicon glyphicon-check" aria-hidden="true"></span>' . '<span class="hidden-xs">&nbsp; Pagar...</span>';
     $fsext2->save();
 }
 public function share_extensions()
 {
     //botón articulos pendientes de recibir en copras_pedidos
     $fsext = new fs_extension();
     $fsext->name = 'articulos_pedidos_compras';
     $fsext->from = __CLASS__;
     $fsext->to = 'compras_pedidos';
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-tasks" aria-hidden="true"></span><span class="hidden-xs">&nbsp; Artículos</span>';
     $fsext->params = '&compras=TRUE';
     $fsext->save();
     //botón articulos pendientes de recibir en ventas_pedidos
     $fsext1 = new fs_extension();
     $fsext1->name = 'articulos_pedidos_ventas';
     $fsext1->from = __CLASS__;
     $fsext1->to = 'ventas_pedidos';
     $fsext1->type = 'button';
     $fsext1->text = '<span class="glyphicon glyphicon-tasks" aria-hidden="true"></span><span class="hidden-xs">&nbsp; Artículos</span>';
     $fsext1->save();
 }
 private function share_extension()
 {
     /// añadimos las extensiones para proveedores y js para HEAD
     $extensiones = array(array('name' => 'tarifas_proveedor', 'page_from' => __CLASS__, 'page_to' => 'compras_proveedor', 'type' => 'button', 'text' => '<span class="glyphicon glyphicon-tags" title="Tarifas"></span> &nbsp; Tarifas', 'params' => ''), array('name' => 'tablas_ordenadas_tarifas', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<script src="plugins/tarifas_proveedor/view/js/jquery.tablesorter.min.js"></script>
                        <script src="plugins/tarifas_proveedor/view/js/jquery.tablesorter.widgets.min.js"></script>', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext = new fs_extension($ext);
         $fsext->save();
     }
 }
 private function share_extension()
 {
     /// añadimos las extensiones para clientes, agentes y artículos
     $extensiones = array(array('name' => 'albaranes_cliente', 'page_from' => __CLASS__, 'page_to' => 'ventas_cliente', 'type' => 'button', 'text' => '<span class="glyphicon glyphicon-list" aria-hidden="true"></span> &nbsp; ' . ucfirst(FS_ALBARANES), 'params' => ''), array('name' => 'albaranes_agente', 'page_from' => __CLASS__, 'page_to' => 'admin_agente', 'type' => 'button', 'text' => '<span class="glyphicon glyphicon-list" aria-hidden="true"></span> &nbsp; ' . ucfirst(FS_ALBARANES) . ' de cliente', 'params' => ''), array('name' => 'albaranes_articulo', 'page_from' => __CLASS__, 'page_to' => 'ventas_articulo', 'type' => 'tab_button', 'text' => '<span class="glyphicon glyphicon-list" aria-hidden="true"></span> &nbsp; ' . ucfirst(FS_ALBARANES) . ' de cliente', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
 }
 public function shared_extensions()
 {
     $extensiones = array(array('name' => 'distribucion_venta_select_js', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<script src="' . FS_PATH . 'plugins/distribucion/view/js/bootstrap-select.min.js" type="text/javascript"></script>', 'params' => ''), array('name' => 'distribucion_venta_select_css', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<link rel="stylesheet" type="text/css" media="screen" href="' . FS_PATH . 'plugins/distribucion/view/css/bootstrap-select.min.css"/>', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
 }
Example #27
0
 private function share_extensions()
 {
     $fsext = new fs_extension();
     $fsext->name = 'opciones_servicios';
     $fsext->from = __CLASS__;
     $fsext->to = 'ventas_servicios';
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-cog" aria-hidden="true">' . '</span><span class="hidden-xs">&nbsp; Opciones</span>';
     $fsext->save();
 }
 private function share_extensions()
 {
     $fsext = new fs_extension();
     $fsext->name = 'api_remote_printer';
     $fsext->from = __CLASS__;
     $fsext->type = 'api';
     $fsext->text = 'remote_printer';
     $fsext->save();
 }
 private function share_extension()
 {
     /// añadimos las extensiones para proveedores, agentes y artículos
     $extensiones = array(array('name' => 'albaranes_proveedor', 'page_from' => __CLASS__, 'page_to' => 'compras_proveedor', 'type' => 'button', 'text' => ucfirst(FS_ALBARANES), 'params' => ''), array('name' => 'albaranes_agente', 'page_from' => __CLASS__, 'page_to' => 'admin_agente', 'type' => 'button', 'text' => ucfirst(FS_ALBARANES) . ' de proveedor', 'params' => ''), array('name' => 'albaranes_articulo', 'page_from' => __CLASS__, 'page_to' => 'ventas_articulo', 'type' => 'button', 'text' => ucfirst(FS_ALBARANES) . ' de proveedor', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
 }
Example #30
0
 private function share_extensions()
 {
     $extension = array('name' => 'pagar_facturas', 'page_from' => __CLASS__, 'page_to' => 'ventas_facturas', 'type' => 'button', 'text' => '<span class="glyphicon glyphicon-check" aria-hidden="true"></span>' . '<span class="hidden-xs">&nbsp; Pagar...</span>', 'params' => '');
     $fsext = new fs_extension($extension);
     $fsext->save();
 }