Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "The sub-entities budget amount exceed the parent budget" when it isn't #86

Open
eduardomozart opened this issue Apr 9, 2021 · 0 comments

Comments

@eduardomozart
Copy link
Contributor

eduardomozart commented Apr 9, 2021

  • Version of the plugin : 1.7.0

  • Version of your GLPI : 9.5.4

  • Steps to reproduce (which actions have you made) :

  1. Create a new Budget into "Root Entity", with the value of "1076" and period of 01-March-2021 up to 31-March-2021.

glpi_plugins_printercounters_front_budget form root

  1. Create a new Budge into "Root Entity > São Leopoldo" (sub entity), with the value of "786" and period of 01-March-2021 up to 31-March-2021.

glpi_plugins_printercounters_front_budget form sl

  1. Error "The sub-entities budget amount exceed the parent budget" is thrown, but the Amount of subentity isn't higher than Root entity.
  • Expected result :

Budget from sub entity should be added succesfully.

  • Actual result :

Budget from sub entity isn't added successfully.

  • URL of the page :

https://glpi.example.com/plugins/printercounters/front/budget.form.php

  • Screenshot of the problem (if pertinent) :

See above.

  • Additional information :

A workaround for this issue is adding first the budgets from subentities and just only after adding them add the budget from Root entity.

But I'm not sure if the situation from screenshot below is happening because of that:

glpi_main_table_budge_printer_counter

But I believe that the Printer Counters plugin should group Budgets from dates as a subitem of the corresponding Root entity budget date together, but it isn't happening - Budgets from "March" and "February" is shown inside "February" budget. Instead, "March" budget from subentities should be shown below "March" budget from Root entity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant