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
| Quintiq file version 2.0
| #parent: #root
| StaticMethod GetIsUniqueCost (
| output String feedback_o,
| UnitCost unitCost,
| Unit unit,
| String accountName,
| String costDriver,
| Date start
| ) declarative remote as Boolean
| {
| Description: 'Verify for single unit cost creation if unique'
| TextBody:
| [*
| // Check unit cost is unique within the unit.UnitCost
| isvalid := AccountCost::GetIsUniqueCost( unitCost,
| accountName,
| costDriver,
| start,
| unit.UnitCost( relget ) );
| if( not isvalid )
| {
| if( feedback_o <> '' )
| {
| feedback_o := feedback_o + String::NewLine();
| }
|
| feedback_o := feedback_o + Translations::MP_AccountCost_Web_IsNotUnique( Translations::MP_AccountCost_Web_UnitCost() );
| }
|
| return feedback_o = '';
| *]
| }
|
|