Merge commit 'v7.10.20' into WebGUI8
This commit is contained in:
commit
fdb979ca8a
72 changed files with 830 additions and 224 deletions
|
|
@ -86,6 +86,10 @@ sub add {
|
|||
unless exists($params->{taxRate}) and defined $params->{taxRate};
|
||||
|
||||
$params->{taxId} = 'new';
|
||||
##Remove spaces around commas, which will break tax lookups
|
||||
foreach my $param (qw/country city state code/) {
|
||||
$params->{$param} =~ s/\s*,\s*/,/g;
|
||||
}
|
||||
my $id = $self->session->db->setRow('tax_generic_rates', 'taxId', $params);
|
||||
return $id;
|
||||
}
|
||||
|
|
@ -213,6 +217,24 @@ sub getAllItems {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getItem ( $taxId )
|
||||
|
||||
Returns all data for one tax item as a hash reference.
|
||||
|
||||
=head3 $taxId
|
||||
|
||||
The identifier for the row of tax data to return.
|
||||
|
||||
=cut
|
||||
|
||||
sub getItem {
|
||||
my $self = shift;
|
||||
my $result = $self->session->db->quickHashRef('select * from tax_generic_rates where taxId=?',[shift]);
|
||||
return $result;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getItems ( )
|
||||
|
||||
Returns a WebGUI::SQL::Result object for accessing all of the data in the tax table. This
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue