Re: [RFC] Order package entities
Posted by
David E Jones on
URL: http://ofbiz.116.s1.nabble.com/RFC-Order-package-entities-tp178233p178237.html
On Feb 15, 2007, at 12:52 AM, Jacopo Cappellato wrote:
> Chris Howe wrote:
>> There's just seems to be a lot of redundancy with this. I'm not so
>> concerned with request, quote or shoppinglist (i meant to include
>> that
>> as well) as there isn't much business logic overlap. However, with
>> return there is quite a lot (inventory management, possibly shipping,
>> OrderItemAssoc, Adjustments etc). While it currently works, it makes
>> it quite a bit more difficult to learn as someone trying to pick
>> it up
>> is likely to erroneously assume it has less in common with
>> OrderHeader,
>> etc than it actually does. I think there's some interest in making
>> these simpler to use/ more generic. Are you against because of
>> resources (time actually spent rewriting/reviewing it) or is there
>> more
>> of a technical aspect (backwards compatibility, fragile code, etc)?
>> Chris
>
> I don't think that the learning curve needed to use returns could
> be much more different if the returns are stored in the order
> entities instead of their own. For example, my clients are usually
> surprised (and sometimes concerned) when I explain them that the
> purchase and the sales orders are actually stored in the same
> entity (that is a good thing!)...
> From the developers point of view, in my opinion there are pros and
> cons (as I said before) for storing returns in the order entities:
> less separate services that (probably, but I did not do a serious
> analysis on this) could do similar tasks; on the other hand, the
> order services will be more complex (and also data extraction and
> preparation).
> For this, since I don't see real problems in the current
> implementation that will be addressed by this refactoring, I don't
> see it really something worth of the effort.
I agree with Jacopo there. Using something generic for all of these
would be a huge mess. It may seem that there is redundancy in them,
but there really isn't. They are very different things. They are
created using similar patterns and because they are often associated
with one another there are also some similar patterns. But no, they
really aren't the same thing at all and have VERY different
requirements for process and data to store.
-David