Changeset 669 for trunk/grails-app/services/InventoryReportService.groovy
- Timestamp:
- Oct 1, 2010, 6:04:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/InventoryReportService.groovy
r668 r669 199 199 'left join fetch inventoryItem.inventoryLocation as inventoryLocation', 200 200 'left join fetch inventoryLocation.inventoryStore as inventoryStore', 201 'left join fetch inventoryItem.unitOfMeasure as unitOfMeasure', 202 'left join fetch inventoryItem.picture as picture', 203 'left join fetch picture.images as Image' 201 'left join fetch inventoryItem.unitOfMeasure as unitOfMeasure' 204 202 where 'inventoryItem.isActive = true' 205 203 namedParams.siteId = result.site.id … … 226 224 break 227 225 } 228 result.inventoryItemTotalValue += inventoryItem.estimatedUnitPriceAmount * inventoryItem.unitsInStock 226 if(inventoryItem.estimatedUnitPriceAmount && inventoryItem.unitsInStock) // Some items have null estimatedUnitPriceAmount. 227 result.inventoryItemTotalValue += inventoryItem.estimatedUnitPriceAmount * inventoryItem.unitsInStock 229 228 } // for 230 229
Note: See TracChangeset
for help on using the changeset viewer.