"Erro division by '"

Good afternoon,
I have a similar problem when posting an invoice by Supplier BP Invoices:

After comparing the PINVOICE table with another invoice that is already posted, I see that it does not fill the LED_0 and CURLED_0 fields.

When you exit all X3 and make a change in the invoice and save it again, you can validate it correctly without error, because the field that gives error is already filled correctly in that modification.

Any suggestions?

Thank you very much