How can I setup a default Buyer for a specific plant in PO Entry

Hello,

We are now with 5 different plants. We have 3 different buyers .
Buyer 1 is for site A and B
Buyer 2 is for site C and D
Buyer 3 si for site E

For site C, D and E, when creating a new PO, it is always Buyer 1 showing.

How could I change this so that it is the default buyer for that site?

Or maybe use the current user as the buyer if he is existing in the buyers list. ? (that would ensure who created the PO ? )

Thanks

Pierre

Part → Sites → Detail → Buyer?

1 Like

PartPlant.BuyerID - update via DMT?

1 Like

So it would be only associated via each part???

So no choice of configuring this via DMT…

Would have been 'nice to have ’ the option in site configuration as well as a global site default… then if specific part need a specific buyer… then PartPlant.BuyerID would be used…

Thanks.

Pierre

If you’re doing site-specific buying then you might not have a choice. I checked Site Config and Warehouse…not there. Only other table I found it in so far is in Part Class…

Well well … When I create a new PO, I have not yet selewcted my part to add to the PO.
There is a default buyer shwing in the Summary:

It is that buyer info I want to change, ideally by the current user (if it is a valid buyer of course)

I did add the part where a setup another buyer as default, but the summary buyer did not change…

So the PO header, by default I do not know where it is getting the info, but always has that specific buyer. Lise.

The user would like to be himself when he creates the Po… and not needing to change it manually afterwards…(cause he forgets often… )

So the change of default buyer per part does not do the trick here…

Pierre

Hmph…if it’s coming up without even selecting a Supplier then we’re back to square one. :frowning:

EDIT - just thought of something…the PartPlant.BuyerID (and PartClass.BuyerID) likely come into play with PO suggestions that you’d convert to POs…but I can’t explain the manual PO entry side.

1 Like

That is exactly what happens !!!

I am lookinginto the method directive Erp.BO.PO.GetDefaultBuyer see if I can force it there…
Pierre

1 Like

Well GetDefaultBuyer I have just put a message to show and nothing showed.

I saw a method used where LT is the buyer shown as default (again I do not know from which config this happens…)

Erp.Proxy.BO.PurAgentImpl GetByID https:the server Erp.BO.PurAgentDataSet 2025-01-16 09:17:19:9498811 AM 1 84c34de4-d421-4ea0-bf58-4c60b0c1130a 0

But was not successfull using that.

What I end up doing is on the Post of GetNewPOHeader, I grab the current userid, go get the PerCon record of that user, and then grab the PerConID and go get the record in PurAgent having this PerConID.
This gives me a valid Buyer
Then I force the BuyerID and BuyerName with the info from PurAgent table.

That worked! :wink:

I still need to tests different scenarios such as using POsuggestions etc… I will keep you posted!

Pierre

2 Likes