Login  Register

Re: Users - order -> ??? -> pick

Posted by davidnwelton on Dec 09, 2005; 12:32pm
URL: http://ofbiz.116.s1.nabble.com/Users-order-pick-tp136655p136658.html

> Ah, ok, that wasn't obvious.

Speaking of non-obvious, another thing I see throughout OFBiz is the
little yellow hyperlink in the upper right corner of something.  Those
are easy to miss, and it's generally not the direction you look for
'important' functionality in most applications.  I'd suggest moving
it.

In any case, I found the 'stock move' and tried it.  Since our goal
here is to not have stuff in the warehouse if at all possible, what we
will need to do is have orders go out automatically.  So I wanted to
see what would happen when I placed an order for more product than was
in stock, which I did with WG-1111.  It generates an error:

45401 (http-0.0.0.0-8443-Processor3) [    
RequestHandler.java:281:ERROR] Request processPhysicalStockMove caused
an error with the following message:
Error with comparison in if-compare-field between fields
[.orderItemShipGrpInvRes.quantityNotAvailable] with value [null] and
[.reservedQuantityLeftOver] with value [1.0] with
operator [greater] and type [Double]: Left value is null, cannot
complete compare for the operator greater

I tried adding this, but it just made something of a mess...oops.

--- applications/product/script/org/ofbiz/product/inventory/StockMoveServices.xml (revision
6287)
+++ applications/product/script/org/ofbiz/product/inventory/StockMoveServices.xml (working
copy)
@@ -467,7 +467,8 @@
                     </if-compare-field>

                     <!-- now one other little trick:
reservedQuantityLeftOver is not empty and if
orderItemShipGrpInvRes.quantityNotAvailable is greater than
reservedQuantityLeftOver, then the difference should be moved -->
-                    <if>
+                    <if-not-empty
field-name="orderItemShipGrpInvRes.quantityNotAvailable">
+            <if>
                         <condition>
                             <and>
                                 <not><if-empty
field-name="reservedQuantityLeftOver"/></not>
@@ -484,6 +485,7 @@
                             <env-to-env
env-name="orderItemShipGrpInvRes.quantityNotAvailable"
to-env-name="quantityNotAvailableToMove"/>
                         </else>
                     </if>
+            </if-not-empty>

----

I guess it's just fixing the symptom - I'd be curious to see what the
real fix is.

--
David N. Welton
 - http://www.dedasys.com/davidw/

Linux, Open Source Consulting
 - http://www.dedasys.com/
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users