UnitConvert,单位换算,单位转换

journalBom.InventConsump  =decround(
                                                UnitConvert::qty(journalBOM.BOMConsump,
                                                     journalBOM.BOMUnitId,
                                                     InventTable::find(journalBOM.ItemId).inventUnitId(),
                                                     journalBOM.ItemId
                                                     ),
                                                     InventTable::inventDecimals(
                                                            journalBOM.ItemId));

 

UnitConvert::qty() 有四个参数

  1. 待转换数值
  2. 源单位
  3. 目标单位
  4. ItemID
posted @ 2011-12-22 15:08  perock  阅读(956)  评论(0编辑  收藏  举报