gladstonemrm / FusionLifestyle

Issues relating to open data from Fusion Lifestyle
0 stars 0 forks source link

Clarification on rounding and/or string conversion rules for cost attributes #15

Closed alza-bitz closed 5 years ago

alza-bitz commented 7 years ago

Hi @MeganHennessy,

When viewed in the Fusion Android app, the instance of activity WT5CLBP12500317 with RPDE id 850094115 is displayed with cost £4.26.

850094115

However, the corresponding RPDE item has cost £4.25:

    {
      "state": "updated",
      "kind": "session",
      "id": 850094115,
      "modified": 55020,
      "data": {
        "activityGroup": "Group Exercise Classes",
        "siteName": "Witham Leisure Centre",
        "siteID": "WTLC",
        "address": "Spinks Lane",
        "postcode": "CM8 1EP",
        "telephone": "0845 260 1535",
        "website": "",
        "title": "Express Pump Fri 12.50",
        "startDateTime": "2017-03-24T12:50:00Z",
        "endDateTime": "2017-03-24T13:19:59Z",
        "gender": "mixed",
        "adultAllowed": true,
        "juniorAllowed": false,
        "seniorAllowed": true,
        "adultCost": "£4.25",
        "juniorCost": "£0.00",
        "seniorCost": "£4.25",
        "availability": "available",
        "onSiteLocation": [
          "Studio"
        ],
        "description": "",
        "imageURL": "",
        "richTitle": "",
        "level": "",
        "activityID": "WT5CLBP12500317",
        "activityDuration": 30,
        "bookingID": 850094115
      }
    }

When implementing rules to process the RPDE data, it would be desirable to implement the same rounding and/or string conversion rules as the Fusion Android app, for deriving the cost value to display.

Conversely, this discrepancy raises the possibility that the RPDE value is actually correct, but the app value is not. Establishing which of the two is correct ought to be understood, before taking any action.

Thanks,

Alex.

FusionLifestyle commented 7 years ago

The price difference was because on the price product for this activity, one of the price levels had the price of £4.26. The App gives the highest price available for that activity when the users is not logged in. Once logged in, the correct price for that user’s membership will be displayed.

Roz corrected this so the price should now display as £4.25.