Przeglądaj źródła

Job Stock Holdings Grid is now multi-select
Corrected inverted StockTake GL Codes in Timberline Stock Movements Post

frogsoftware 2 miesięcy temu
rodzic
commit
eeee280ab0

+ 2 - 0
prs.desktop/Panels/Jobs/Stock Holdings/JobStockGrid.cs

@@ -141,9 +141,11 @@ public class JobStockGrid : DynamicDataGrid<StockHolding>, IMasterDetailControl<
         base.DoReconfigure(options);
         options.Clear();
         options.FilterRows = true;
+        options.HideDatabaseFilters = true;
         options.RecordCount = true;
         options.SelectColumns = true;
         options.ExportData = true;
+        options.MultiSelect = true;
     }
     
     protected override void Reload(

+ 7 - 1
prs.shared/Posters/Timberline/StockMovementTimberlinePoster.cs

@@ -399,7 +399,13 @@ public class StockMovementTimberlinePoster : ITimberlinePoster<StockMovement, St
                                 var gl = new StockMovementTimberlineGL { };
                                 gl = ModifyLine(gl, mvt);
                                 var product = products[mvt.Product.ID];
-                                gl.DebitAccount = product.SellGL.Code.NotWhiteSpaceOr(Settings.StockTakeGL);
+                                
+                                // 2025-10-15 Shirley reports that for these transactions, the credit and debit accounts 
+                                // are back-to-front, so we're going to revrese them to make sure the accounts are updated
+                                // with the  correct amounts
+                                gl.DebitAccount = gl.CreditAccount;
+                                gl.CreditAccount = product.SellGL.Code.NotWhiteSpaceOr(Settings.StockTakeGL);
+                                
                                 if (ProcessGLLine(model, mvt, gl))
                                 {
                                     AddMovement(mvt, gl);