Changeset 20911
- Timestamp:
- 08/07/09 20:26:44 (4 years ago)
- Files:
-
- plugins/sfWashingtonStateTaxPlugin/README (modified) (1 diff)
- plugins/sfWashingtonStateTaxPlugin/lib/sfWashingtonStateTaxPlugin.class.php (modified) (2 diffs)
- plugins/sfWashingtonStateTaxPlugin/lib/task (added)
- plugins/sfWashingtonStateTaxPlugin/lib/task/testsfWashingtonStateTaxPluginTask.class.php (added)
- plugins/sfWashingtonStateTaxPlugin/package.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfWashingtonStateTaxPlugin/README
r20817 r20911 23 23 24 24 == Usage == 25 See lib/tasks/testsfWashingtonStateTaxPluginTask.class.php for an example 25 26 26 {{{ 27 $cl = new WashingtonStateTax(); 28 $cl->getTaxRate("210 - 11th Avenue S W", "Olympia", "98504"); 29 }}} 27 [php] 28 $cl = new WashingtonStateTax(); 29 $taxData = $cl->getTaxRate("210 - 11th Avenue S W", "Olympia", "98504"); 30 print print_r($taxData, true); 31 30 32 plugins/sfWashingtonStateTaxPlugin/lib/sfWashingtonStateTaxPlugin.class.php
r20817 r20911 1 1 <?php 2 3 /*4 $cl = new WashingtonStateTax();5 $cl->getTaxRate("210 - 11th Avenue S W", "Olympia", "98504");6 */7 8 2 9 3 //See http://dor.wa.gov/Content/FindTaxesAndRates/RetailSalesTax/DestinationBased/ClientInterface.aspx … … 58 52 $rate = (string) $sxml->attributes()->rate; 59 53 $loccode = (string) $sxml->attributes()->loccode; 60 return(array('rate'=>$rate, 'loccode'=>$loccode)); 54 $localrate = (string) $sxml->attributes()->localrate; 55 $code = (string) $sxml->attributes()->code; 56 return(array('rate'=>$rate, 'loccode'=>$loccode, 'code'=>$code, 'localrate'=>$localrate)); 61 57 } 62 58 plugins/sfWashingtonStateTaxPlugin/package.xml
r20817 r20911 14 14 <active>yes</active> 15 15 </lead> 16 <date>2009-08-0 5</date>17 <time>1 3:00:00</time>16 <date>2009-08-07</date> 17 <time>11:00:00</time> 18 18 <version> 19 <release>0.9. 0</release>19 <release>0.9.1</release> 20 20 <api>0.9.0</api> 21 21 </version> 22 22 <stability> 23 <release> beta</release>24 <api> beta</api>23 <release>stable</release> 24 <api>stable</api> 25 25 </stability> 26 26 <license uri="http://www.symfony-project.org/license">MIT license</license> … … 32 32 <dir name="lib"> 33 33 <file role="data" name="sfWashingtonStateTaxPlugin.class.php" /> 34 <dir name="task"> 35 <file role="data" name="testsfWashingtonStateTaxPluginTask.class.php" /> 36 </dir> 34 37 </dir> 35 38 </dir>