Hello Friends ,
I am writing display method to get invoiceId on Sales Order form. Same you can also get invoice amount on form just to change select InvoiceAmount instead of InvoiceId and return type also to InvoiceAmount.
Display InvoiceId invoiceID()
{
SalesTable salesTable;
CustInvoiceJour custInvoiceJour;
;
salesTable = SalesTable::find(this.SalesId);
select InvoiceId from custInvoiceJour where custInvoiceJour.SalesId == salesTable.SalesId;
return custInvoiceJour.InvoiceId;
}
*This post is locked for comments