Development

Changeset 20911

You must first sign up to be able to contribute.

Changeset 20911

Show
Ignore:
Timestamp:
08/07/09 20:26:44 (4 years ago)
Author:
davec
Message:

Added testing task and improved readme

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfWashingtonStateTaxPlugin/README

    r20817 r20911  
    2323 
    2424== Usage == 
     25  See lib/tasks/testsfWashingtonStateTaxPluginTask.class.php for an example 
    2526 
    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   
    3032 
  • plugins/sfWashingtonStateTaxPlugin/lib/sfWashingtonStateTaxPlugin.class.php

    r20817 r20911  
    11<?php 
    2  
    3 /* 
    4 $cl = new WashingtonStateTax(); 
    5 $cl->getTaxRate("210 - 11th Avenue S W", "Olympia", "98504"); 
    6 */ 
    7   
    82 
    93//See      http://dor.wa.gov/Content/FindTaxesAndRates/RetailSalesTax/DestinationBased/ClientInterface.aspx  
     
    5852    $rate = (string) $sxml->attributes()->rate; 
    5953    $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)); 
    6157  } 
    6258 
  • plugins/sfWashingtonStateTaxPlugin/package.xml

    r20817 r20911  
    1414  <active>yes</active> 
    1515 </lead> 
    16  <date>2009-08-05</date> 
    17  <time>13:00:00</time> 
     16 <date>2009-08-07</date> 
     17 <time>11:00:00</time> 
    1818 <version> 
    19   <release>0.9.0</release> 
     19  <release>0.9.1</release> 
    2020  <api>0.9.0</api> 
    2121 </version> 
    2222 <stability> 
    23   <release>beta</release> 
    24   <api>beta</api> 
     23  <release>stable</release> 
     24  <api>stable</api> 
    2525 </stability> 
    2626 <license uri="http://www.symfony-project.org/license">MIT license</license> 
     
    3232   <dir name="lib"> 
    3333    <file role="data" name="sfWashingtonStateTaxPlugin.class.php" /> 
     34    <dir name="task"> 
     35       <file role="data" name="testsfWashingtonStateTaxPluginTask.class.php" /> 
     36    </dir> 
    3437   </dir> 
    3538  </dir>