sales tax

This commit is contained in:
Colin Kuskie 2006-10-21 01:13:07 +00:00
parent 4deff2a0a9
commit f3ab99bc02
23 changed files with 607 additions and 111 deletions

View file

@ -88,7 +88,7 @@ sub new {
$session = shift;
$eventId = shift;
my $eventData = $session->db->quickHashRef("select p.productId, p.title, p.description, p.price, p.sku, e.approved, e.passId, e.passType
my $eventData = $session->db->quickHashRef("select p.productId, p.title, p.description, p.price, p.useSalesTax, p.sku, e.approved, e.passId, e.passType
from EventManagementSystem_products as e, products as p
where p.productId = e.productId and p.productId=".$session->db->quote($eventId));
@ -183,6 +183,12 @@ sub type {
return 'Event';
}
#-------------------------------------------------------------------
sub useSalesTax {
my $self = shift;
return $self->{_event}->{useSalesTax} ? 1 : 0;
}
#-------------------------------------------------------------------
sub weight {
return 0;