After the Method QB sync, particular Method generated invoices are inserted into QB with just one line out of a multi-line invoice and the invoice is updated and replaced in Method. Some work perfectly but in this case the issue has been isolated to certain items and then to a particular custom pop-up screen that creates the entries.
There is nothing unorthodox about how the invoice line items are created in this custom screen but after digging into the InvoiceLine table we have discovered that the field InvoiceLineGroupRecordID is populated on the ones that are disappearing. The first line item (which is what QB ends up saving) has a blank value in that field; the 2nd line item has the InvoiceLine RecordID of the 1st line; the 3rd line has a RecordID value of the 2nd line, etc. Not sure why Method is populating this field as the item is a service item and there are actually no group items in their item table whatsoever. Coincidentally, this pop-up screen creates multiple line items with the same item name - each item has a different rate, description, Method specific fields, etc. Appears to be a bug.
Seems that QB treats them as Group items and consolidates them to a single line. It doesn't add up the total but uses just the value from the first line item and changes the invoice amount. Interesting but not what we want or expect. It takes a loooong time for the sync to happen and then nothing appears in the Conflict screen in Method and the invoice just looks like a one line item invoice in Method. Hmmm.
Not sure if this is kosher but went ahead and added a little loop through the InvoiceLine table after the entry of these particular invoice lines and removed the value in the InvoiceLineGroupRecordID field. That seemed to do the trick - invoices sync with QB as one would expect - all line items are created and in a timely fashion.
My concern is that until that is fixed in Method, not sure if there are any downstream impact when removing the value in this field on service items. It shouldn't be populated anyway and no issues have popped up as of yet but it has only been a couple of hours but I am not comfortable removing field values that Method controls.
Anyone experienced this before or have any thoughts on the ramifications of clearing that field?