Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Before you start

  1. Make sure you have JDK8 installed
  2. Fork https://github.com/qcadoo/mes/
  3. Build MES using branch master. Branch dev may be currently unstable - some tests may temporarily fail.

Assignment

  1. Add new model purchase to plugin basic with fields:
    • product - product from basic plugin,
    • quantity - quantity of product,
    • price - price of product,
    • date - date with time.
  2. Add validator which would check if product price is > 0.
  3. Add validator which would check if product quantity is > 0.
  4. Add validator which would check if there is no product with the same name and price.
  5. Add views for that model with list and add/edit details.
  6. (OPTIONAL) Add hooks which would set product unit
    1. add disabled input field next to quantity field in purchase details view
    2. when product changes, this field also should be updated.
  7. Add button to ribbon in purchases list or details which will count average price of all purchases or average price of product. The result can be presented in any way (for example as a simple popup or field on the view).
  1. Plugin developement
  2. Our coding conventions
  3. Javadoc
  4. Github repository

 

 

  • No labels