[OFBiz] Users - Automatic Purchasing

Christopher Farley chris at northernbrewer.com
Wed Nov 16 13:29:38 EST 2005


Si Chen (sichen at opensourcestrategies.com) 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


More information about the Users mailing list