while select OrigSalesId from _CustInvoiceTrans2 group by _CustInvoiceTrans2.OrigSalesId where _CustInvoiceTrans2.SalesId == _custInvoiceJour.SalesId { salesInvoiceHeaderFooterTmp.SalesIds += _CustInvoiceTrans2.OrigSalesId +'/ '; }
while select OrigSalesId from _CustInvoiceTrans2 group by _CustInvoiceTrans2.OrigSalesId where _CustInvoiceTrans2.SalesId == _custInvoiceJour.SalesId { salesInvoiceHeaderFooterTmp.SalesIds += _CustInvoiceTrans2.OrigSalesId +'/ '; }