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