Hi all,
I want to add a restriction on a item for sell.
In standard ax,only restriction for coutry and state is available,I want it for zipcode,city,county.
I had added the fields,in PDSMRCREstriction list form and by item form.
what modifications in the code should I do to get a info thrown for restriction added for particular item in the restriction list.
*This post is locked for comments
Hi Steven,
I had created a new form Zip/postal code groups,in which the Zip/postal code group is a group of zipcodes for particular selected state or country,so the purpose is to block a certain group of zip codes together.
I am sorry I dint mention it,even this field Zip/postal code group is added in the PDSMRCRESTRICTION list form & zip/postal code field is blocked when Zip/postal code group is filled in.
I am aware what AX does and this is sufficient for most businesses I would argue. You have not told me the business justification for it.
Lets say you want to put this into the UK, there are 1.8 million postcodes, theoretically which business will spend the time to go to this level per customer? The aim of the AX standard is to prevent you sending bannned goods to a region whilst giving you the ability to sell to other regions. Having it on postcode seems to add little benefit, for one customer with 100 delivery address you are saying allow delivery in 20 but not 80 and therefore add 80 restriction lines - is this really what you want?
From a code perspective repetition of the active code but within the elements of the added fields, assuming you have added those into the setup form for restriction as well.
Hey Steven,
The business logic is Ax considers only country & state for sell restriction through standard PDSMRCRestrictionList in Inventory management. you can check out.
The requirement is to add more precise delivery address details to this check like zipcode,city,county..
I had done it..
one need to modify the
saleslineType_sales class
Method-pdsmrccheckrestricted which is called whenever you add any item in sales line
That is a HUGE setup on the combinations of postcode - so what you are saying is you can deliver to my neighbour but not me. What is the business justification for the coding?
May You Can Use Extensible Data Security (XDS) Policy to Restrict item.
For More Info
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156