I uses OpenTBS to produce IT invoices.
I have a problem on a block with a 'bmagnet' on 2 levels table: table + table: table. The problem is on '101' block.
When the 'lib' field is missing, the deleted block goes too far and it corruptes the file. You can not even open it in libreoffice.
the example is here: http://www.autocross-france.net/tmp/test_opentbs.zip
The php script 'test_opentbs.php' initializes the variables and processes the template 'test_template.odt'. The result is in 'test_result.odt'