| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod IsPrimaryKeysUnique ( |  |   Product_MP product, |  |   StockingPoint_MP stockingpoint, |  |   Date start, |  |   InventorySpecification inventoryspecification |  | ) declarative remote as Boolean |  | { |  |   Description: "Return true if the to-be created inventory specification's primary keys is unique." |  |   TextBody: |  |   [* |  |     // soh yee May-1-2013 (created) |  |      |  |     // For editing of the inventory specification, exclude itself from the checking of the primary key. |  |     return not exists( product, InventorySpecification, is, |  |                        is <> inventoryspecification, |  |                        is.Start() = start |  |                        and is.StockingPoint_MP() = stockingpoint ); |  |   *] |  | } | 
 |