Ну в общем имел в виду
X++:
while select VendInvoiceJour join vendTrans join vendInvoiceTrans where
VendInvoiceJour.PurchId == vendInvoiceTrans.PurchID &&
VendInvoiceJour.InvoiceId == vendInvoiceTrans.InvoiceId &&
VendInvoiceJour.InvoiceDate == vendInvoiceTrans.InvoiceDate &&
VendInvoiceJour.numberSequenceGroup == vendInvoiceTrans.numberSequenceGroup
&&
vendInvoiceJour.LedgerVoucher == vendTrans.Voucher &&
vendInvoiceJour.InvoiceAccount == vendTrans.AccountNum &&
vendInvoiceJour.InvoiceDate == vendTrans.TransDate
&&
vendInvoiceTrans.InvoiceId == "RV300654228" //&&
// vendTrans. //range on vendTrans
{
info(VendInvoiceJour.InvoiceId);
}
То есть AND между результатами выборки из VendinvoiceTrans и vendTrans.