Improvements and New features of system Tee-pee

 

[Improvement] Order author improvements

  • Add Order dialogue window (accessible via plus + in Unit's Order tab) and Edit Order dialogue window and Add order (via new function dialogue window) (accessible via three dots menu in Unit's Order tab) is edited as follows: 
    • Author name is changed from required field to optional
    • New field "Function" is added as a required field - dropdown field 
    • Order name - obligatory
    • Order date - obligatory
    • Order WWW address - optional
  • Settings / Membership / Functions tab - "Add Function" and "Edit Function" dialog window - added checkbox "Function for Order assignment"" is added 
    • Functions with the checkbox ticked will be displayed / feeded into the "Function" dropdown menu in the Add Order and Edit order dialogue window. If the Author is filled in in the Add Order and Edit order dialogue window, an automatic validation is done, to check if the person/ author had this function when the Order was created 
  • After the implementation, when editing an old Order where the Function field was not existing, the Function will be required to fill in, otherwise, it will not be possible to save the edited order.
  • A new checkbox "Unit can issue orders" / "Jednostka może wydawać rozkazy" is added to the "Add Unit Type" and "Edit Unit Type" dialogue window (as the second one under Visible in the menu). 
    • When the checkbox is ticked, all the units with this Unit type have an option to Add Order via "+" button in the Order tab in the Unit profile. All current functionality remains. When the checkbox is not ticked, all the units with this Unit type do NOT have an option to Add Order via "" button  ("" is hidden).
    • The option in the three dots menu "Edit order" and "Delete order" remains.
    • When the checkbox is not ticked, all the units with this Unit type will NOT be feeded into the "Unit" field in the Add order dialogue windows across the system (accessed either from Unit profile / Person profile). 

Bugs

  • Fix to Identification number was not erased after deletion of person.
  • Fixed problem with revoking consents.