Забыли в inite() CustInvoiceJour_DS выбрать SalesId
X++:
qbds = this.query().dataSourceName('CustInvoiceJour');
qbds.addSelectionField(fieldnum(CustInvoiceJour, RecId));
qbds.addSelectionField(fieldnum(CustInvoiceJour, SalesId));
При ограничении буфера, у меня отлично отрабатывает при отсутствии полей
Для
CustInvoiceJour
X++:
// !!! qbds.addSelectionField(fieldnum(CustInvoiceJour, DocReestrInvoice_UAI));
// !!! qbds.addSelectionField(fieldnum(CustInvoiceJour, DocReestrAttorney_UAI));
// !!! qbds.addSelectionField(fieldnum(CustInvoiceJour, RContractCode));
// !!! qbds.addSelectionField(fieldnum(CustInvoiceJour, CashCheck_UAI));
// !!! qbds.addSelectionField(fieldnum(CustInvoiceJour, AttorneyId_RU));
// !!! qbds.addSelectionField(fieldnum(CustInvoiceJour, AttorneyIssuedName_RU));
// !!! qbds.addSelectionField(fieldnum(CustInvoiceJour, Description_UAI));
Для CustTable1
X++:
// !!! qb.addSelectionField(fieldNum(CustTable,CodeOKPO_RU));
И еще в ShowLines надо
CustInvoiceJour_ds.executeQuery();
вместо
CustInvoiceJour_ds.research();
Последовательно отключайте поля, пока не добъетесь результата. Начать лучше с полей типа:
CustInvoiceJour.Description_UAI
CustInvoiceJour.DeliveryAddress