Skip to content

alapierre/gobl.java.ksef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonarcloud Status Renovate enabled Maven Central

GOBL to KSeF Java converter

Early stage of project, byt for simple case sales invoice it can create valid FA(2) from Json.

Current project stage limitation

  • almost all annotations (except P_18) are hardcoded in converter
  • only sales invoices are supported
  • conversion of the invoice type was not consulted with a tax advisors (and still, only standard VAT invoice is supported)
  • only payment by bank transfer and card is now supported

Sample input: gobl-ksef-converter/src/test/resources/invoice.json

Convert GOBL Invoice into FA(2)

Gobl gobl = new Gobl();
Invoice invoice = gobl.parseInvoice(Path.of("src/test/resources/invoice.json"));
InvoiceMapper mapper = Mappers.getMapper(InvoiceMapper.class);

Faktura faktura = mapper.invoiceToFaktura(invoice);

FakturaSerializer fakturaSerializer = new FakturaSerializer();
System.out.println(fakturaSerializer.toString(faktura, false));

Build Requirements

The project can be built on JDK17+.

Building the API client library requires:

  1. Java 17+
  2. Maven

About

GOBL KSeF Converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages