eventespresso / barista

Javascript modules & tools for Event Espresso development
GNU General Public License v3.0
5 stars 1 forks source link

Add testing of decimal places in Ticket Price Calculator #1310

Open alexkuc opened 4 months ago

alexkuc commented 4 months ago

Unit tests to reflect the follow business logic for package @eventespresso/tpc

so you can take the following as a universal business rule for any money related fields in EE

  • internal processing uses 6 decimal place precision
  • display uses the currency settings

AND... in most places we never display the internal decimal precision, the Ticket Price Calculator is one of the exceptions

alexkuc commented 4 months ago

Either this or go with end-to-end testing approach