Added condition to show resources budget column
FEA: ItEr77S17AutomaticBudgeting
This commit is contained in:
parent
b65c34382f
commit
43e14d8dae
1 changed files with 6 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ import static org.libreplan.web.I18nHelper._;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.libreplan.business.common.Registry;
|
||||
import org.libreplan.business.common.daos.IConfigurationDAO;
|
||||
import org.libreplan.business.common.entities.Configuration;
|
||||
import org.libreplan.business.orders.entities.OrderElement;
|
||||
|
|
@ -94,7 +95,9 @@ public class OrdersTreeComponent extends TreeComponent {
|
|||
|
||||
});
|
||||
|
||||
// Pending to add condition with configuration.isEnabledAutomaticBudget
|
||||
if (Registry.getConfigurationDAO()
|
||||
.getConfigurationWithReadOnlyTransaction()
|
||||
.isEnabledAutomaticBudget()) {
|
||||
columns.add(new OrdersTreeColumn(_("Resources"), "autobudget",
|
||||
_("resources")) {
|
||||
|
||||
|
|
@ -106,6 +109,8 @@ public class OrdersTreeComponent extends TreeComponent {
|
|||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
columns.add(new OrdersTreeColumn(_("Must start after"),
|
||||
"estimated_init",
|
||||
_("Estimated start date for the task (press enter in textbox to open calendar popup or type in date directly)")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue