| Quintiq file version 2.0 | 
| #parent: #root | 
| MethodOverride UpdateWithPartialNVT ( | 
|   NamedValueTree partialnvt | 
| ) | 
| { | 
|   TextBody: | 
|   [* | 
|     // WARNING: DO NOT MODIFY THIS METHOD DIRECTLY AS IT WILL BE OVERWRITTEN. | 
|      | 
|     typenode := partialnvt.Root(); | 
|      | 
|     traverse( typenode.Children(), Elements, child ) | 
|     { | 
|       if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_AccountName ).Name() ) | 
|       { | 
|         this.AccountName( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_Cost ).Name() ) | 
|       { | 
|         this.Cost( child.GetValueAsReal() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_CostDriver ).Name() ) | 
|       { | 
|         this.CostDriver( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_ID ).Name() ) | 
|       { | 
|         this.ID( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_LengthOfTime ).Name() ) | 
|       { | 
|         this.LengthOfTime( child.GetValueAsNumber() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_ProductID ).Name() ) | 
|       { | 
|         this.ProductID( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_Start ).Name() ) | 
|       { | 
|         this.Start( child.GetValueAsDate() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_StockingPointID ).Name() ) | 
|       { | 
|         this.StockingPointID( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_InventoryValueAndCost, Z_TimeUnit ).Name() ) | 
|       { | 
|         this.TimeUnit( child.GetValueAsString() ); | 
|       } | 
|     } | 
|   *] | 
| } |