CrossCompany method is used for getting cumulative data from all entities across our project
Example For Cross company
Note: While select is compulsory so we can run loop
public AmountCur totalAmount()
// PurchLine purchLine;
AmountCur amountCur = 0;
while select crosscompany purchLine
index hint PurchLineIdx
where purchLine.PurchId == purchtables.PurchId
&& !purchLine.IsDeleted
{
// amountCur += purchLine.calcLineAmountExclTax(purchLine.PurchQty );
amountCur += purchLine.calcLineAmount(purchLine.PurchQty + purchLine.ConfirmedTaxAmount );
}
return amountCur;
Comments
Post a Comment