Beispiel #1
0
        public ResponseBussiness <OperationResponse> PrintEmisionNotaCredito(string folio)
        {
            new SecurityBusiness().ValidarPermisos("imprimirTicket", "E");
            TokenDto token = new TokenService().Get();

            PrintTicketEmisionNotaCredito printTicketEmisionNotaCredito = new PrintTicketEmisionNotaCredito(token);

            OperationResponse operation = printTicketEmisionNotaCredito.PrintNow(folio);

            return(operation);
        }
Beispiel #2
0
 /// <summary>
 /// Cancelar apartado
 /// </summary>
 /// <param name="folioApartado"></param>
 /// <returns>Respuesta</returns>
 public ResponseBussiness <OperationResponse> CancelarApartado(string folioApartado)
 {
     return(tryCatch.SafeExecutor(() =>
     {
         return tryCatch.SafeExecutor(() =>
         {
             TransApartadoResponse transApartadoResponse = repository.CancelarApartado(folioApartado, this.token.CodeBox, this.token.CodeStore, this.token.CodeEmployee);
             OperationResponse operationResponse = new OperationResponse();
             // TODO: Invocar servicio de Lealtad
             // Imprimir Cancelación de Apartado y Nota de Crédito en caso de Aplicar
             ImprimeTicketsMM imprimeTicketsMM = new ImprimeTicketsMM(token);
             imprimeTicketsMM.PrintTicket(transApartadoResponse.FolioVenta, false);
             PrintTicketEmisionNotaCredito printTicketEmisionNotaCredito = new PrintTicketEmisionNotaCredito(token);
             OperationResponse operation = printTicketEmisionNotaCredito.PrintNow(transApartadoResponse.FolioNotaCreditoGenerada);
             // Regresar el resultado
             operationResponse.CodeDescription = transApartadoResponse.CodeDescription;
             operationResponse.CodeNumber = transApartadoResponse.CodeNumber;
             return operationResponse;
         });
     }));
 }