|
@@ -950,7 +950,6 @@ namespace PRSDesktop
|
|
|
|
|
|
SetVisibility(AccountsMessagesButton, Security.CanView<Notification>());
|
|
|
SetVisibility(AccountsTaskButton, ClientFactory.IsSupported<Kanban>() && Security.IsAllowed<CanViewTasks>());
|
|
|
- SetVisibility(AccountsDataButton, Security.IsAllowed<CanViewDataEntryPanel>());
|
|
|
SetVisibility(AccountsAttendanceButton, ClientFactory.IsSupported<TimeSheet>() && Security.IsAllowed<CanViewInOutBoard>());
|
|
|
SetVisibility(AccountsMapButton, bMaps);
|
|
|
SetVisibility(AccountsDailyReportButton,
|
|
@@ -972,6 +971,8 @@ namespace PRSDesktop
|
|
|
&& Security.CanView<Supplier>()
|
|
|
&& Security.IsAllowed<ViewDesktopSuppliersScreen>());
|
|
|
|
|
|
+ SetVisibility(AccountsDataButton, Security.IsAllowed<CanViewDataEntryPanel>());
|
|
|
+
|
|
|
SetVisibility(PurchasesList, ClientFactory.IsSupported<PurchaseOrder>()
|
|
|
&& Security.CanView<PurchaseOrder>()
|
|
|
&& Security.IsAllowed<ViewDesktopPurchaseOrdersScreen>());
|
|
@@ -991,7 +992,7 @@ namespace PRSDesktop
|
|
|
AccountsDailyReportButton
|
|
|
}, new FrameworkElement[] { CustomerList, InvoiceList, ReceiptList });
|
|
|
SetVisibleIfEither(AccountsTaskSeparator2, new FrameworkElement[] { CustomerList, InvoiceList, ReceiptList },
|
|
|
- new FrameworkElement[] { SupplierList, PurchasesList, BillsList, PaymentsList });
|
|
|
+ new FrameworkElement[] { SupplierList, AccountsDataButton, PurchasesList, BillsList, PaymentsList });
|
|
|
SetVisibleIfAny(AccountsActions, AccountsDashboardButton, AccountsMessagesButton, AccountsTaskButton,
|
|
|
AccountsAttendanceButton,
|
|
|
AccountsDailyReportButton, CustomerList, InvoiceList, ReceiptList, SupplierList, PurchasesList, BillsList, PaymentsList);
|
|
@@ -1022,7 +1023,7 @@ namespace PRSDesktop
|
|
|
|
|
|
AddSetupModulesAndReports(AccountsTab);
|
|
|
|
|
|
- SetTabVisibleIfAny(AccountsTab, CustomerList, InvoiceList, ReceiptList, SupplierList, PurchasesList, BillsList, PaymentsList);
|
|
|
+ SetTabVisibleIfAny(AccountsTab, CustomerList, InvoiceList, ReceiptList, SupplierList, AccountsDataButton, PurchasesList, BillsList, PaymentsList);
|
|
|
}
|
|
|
|
|
|
private void SetupHumanResourcesTab(bool bMaps)
|