有两种方法
1,设置对应的金额币种,后隐藏币种
@Semantics.amount.currencyCode: ‘currency’
2,在odata服务力的MPC_EXT define中设置,强制小数位
super->define( ).
model->get_entity_type( ‘ZERS_C_CBQRType’)->get_property( ‘total_pre_amt’)->set_precison( 2 ).
model->get_entity_type( ‘ZERS_C_MXType’)->get_property( ‘amt_exc_tax’)->set_precison( 2 ).
model->get_entity_type( ‘ZERS_C_MXType’)->get_property( ‘amt_exc_tax_b’)->set_precison( 2 ).
model->get_entity_type( ‘ZERS_C_MXType’)->get_property( ‘dfcb’)->set_precison( 2 ).
model->get_entity_type( ‘ZERS_C_MXANL1Type’)->get_property( ‘je’)->set_precison( 2 ).
model->get_entity_type( ‘ZERS_C_MXANL1Type’)->get_property( ‘je_b’)->set_precison( 2 ).
model->get_entity_type( ‘ZERS_C_MXANL1Type’)->get_property( ‘menge’)->set_precison( 3 ).