Skip to content

Instantly share code, notes, and snippets.

View cesar4rroyo's full-sized avatar

Cesar Arroyo cesar4rroyo

View GitHub Profile
@cesar4rroyo
cesar4rroyo / gist:440b612152a5d50353b02224a34fd044
Created June 23, 2023 16:25
GUIA DE REMISION INSTALLMENT
## First
- Copy in web.php
/**
* GUIA DE REMISION
*/
Route::post('guiaremision/buscar', 'GuiaRemisionController@buscar')->name('guiaremision.buscar');
Route::get('guiaremision/eliminar/{id}/{listarluego}', 'GuiaRemisionController@eliminar')->name('guiaremision.eliminar');
Route::get('guiaremision/ubigeoautocompletar/', 'GuiaRemisionController@ubigeo_autocompletar')->name('guiaremision.ubigeoautocompletar');
Route::get('guiaremision/documentoautocompletar/', 'GuiaRemisionController@documento_autocompletar')->name('guiaremision.documentoautocompletar');
//PARA CONTCOMPROBANTE.PHP
$factura = array(
"numerofactura"=>$numerofactura,
"fechaemision"=>$fechaemision,
"horaemision"=>$horaemision,
"usuario"=>$nombre,
"codubigeo"=>$codUbigeo,
"tipodoc"=>$tipodoc,
"ruc"=>$ruc,
"moneda"=>$moneda,
import React from "react";
import { Redirect, Route } from "react-router-dom";
import PropTypes from "prop-types";
export const PrivateRoute = ({
isAuthenticated,
component: Component,
...rest
}) => {
import React from "react";
import { Redirect, Route } from "react-router-dom";
import PropTypes from "prop-types";
export const PublicRoute = ({
isAuthenticated,
component: Component,
...rest
}) => {
return (