CF Invoice > MPG Calculations on DEF items that are not to be included

Issue No: CF-2165
Created 2/18/2019 3:20:15 PM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 18.3
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-226878 - Question regarding DEF setup|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-226878]   Issue:   * 1. CF > Setup > Network > Items * 2. Both items 1031 and 63 are set to not have MPG included in the calculations * 3. Both these items are showing MPG calculations on the customer's invoice.   Requirement:   * Do NOT include MPG calculations for items when it is not selected in the setup for site items. ** Previous Odometer should skip transactions for Items where Include in MPG Calculation = No ** Total Section > Fuel Cost Per Mile should exclude transactions for Items where Include in MPG Calculation = No *** Total $ will continue to be the Total Amount of all Transactions for the Primary Grouping *** Fuel Cost = Total $ for Items Where Include in MPG Calculation = Yes *** Total Miles = **** +Odometer from Last Transaction where Include in MPG Calculation = Yes **** - Previous Odometer for First Transaction *** Fuel Cost Per Mile = Fuel Cost / Total Miles       Regression Scenario:   # All Primary Groupings (Both history and invoice)