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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| Quintiq file version 2.0
| #parent: #root
| Method SetCapacityType (
| Unit unit,
| String capacityType
| )
| {
| Description:
| [*
| Update capacity type of unit.
| Allowed value: Quantity, Time, Infinite.
| *]
| TextBody:
| [*
| // Set capacity type and propagate unit period
| unit.Update( unit.ID(),
| unit.Name(),
| unit.ParentUnit().astype( Unit ),
| capacityType, /* only update capacity type */
| unit.Group(),
| unit.UnitOfMeasure_MP(),
| unit.Currency_MP(),
| unit.StartDate(),
| unit.EndDate(),
| unit.CampaignTypeDuration(),
| unit.IsPlannedInfinite(),
| unit.MinimumQuantity(),
| unit.HasMaximumQuantity(),
| unit.MaximumQuantity(),
| unit.LotSize(),
| unit.IconName(),
| unit.QuantityToProcess(),
| unit.GISCountryCode(),
| unit.GISCity(),
| unit.GISPostalCode(),
| unit.Notes(),
| unit.HasCapacitySmoothing(),
| unit.IsSmoothCapacityOverAllPeriods(),
| unit.UserCapacitySmoothingLength(),
| unit.CapacitySmoothingPercentageDelta(),
| unit.IsOverlapCapacitySmoothing(),
| unit.IsIncludedInSupplySpecification(),
| unit.IsSupplier(),
| unit.HasUserFrozenFutureDuration(),
| unit.UserFrozenFutureDuration(),
| unit.UseShiftOptimization(),
| unit.IsManuallyConfigured() )
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|