Menu

Error while adding new fields to Webstore

2011-10-05
2013-03-07
  • Scott Furtado

    Scott Furtado - 2011-10-05

    Hello,

    I added a virtual column to the product table called QtyOnHand that accurately displays the quanity on hand.  I am trying to add it to the webstore by changing product.uomname to product.QtyOnHand.  When I load the page I receive an error

    Adempiere System Error
    Sorry, an error occured. If the error persists, please inform us.
    Error Message:
    Property 'QtyOnHand' not found on type org.compiere.wstore.PriceListProduct
    Stack Trace:
    javax.el.PropertyNotFoundException: Property 'QtyOnHand' not found on type org.compiere.wstore.PriceListProduct
    

    Would anyone be able to assist me?  I feel like I may have to edit a java file but I only see a PriceListProduct.class and I cannot open it.  Does this require me to compile Adempiere from source and include the modified files before hand?

    Thank you very much.

    Scott

     
  • Trifon (An ADempiere founder)

    Hi Scott,

    In order to add QtyOnHand you must edit java class: PriceListProduct
    serverApps/src/main/servlet/org/compiere/wstore/PriceListProduct.java

    It is used by class PriceList:
    serverApps/src/main/servlet/org/compiere/wstore/PriceList.java

    After changing and compiling this classes you must build ADempiere.

    Regards,
    Trifon

     

Log in to post a comment.