The InventJournalTrans (Inventory adjustment report). There's simply one field to calculate the weight of a product. I added a display method to InventJournalTrans that simply return InventTable::unitConvert value. The code is small so I'll simply add it here: Weight ret; InventQty valueFrom; valueFrom = decRound(this.Qty, UnitOfMeasure::findBySymbol(this.unitId()).DecimalPrecision); ret = InventTable::unitConvert(this.ItemId, this.unitId(), 'Lb', InventTableModule::find(this.ItemId, ModuleInventPurchSales::Invent).UnitId, valueFrom); return ret; I've been tracing through this unitConvert method. It eventually leads to UnitOfMeasureConverter.ConvertValue. There's a line this.findConversion() that when that is called it is no longer able to display ANYTHING to the user with these roles. Since I can't debug I've been inserting return statements with a static value just to see where it cuts off. If I put "return 123" before this line I get a return value. If I put it right after I get a blank value and it returns nothing. It appears like it doesn't execute any of the code after this method call but it's hard for me to verify.
↧