Okay, I think I have tracked down a bug that has been plaguing me


#1

So it looks like lineitemarray does not add an empty element if the line item field is empty. It skips to the next line item, which gets everything out of sync.