Closed
Description
Code for reproducing the error
SummaryDocumentInputModel input = SummaryDocumentInputModel.Builder.aSummaryDocumentInputModel()
.withNumero(1)
.withFechaEmisionDeComprobantesAsociados(calendar.getTimeInMillis())
.withProveedor(ProveedorInputModel.Builder.aProveedorInputModel()
.withRuc("12345678912")
.withRazonSocial("OpenUBL S.A.C.")
.build()
)
.withDetalle(Arrays.asList(
SummaryDocumentLineInputModel.Builder.aSummaryDocumentLineInputModel()
.withTipoOperacion(Catalog19.ADICIONAR.toString())
.withComprobante(SummaryDocumentComprobanteInputModel.Builder.aSummaryDocumentComprobanteInputModel()
.withTipo(Catalog1.BOLETA.toString())
.withSerieNumero("F001-1")
.withCliente(ClienteInputModel.Builder.aClienteInputModel()
.withNombre("Pedro Suarez Vertis")
.withNumeroDocumentoIdentidad("12345678")
.withTipoDocumentoIdentidad(Catalog6.DNI.getCode())
.build())
.withImpuestos(SummaryDocumentImpuestosInputModel.Builder.aSummaryDocumentImpuestosInputModel()
.withIgv(new BigDecimal("100"))
.build()
)
.withValorVenta(SummaryDocumentComprobanteValorVentaInputModel.Builder.aSummaryDocumentComprobanteValorVentaInputModel()
.withImporteTotal(new BigDecimal("2966.31"))
.withGravado(new BigDecimal("123"))
.build()
)
.build())
.build()
))
.build();
Metadata
Metadata
Assignees
Labels
No labels