bug in releasing mfg order

2012-09-27
2013-03-07
  • Zuhair Hammadi

    Zuhair Hammadi - 2012-09-27

    Dear all,

    In order to release a manufacturing order, system check if the component required available.
    If the product inventory have mutable set instance, system not sum the quantity and error message raised.

    MPPOrder.java
    /**
    * Check if the Quantity from all BOM Lines is available (QtyOnHand >= QtyRequired)
    * @return true if entire Qty is available for this Order
    */
    public boolean isAvailable()
    {
    String whereClause = "QtyOnHand >= QtyRequired AND PP_Order_ID=?";
    boolean available = new Query(getCtx(), "RV_PP_Order_Storage", whereClause, get_TrxName())
    .setParameters(new Object{get_ID()})
    .match();
    return available;
    }

    Regards,
    Zuhair Hammadi
    www.open-inside.com

     
  • Zuhair Hammadi

    Zuhair Hammadi - 2012-10-02

    any one can help ?

     

Log in to post a comment.