Browse Source

Also exporting PurchaseGL

Kenric Nugteren 2 years ago
parent
commit
bc5ab052a6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      prs.shared/Posters/Timberline/StockMovementTimberlinePoster.cs

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

@@ -252,7 +252,8 @@ public class Module
                 isdefault: true,
                 columns: new Columns<Product>(x => x.ID)
                     .Add(x => x.Name)
-                    .Add(x => x.CostCentre.Code));
+                    .Add(x => x.CostCentre.Code)
+                    .Add(x => x.PurchaseGL.Code));
 
             model.AddLookupTable<StockMovement, Job>(x => x.Job.ID, x => x.ID, sourcealias: "FullTransactions",
                 isdefault: true,
@@ -331,6 +332,7 @@ public class Module
                 line.TransactionDate = movement.Date;
                 line.Description = product.Name;
                 line.Amount = movement.Value;
+                line.CreditAccount = product.PurchaseGL.Code;
                 line.BatchType = batch?.Type ?? StockMovementBatchType.Transfer;
 
                 bool success = true;