Hello Community,
I need to Join PMTran and APTran. My understanding is the below join should work but when I compare some of the transactions which are generated from AP, their LineNbr doesn’t agree to OrigLineNbr in PMTran. Below is the query I need, which is a simple one but not sure why LineNbr field doesn’t align.
var tran = SelectFrom<PMTran>
.LeftJoin<APTran>
.On<PMTran.origTranType.IsEqual<APTran.tranType>
.And<PMTran.origRefNbr.IsEqual<APTran.refNbr>>
.And<PMTran.origLineNbr.IsEqual<APTran.lineNbr>>
.And<PMTran.origModule.IsEqual<BatchModule.moduleAP>>>
.View.Select(Base);
If this is not the right join, then what is it?