Commit graph

25 commits

Author SHA1 Message Date
Colin Kuskie
875187ee74 Fix the Shop/Transaction tests for JSON.
Convert Shop/Transaction and Shop/Tax to use buildDataTableStructure.
Change SQL.pm to return a hash instead of a hashref for buildDataTableStructure.
2008-03-19 04:45:02 +00:00
Colin Kuskie
94b03aa3f5 Fix a bug in the json method for getting tax data.
Tests for the json method.
A LOT of California tax data for testing.
2008-03-18 23:34:35 +00:00
Colin Kuskie
f40bed7ef3 Add i18n for Tax, for the UI.
Begin to flesh out the DataTable JS for www_view.  Add a method to slurp all the
tax data out of the db at once.
Add a test for the slurp method, and stop using the private sub that used to
do it in the tests.
2008-03-10 04:25:36 +00:00
JT Smith
a535104d7a shipping is closer 2008-03-07 17:04:26 +00:00
Colin Kuskie
14ffef86c1 Add a method for determining if users can access commerce functions, and
stub out www_view
2008-03-07 04:39:17 +00:00
Colin Kuskie
e32bdb6217 find_in_set seems to be case insensitive, natively. 2008-03-07 02:37:13 +00:00
Colin Kuskie
52cf8b672c Allow alternations in the tax data, so that it is case insensitive
and allows multiple definitions of an entry (like state, city or country)
2008-03-07 02:16:40 +00:00
Colin Kuskie
50fc494759 optimize the SQL query for getting tax rates 2008-03-06 23:41:16 +00:00
Colin Kuskie
d956e58bd7 Change the Shop::Tax system to be hierarchial.
Update all sample tax tables and tests.
2008-03-06 22:34:21 +00:00
JT Smith
aa5355930a made it use a helper method 2008-03-05 16:34:12 +00:00
JT Smith
112834a9b7 added some helper methods for addressing, and got the cart closer to working 2008-03-05 16:32:08 +00:00
Colin Kuskie
8c862439f9 Update the POD for Cart.pm. Return value for addItem is not items in cart, it's the
created item.
Finish up the Tax calculate method, with tests.
2008-03-05 03:37:53 +00:00
Colin Kuskie
2bc6cd49a7 Remove an extra my from Shop::Cart.
Add the getTaxRates method to Tax, with tests.
Add some calculate code to Tax, with tests, which don't pass yet.
2008-03-05 00:22:40 +00:00
Colin Kuskie
5946fd5476 add a input validation check and test for Tax->calculate 2008-03-01 21:22:53 +00:00
Colin Kuskie
9d377193d3 placeholder for calculate in Shop::Tax.pm 2008-03-01 04:54:21 +00:00
Colin Kuskie
a8598bc108 Finish testing all of shop tax's exceptions.
Convert a few exceptions to better types in import.
2008-02-27 23:40:08 +00:00
Colin Kuskie
a61ab090ee convert Shop::Tax to use exceptions 2008-02-27 00:35:10 +00:00
Colin Kuskie
c613e38995 Input validation tests for importTaxData. 2008-02-18 21:23:43 +00:00
Colin Kuskie
215031bb4e Renamed the import and export methods to prevent Perl from
calling them.
Added code and tests for import method.  It needs more testing
for user input validation.
2008-02-18 19:27:45 +00:00
Colin Kuskie
6415b9186f Added the export method.
Basic tests for the export method.  Need to check the CSV file
to make sure it's created correctly.
2008-02-16 17:11:10 +00:00
Colin Kuskie
0701adf7e0 Add input validation for the add method, and test it.
Now it's time for the import and export methods.
2008-02-16 06:48:00 +00:00
Colin Kuskie
645c21bc3b Tax: add the delete method, with tests 2008-02-16 05:36:25 +00:00
Colin Kuskie
19591d37d4 Fix a bug in the upgrade script, with a default applied to the wrong column.
Built the add method, and tested it, too.
2008-02-15 23:17:52 +00:00
Colin Kuskie
70b8331794 Add the tax table.
Add the getItems method, for accessing the entire tax table.
2008-02-15 22:15:58 +00:00
Colin Kuskie
cf3ed73830 Fix a bad use test in Shop/Tax.t
Begin Tax.pm, using Class::InsideOut with a basic constructor and a session method.
2008-02-15 18:51:02 +00:00