Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10684

Edit supplier form missing values



    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 16.11.05
    • Fix Version/s: None
    • Component/s: product
    • Labels:
    • Environment:

      Linux Ubuntu 18.04

      JDK 1.8.0_181

    • Sprint:
      OFBiz Community Day (May 2019)


      To reproduce:

      • Go to the catalog manager and modify a product
      • Go to the supplier tab and add a supplier. Fill in the supplier product ID and product Name
      • Save the supplier
      • Now click the edit button next to this supplier
      • Most of the fields are not prefilled

      I found these fields at least not to be filled:

      • Standard lead time days
      • Order qty increments
      • Units included
      • Quantity UomId
      • Last price
      • Shipping price
      • Supplier product name
      • Supplier product ID
      • Remarks

      I don't have any agreements in my database, so haven't checked those fields. All data is stored in the database, but not visible in the edit form.

      I have checked the file applications/product/widget/catalog/ProductScreens.xml for the form `EditSupplierProduct` which contains completely different fields from what is on my screen, so I don't really get that. The form is also not being altered by JavaScript (I tried to disable javascript).

      Now the weird thing is, sometimes when I add extra suppliers and modify them, some of the fields mentioned above (but not all) are prefilled as well. 

      Furthermore, I feel it is related, when you delete the supplier link it sometimes returns an error `Value not found, cannot remove`. I have checked where it came from and it is caused by the entity service to delete entities. It expects all fields for primary key, which for this table are PRODUCT_ID, PARTY_ID, CURRENCY_UOM_ID, MINIMUM_ORDER_QUANTITY, AVAILABLE_FROM_DATE. But these fields are not all mandatory.




            • Assignee:
              pawan Pawan Verma
              FrankH Frank Herrman
            • Votes:
              0 Vote for this issue
              4 Start watching this issue


              • Created: