Browse Source

PRS DESKTOP - changed security token of stock take to can edit stock movements

Nick-PRSDigital@bitbucket.org 2 năm trước cách đây
mục cha
commit
c48ff627ef

+ 1 - 1
prs.desktop/Panels/Products/Locations/StockLocationGrid.cs

@@ -28,7 +28,7 @@ namespace PRSDesktop
 
             ShowAllBtn = AddButton("Show All", PRSDesktop.Resources.parcel.AsBitmapImage(Color.White), ToggleHiddenJobs);
 
-            if (Security.CanEdit<StockHolding>())
+            if (Security.CanEdit<StockMovement>())
                 StockTakeBtn = AddButton("Stock Take", PRSDesktop.Resources.rack.AsBitmapImage(Color.White), DoStockTake);
             HiddenColumns.Add(x => x.Job.ID);