Browse Source

Added supplier statuses

Kenric Nugteren 1 year ago
parent
commit
420b37ba00

+ 1 - 2
prs.desktop/Panels/Customers/CustomerPanel.xaml.cs

@@ -74,6 +74,7 @@ namespace PRSDesktop
 
         public void CreateToolbarButtons(IPanelHost host)
         {
+            AccountsSetupActions.Standard(host);
             host.CreateSetupActionIfCanView<CustomerStatus>("Customer Statuses", PRSDesktop.Resources.customer,
                 action =>
                 {
@@ -81,8 +82,6 @@ namespace PRSDesktop
                     list.ShowDialog();
                 });
             host.CreateSetupSeparator();
-            AccountsSetupActions.Standard(host);
-            host.CreateSetupSeparator();
             AccountsSetupActions.CustomerSpreadsheetTemplates(host);
             //host.CreateToolbarButton(new PanelAction() { Caption = "Select Columns", OnExecute = DoSelectColumns, Image = PRSDesktop.Resources.shared });
             PostUtils.CreateToolbarButtons(

+ 6 - 0
prs.desktop/Panels/Suppliers/SupplierPanel.xaml.cs

@@ -55,6 +55,12 @@ public partial class SupplierPanel : UserControl, IPanel<Supplier>
     {
         AccountsSetupActions.Standard(host);
         
+        host.CreateSetupActionIfCanView<SupplierStatus>("Supplier Statuses", PRSDesktop.Resources.supplier,
+            action =>
+            {
+                var list = new MasterList(typeof(SupplierStatus));
+                list.ShowDialog();
+            });
         host.CreateSetupActionIfCanView<SupplierCategory>("Supplier Categories", PRSDesktop.Resources.supplier, (action) =>
         {
             var list = new MasterList(typeof(SupplierCategory));