Hello, looking for a bit of help as I cannot get the Vendor condition whether it is Approved or not to fire the BPM properly. This fires when entering a vendor in the subcontract shipment form.
Erp.Tables.Vendor Vendor;
foreach (var ttSubShipH_iterator in (from ttSubShipH_Row in ttSubShipH
where string.Equals(ttSubShipH_Row.RowMod, IceRow.ROWSTATE_ADDED, StringComparison.OrdinalIgnoreCase)
|| string.Equals(ttSubShipH_Row.RowMod, IceRow.ROWSTATE_UPDATED, StringComparison.OrdinalIgnoreCase)
select ttSubShipH_Row))
{
var ttSubShipH = ttSubShipH_iterator;
foreach (var Vendor_iterator in (from Vendor_Row in Db. Vendor
where Vendor_Row.Company==ttSubShipH.Company
&& Vendor_Row.VendorNum==ttSubShipH.VendorNum
&& Vendor_Row.Approved==true
select Vendor_Row))
{
}
}