Browse Source

Fixed bug in update script which caused updates to not work.

Kenric Nugteren 1 year ago
parent
commit
ed2d816655
1 changed files with 2 additions and 0 deletions
  1. 2 0
      prs.shared/Database Update Scripts/Update_7_63.cs

+ 2 - 0
prs.shared/Database Update Scripts/Update_7_63.cs

@@ -58,6 +58,8 @@ public class Update_7_63 : DatabaseUpdateScript
                 {
                     movement.Type = StockMovementType.Issue;
                 }
+                // manually setting original value because originally the same.
+                movement.SetOriginalValue(x => x.Type, StockMovementType.Receive);
             }
             DbFactory.Provider.Save(movements);
         }