Procházet zdrojové kódy

Also exporting PurchaseGL

Kenric Nugteren před 2 roky
rodič
revize
bc5ab052a6

+ 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;