| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method MPSync_ImportRecipes ( |  |   MPSync mpsync, |  |   Boolean isoverwritemanualconfig |  | ) |  | { |  |   Description: 'Import Recipes for MPSync' |  |   TextBody: |  |   [* |  |     // Jian Giang Aug-25-2016 (created) |  |      |  |     recipes := selectset( mpsync, IORecipe, io, true, io.IsValid() ); |  |     ingredients := selectset( mpsync, IOIngredient, io, true, io.IsValid() ); |  |      |  |     recipeingredients := selectset( mpsync, IORecipeIngredient, io, true, io.IsValid() ); |  |     recipewitheffectivedates := selectset( mpsync, IORecipeWithEffectiveDate, io, true, io.IsValid() ); |  |      |  |     this.MPSyncRecipe( isoverwritemanualconfig, recipes ); |  |     this.MPSyncRecipeWithEffectiveDate( isoverwritemanualconfig, recipewitheffectivedates ); |  |     this.MPSyncIngredient( isoverwritemanualconfig, ingredients ); |  |      |  |      |  |     // RecipeIngredient depends on Recipe, Ingredient and IngredientCategoryInRecipe, |  |     // so it needs to run after those 3 |  |     this.MPSyncRecipeIngredient( isoverwritemanualconfig, recipeingredients ); |  |   *] |  | } | 
 |