hongji.li
2023-11-07 1a1ba3ad5ed9e4380185aa1ccad20204a0e5f115
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Quintiq file version 2.0
#parent: #root
Method SetLabels () id:Method_DialogCreateEditPostponedSalesDemandCost_SetLabels
{
  #keys: '[124808.2.602715577]'
  Body:
  [*
    // Set label quantity with unit of measure
    product := SelectionProduct.Data();
    productuom := guard( product.UnitOfMeasureName(), '' );
    pisp := select( product, ProductInStockingPoint_MP, pisp, pisp.StockingPoint_MP() = SelectionStockingPoint.Data() );
    
    currency := guard( SelectionStockingPoint.Data().Currency_MP().Name(), MacroPlan.BaseCurrency().Name() )
    uom := guard( pisp.UnitOfMeasureName(), productuom );
    
    // Set the label based on the translations
    LabelCost.Text( Translations::MP_Designer_DialogCreateEditPostponedSalesDemandCost_CostPerUoM( currency, uom ) );
  *]
}