]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Order.pm
Merge branch 'master' into currency
[mfinanz.git] / SL / DB / Order.pm
index b3edda5dc85dfb72504a66a229e2694b786eace5..63d23f79fb25317d127822cfc42ae0cf59984010 100644 (file)
@@ -37,8 +37,7 @@ __PACKAGE__->meta->initialize;
 
 # methods
 
-sub items         { goto &orderitems; }
-sub payment_terms { goto &payment;    }
+sub items { goto &orderitems; }
 
 sub type {
   my $self = shift;
@@ -69,7 +68,7 @@ sub displayable_type {
 
 sub is_sales {
   croak 'not an accessor' if @_ > 1;
-  return shift->customer_id;
+  return !!shift->customer_id;
 }
 
 sub invoices {
@@ -133,6 +132,10 @@ sub number {
   return $self->${ \ $number_method{$self->type} }(@_);
 }
 
+sub date {
+  goto &transdate;
+}
+
 1;
 
 __END__