Releases: borgia-app/Borgia
Releases · borgia-app/Borgia
4.5.4
4.5.3 Misc. 4.5
More fixes for 4.5
More fixes for 4.5
Fixes :
- Remove Validation error in views (#26)
- In SelfTransfert, a User can, in 4.5 version, transfer to himself. Bug fixed
- Shops can now have same product with different quantities without bug in display.
Some fixes 4.5
Some fixes 4.5
Fixes
- Fix a bug showing removed products in shop checkup dc51871.
Changes
- Change footer to match version 4.5 and add some links to github.
Changes and fixes after REX Birse
Changes and fixes after REX Birse
See REX Birse Millestone.
Features
- Now use Django 2.0 80f55d9.
- A new page let groups with permission to manage settings of the application. 3733430. Currently, these settings are:
- Minimal and maximal amount to add money with Lydia. Both settings are optional. Maximal must be greater or equal than minimal.
- Lydia tokens: API (private) & Vendor (public).
- Center name for global Borgia website.
- Margin profit for prices, mandatory.
- Threshold and frequency for mail alert when balance is under threshold (#24 & #7 ).
- Threshold balance to be able to purchase 10a670b.
The permission required to manage settings is change_setting. This permission is added by default to groups presidents, vice-presidents-internal and treasurers with the fixture groups.
- When manager want to finish event, 3 new possibilities : 4e82246 (#14)
- Calculate price by divising total
- Fix price by ponderation
- No payment (previous finish)
Changes
- Autocompletion username changes its behavior (#3 #2) 7c8322c.
- Improvements in sale module interface concerning JS (#3) 7c8322c.
- Disabled products can still be selected in a category, but they're indicated with a "DESACTIVE" in the label (#5) 18c7653.
- Disabled products are shown with a "DESACTIVE" and a red style in module workboards
(#5) 18c7653. - Disabled products cannot be purchased in a sale module (#5) 18c7653.
- Products can now be "removed". They'll totally be removed from interfaces of shops (cannot be selected, sold or reviewed), but previous entries (sales, stock entries, inventories, ...) are still valid (#5) 18c7653.
- Add permissions to manage inventories by default to chiefs and associates of a shop (auto added during the creation of a shop) f0af2b8.
- When the estimated quantity in stock is negative, display 0 (#4) f0af2b8.
- 0 is now allowed as a quantity in stock during an inventory (#4) f0af2b8.
- Active products in the shop, but not listed in the inventory are considered within a null quantity in the stock (#4) f0af2b8.
- Add autocompletion in modules and other user fields. Add user-icon where autocompletion is used. #2 7c8322c
- Default value for settings aren't in a fixture anymore, but in
settings.py
instead 3733430. - Add a new function
settings_safe_get
which returns the rightSetting
or create it with default value given insettings.py
. Errors aren't excepted in this function because Borgia should not work with a bad configuredsettings.py
3733430. - The method
get_value
ofsettings_data.Setting
now sendNone
ifvalue == ''
(Keep in mind thatvalue
is always a string, and thatget_value
send the right type) 3733430. - It's now possible to add money with Lydia with a decimal number (1.23 for instance) 3733430.
- Ensure that min and max are used in the form to add money for Lydia. If no min value is set, 0.01 is the minimal value by default 3733430.
- Remove useless files in root folder 253677b.
- Remove useless imports in all python files 253677b.
- Remove useless fixtures 253677b.
- Remove useless avatar images 253677b.
- Remove unused app
api
and all related dependencies (graphene, graphql & jwt) 253677b. - Remove unused classes
FormNextView
,CreateNextView
andUpdateNextView
253677b. - Add the permission to change products prices by default to chiefs of shop (during the creation of the shop). Associates aren't concerned but as the permission is added to chiefs, it can be added to associates by the
manage group
form 10a670b.
Fixes
- Fix ZeroDivisionError, DivisionUndefined or DivisionByZero raised when updating the correcting factor after an inventory if no sale were created since the last inventory. Updating the correcting factor is then passed (#4) f0af2b8.
- Handle (ZeroDivisionError, DivisionUndefined, DivisionByZero) for every possible division by 0 b3ecbf7 (#4 #18)
- ValidationErrors on login d9893bf
- Margin right of user fields were too high d9893bf
- Transaction color are now the same as every transaction list (basically credit green and debit red) for user retrieve page 845ce0e (#25).
- Transaction amount now show the sign (credit + and debit -) for user retrieve page 845ce0e (#25).
- The type of the field
amount
in the form to add money with Lydia is fix fromemail
tonumber
3733430. - Fix typo ("porte monnaie" -> "porte-monnaie") in templates
global_config.html
andbalance_config.html
10a670b. - Fix view and template
modify price product
to use the rightMARGIN_PROFIT
setting 10a670b. - Ajax to get price per users in ManageUsers c3d4284.
- Removing all users 84fc53e.
- Some permissions et verifications 5f11c15.
- Form fields in the page
Liste et gestion manuelle des utilisateurs concernés
in shared event now have the classform-control
to look nicer 2e325f9. - If user has the permission, now he can add a shared event by in the lateral menu 1f56704.
Todo
Update Django package
pip3 install django==2
Update Django Static Precompiler
pip3 install django-static-precompiler==1.7
Makemigrations & migrate
python3 manage.py makemigrations
python3 manage.py migrate
Stable version 4.4.0
News from version 3
- New models for products and stocks
- New stock behavior
- Separation between stock management and sales
- Center (name, color, icon, ...) is now generic and variable