Re: Dev - UoM Conversion Enhancement

Posted by Carl Sopchak on
URL: http://ofbiz.116.s1.nabble.com/Dev-UoM-Conversion-Enhancement-tp167105p167113.html

Jacopo, thanks for pointing this out!  This should make the flexibility that
should be implemented must simpler to do (since the code is already there -
or close enough to copy and modify).

One of my hesitations with going for a more general solution is that this is
my first attempt at modifying OFBiz.  I know I can implement my first
suggestion, but things are still fuzzy with the CustomMethod approach.  I do
feel that this is the best way to go, though, so I'll invest some time in
designing a solution based on it and resubmit my plan.

Could someone point out an example of the usage of the CustomMethod logic?

Thanks,

Carl

On Friday, March 10, 2006 02:29, Jacopo Cappellato wrote:

> Carl, Adrian, Si, others,
>
> I'd suggest to have a look at the CustomMethod and CustomMethodType
> entities (defined in the framework/common component). You could add a
> "customMethodId" field to the UomConversion entity.
> Then in the CustomMethod entity we simply map the logical name
> (customMethodId) to the service name that implements the conversion
> (customMethodName).
> This pattern is already used to implement the manufacturing formulae for
> bom and route calculations.
>
> Jacopo
>
> Adrian Crum wrote:
> > Si,
> >
> > That's similar to the approach I was suggesting. I added an additional
> > layer though. Your suggestion would be simpler and easier to implement.
> >
> > Carl,
> >
> > We have to convert LF to BF just like you. My suggestion was intended to
> > accomodate additional UOM conversions down the road.
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev