placeholder for calculate in Shop::Tax.pm
This commit is contained in:
parent
67712c7302
commit
9d377193d3
2 changed files with 23 additions and 0 deletions
|
|
@ -78,6 +78,23 @@ sub add {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 calculate ( $cart )
|
||||
|
||||
Calculate the tax for the contents of the cart.
|
||||
|
||||
=cut
|
||||
|
||||
sub calculate {
|
||||
my $self = shift;
|
||||
my $cart = shift;
|
||||
|
||||
WebGUI::Error::InvalidParam->throw(error => 'Must pass in a WebGUI::Shop::Cart object')
|
||||
unless ref($cart) eq 'WebGUI::Shop::Cart';
|
||||
return $id;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 delete ( [$params] )
|
||||
|
||||
Deletes data from the tax table by taxId.
|
||||
|
|
|
|||
|
|
@ -378,6 +378,12 @@ sub _grabTaxData {
|
|||
return @taxData;
|
||||
}
|
||||
|
||||
#######################################################################
|
||||
#
|
||||
# calculate
|
||||
#
|
||||
#######################################################################
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Cleanup
|
||||
END {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue