I would like to customize our Sales Order Detail tab so that when a Part is selected, the system looks up the vendor id and name and populate them into applicable custom fields:
However, there doesn’t appear to be a link between part numbers and vendors - any ideas on how I could go about looking up the Vendor Name and Id when a part number is selected?
I would think maybe a BPM on whatever the method is that changes the part Number and then you could perform a lookup to a BAQ that returns back the Vendor Name and passes it to your custom field(s) would be appropriate.
You might already be aware of this, but in case not, if you setup the part as buy to order in part master and put vendor on it, the data will automatically populate on the sales order release.
select top (1)
[VendPart].[VendorNum] as [VendPart_VendorNum],
[Vendor].[Name] as [Vendor_Name]
from Erp.VendPart as VendPart
inner join Erp.Vendor as Vendor on
VendPart.Company = Vendor.Company
And
VendPart.VendorNum = Vendor.VendorNum
where (VendPart.PartNum = @PartNumValue)
I thought dohp (homer simpson) and then checked. It does indeed populate without running suggestions, nor mrp. I do have generate PO suggs checked on the part / site but I didn’t run it and get this:
Yep, I just entered the part on the sales order line and got the vendor info. One difference on mine, I have vendor in the Part / Site field per below:
Turns out you don’t need to add the vendor as an approved vendor for the part. Just need the Part to be BTO, and set the supplier on the site.
Works, regardless of the Qty Bearing field. Although that will affect the PartTran Type BTO && QtyBearing := PUR-STK
while BTO && NOT QtyBearing := PUR-UKN