Re: [OFBiz] Users - Automatic Purchasing

Posted by Christopher Farley on
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-Automatic-Purchasing-tp136301p136307.html

Si Chen ([hidden email]) wrote:

> There is already a service called "createRequirementFromItemATP"  Did
> you see this?

I didn't use this because it:
 - requires a seqGroupSeqId and an  orderItemSeqId (none required for my
   autoGenerate method)
 - requires that the product is configured with a requirementMethodId of
   PRODRQM_STOCK_ATP. I don't want to configure my products that way,
   because I don't want requirements being generated after each sales
   order. (If this seems strange, I could tell you my reasons...)
   I would prefer that requirements are generated for all products
   (regardless of requirementMethodId) at the moment my purchasing
   manager clicks on the "Generate Requirements" button.

This, I think, adds some justfication for adding a new requirementTypeId.
These requirements are not linked to specific orders, and you might want
to keep them separate from ordinary PRODUCT_REQUIREMENTs so you can
approve, reject or delete them en masse.

--
Christopher Farley
www.northernbrewer.com
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users