Skip to content

Calculations Engine Overview

londonanthonyoleary edited this page Nov 28, 2019 · 2 revisions

The calculations is basically two parts:

STEP 1> read the rates from an excel into the , SELECT * FROM fm_rate_cards data field

crown-marketplace/lib/tasks/facilities_management/fm_supplier_rate_cards.rake

reads in facilities_management/RM3830 Direct Award Data (for Dev & Test).xlsx and creates table , fm_rate_cards

STEP 2> when the user wants a summary it is calculated.

TO GENERATE SUMMARY

http://localhost:3000/facilities-management/beta

http://localhost:3000/facilities-management/beta/summary?name=firstsearchanthony

click Continue

Continue again

when you select download + press Enter this code is called

module FacilitiesManagement module Beta class SummaryController < FrameworkController

def sorted_suppliers, is called