BPA Invoice Details: tweak query