Service for managing and printing reports for Angola OpenLMIS implementation.
- Build report in Jaspersoft Studio application to have
.jasper
file. - Go to reports
cd reports/
- Create hex file of created jasper file.
xxd -pxxd -c 999999999 <report_file_name>.jasper > <report_file_name>.hex
- Go back to main repository.
cd ..
- Create migration file
gradle generateMigration -PmigrationName=<migration_name>
example migration name update_<field>_<reportName>
- Edit migration file and make sure it will be added to the changes with new commit
UPDATE reports.jasper_templates
SET data = '\xHEX'
WHERE id = 'report-uuid';
HEX
is exactly, what have you generated in step 3.
report-uuid
you should know the uuid
or take it from database
- Commit your changes, make sure that migration and updated <report_name>.jrxml are added.
- Push and create Pull Request.