CanadianTax 3.3 build: 9172 released: 2008-05-15 Calculates Canadian sales taxes. Copyright (c) 2008 Canadian Mind Products. Java Applet (that can also be run as an application). Download from http://mindprod.com/products1.html#CANADIANTAX ===> Free <=== Full source included. You may even include the source code, modified or unmodified in commercial programs that you write and distribute. May be used freely for any purpose but military. For more details on this restriction, see http://mindprod.com/roedy.html#NONMILITARY If you include any Canadian Mind Products code in your own applications, your app too must be labeled non-military use only. All Java jars and source code are included. ---- Prerequisites: This program runs under any OS, (e.g. Win2K/XP/Vista/OSX/Linux/Solaris/Vista64/AIX...) so long as you have <><> Java version 1.5 <><> or later installed. See http://mindprod.com/jgloss/installingjava.html for details. ---- Installing on a PC: Download source and compiled class files to run on your own machine as an application or Applet. First install a recent Java JDK or JVM. See http://mindprod.com/jgloss/installingjava.html. To install, extract the zip download with Winzip (or similar unzip utility) into any directory you please, often J:\ -- ticking off the "user folder names" option. To run as an application,type: java -jar J:\com\mindprod\canadiantax\canadiantax.jar parms adjusting as necessary to account for where the jar file is. ---- Installing on a MacIntosh: Use Safari to download source and compiled class files to run on your own machine as an application or Applet. Safari will automatically unpack the zip into ~/Downloads (version 10.5) [or on the Desktop (version 10.4 and earlier)]. First install a recent Java JDK or JVM. See http://mindprod.com/jgloss/installingjava.html. You may optionally move the download tree to a permanent home. To run as an application, without parameters, just double click the jar file. To run as an application with parameters, in bash shell type: open Terminal.app cd ~/Desktop java -jar com/mindprod/canadiantax/canadiantax.jar parms adjusting as necessary to account for where the jar file is. I don't have a MacIntosh, just a PC, so I can't test the programs for Mac compatibility. In theory they should work without problems, but in practice that does not always happen. If you have problems please, let me know, preferably with screenshots and complete verbatim error messages. ---- Rebuilding: The zip already contains the necessary class and jar files, so unless you modify the program, there is no need to recompile the source or rebuild the jar. Configure basedir="E:/" in rebuild.xml to the drive where your files are. Use ANT and rebuild.xml, not build.xml, to recompile and recreate the jar. ---- Use: This version computes by adding GST HST and PST to a base price. It currently does not work in reverse given the final price working backwards to get the taxes and base price. In other words it will not tell you the sticker price to make something come out even after taxes are added. However, it has a spinner that lets you approximate that function. Just select the vendor and buyer's province, enter the amount of the sale and hit calc. You can adjust the sale amount with a spinner. You can also work backwards, filling in the total amount and hitting calc to work out the original amount of sale. To install, Extract the zip download with Winzip, available from http://www.winzip.com (or similar unzip utility) into any directory you please, often C:\ -- ticking off the "user folder names" option. To run as an application, type: java -jar C:\com\mindprod\canadiantax\canadiantax.jar BC adjusting as necessary to account for where the jar file is. CONFIGURING THE DEFAULT PROVINCE You can configure the province CanadianTax starts up with. On the command line, just place the 2-letter province abbreviation as the last thing on the line. The the only abbreviations it accepts are: BC : British Columbia AB : Alberta SK : Saskatchewan MB : Manitoba ON : Ontario QC : Quebec PE : Prince Edward Island NB : New Brunswick NS : Nova Scotia NL : Newfoundland/Labrador YT : Yukon NT : NWT NU : Nunavut For Applets, modify the in canadiantax.html. You will have to download canadiantax and set up your own modified webpage. You can't modify the Canadian Mind Products website since it is shared by everyone. Version History 1.4 now compounds PST on top of GST in Quebec and PEI. 1.5 explicitly mentions Labrador. 1.6 package com.mindprod.canadiantax. 1.7 bumps BC Sales tax up to 7.5%. 1.8 adds an about box, check and support for Nunavut. 1.9 adds JavaDoc in the source code. version 2.0 convert the app from AWT to Swing for a nicer look and proprely right-aligned numbers. It also is easier to configure internally to different provinces to start. Now defaults to Ontario. 2.1 2006-03-04 reformat with IntelliJ 2.2 2006-06-04 new address 2.3 add PAD icon. 2.4 2007-05-26 add spinner to make it easier to do reverse tax calculation. BC and Saskatchewan lowered sales tax. 2.5 2007-06-07 refactor code to make it easier to understand. 2.7 2007-09-08 add reverse calc button to get back to sale amount given total amount. now needs Java 1.5. Majory internal rewrite. 2.8 2007-10-30 introduce named constants to make it easier to modify the tax tables. 2.9 2008-01-01 drop of GST from 6% to 5% and GST part of HST. 3.0 2008-03-03 correct spelling mistakes, display build and release date. 3.1 2008-05-03 bigger window, hopefully making it work on Mac 3.2 2008-05-07 you can now configure the default province. 3.3 2008-05-15 changes to make it work properly on the MacIntosh.