This function posts the MRR and returns 0 for successful execution.
A call to the post function is only successful if all previous inserts for an MRR have succeeded. In the case of an error, the cycle write_mrr_header, write_mrr_header_nls, and write_inv_receipts must be started again. In this case, all data belonging to the MRR causing the error is deleted.