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