Each of the records that have a header with lines have a limit on the number of lines that can be posted at a time. Example - for Billings with products, it is 250 lines.
When using the global class to post billings, it accumulates that limit across all the billings be posted. so if you have 2 invoices with > 250 lines between them, you cannot ust the Billing Post class to post them at the same time. They must be posted one at a time. there is nothing in the code that manages this. It just fails.
It would be very beneficial if the code were updated to allow a true batch to be run, and then dynamicaly set the size of the batch based on the number of rows, or just set it to 1.
Please sign in to leave a comment.