浏览代码

PRS DESKTOP - bug fix PO screen not showing all POs if show all configuration was saved

Nick-PRSDigital@bitbucket.org 2 年之前
父节点
当前提交
1d9ff2f4be
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      prs.desktop/Panels/Suppliers/SupplierPurchaseOrderPanel.xaml.cs

+ 3 - 0
prs.desktop/Panels/Suppliers/SupplierPurchaseOrderPanel.xaml.cs

@@ -74,6 +74,9 @@ namespace PRSDesktop
         public void Setup()
         {
             settings = new UserConfiguration<PurchaseScreenSettings>().Load();
+            if (settings.ShowAll)
+                Orders.ShowAll = true;
+
             SplitPanel.View = settings.ViewType == ScreenViewType.Register ? DynamicSplitPanelView.Master :
                 settings.ViewType == ScreenViewType.Details ? DynamicSplitPanelView.Detail : DynamicSplitPanelView.Combined;
             SplitPanel.MasterWidth = settings.PurchaseColumnWidth;