Hi All 

I changed in the order flow a little and therefore now I have to do some
customization in the picking process

My flow goes as follows
I've added an attribute in the customer party called require prepayment this
indicates if the customer should make down payments in the his orders or
not.
in the sales order I do checking if this customer has the require prepayment
attribute the prepayment should be received first then the order shall move
from "ORDER_APPROVED "to a state called "Ready for shipping"
Now regarding the picking I want the order that are ready to be picked
should be either of the two cases:
1-Ready to ship
2-Approved and the customer doesnt have the require prepayment attribute

I was able to do that checking using ftl and groovy by using
orderReaderHelper to get the customer then check the require prepayment
attribute but how can I make that checking in pickListservices
in that service the checking is done this way

 <condition-list combine="and">
                        <condition-expr field-name="orderTypeId"
value="SALES_ORDER"/>
                        <condition-expr field-name="statusId"
value="ORDER_APPROVED"/>
                        <condition-expr field-name="isRushOrder"
from-field="parameters.isRushOrder" ignore-if-empty="true"/>
                    </condition-list>
Can I modify this to match the scanrio I want 
In other way make the order possible for picking if it's status is
"READY_TO_SHIP" or 
if the order status is "ORDER_APPROVED" and the customer doesn't have the
require prepayment field 
does the minilang allow me to write such a code ? or it would be safer to
make the scenario I want want lead to another status and simply check on
that status?

-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Customization-of-pickList-services-tp3020899p3020899.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to