void GRN.Create_GRN(Purchase_Order_Subform posub)
{
poid = list();
povendlist = list();
for each recval in posub
{
poid.add(recval);
fetpomain = Purchase_Order[ID == recval.Purchase_Order_ExisID];
povendlist.add(fetpomain.Vendor_Name);
}
if(povendlist.distinct().size() == 1)
{
openUrl("#Form:GRN?Purchase_Order_Subform_RECID=" + poid,"same window");
}
else
{
openUrl("#Form:Alert_Messages?Status=GRN&Value=Selected Vendors are not same pls check.&zc_LoadIn=dialog","same window");
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter