]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/PurchaseInvoice.pm
Part: long_description in displayable_name umbenannt
[mfinanz.git] / SL / DB / PurchaseInvoice.pm
index 3245e4b91fa25f85335d08ef7f326530c5038388..bddaa65512df2cd40b60e59d2d03b4bd1025c5bf 100644 (file)
@@ -7,6 +7,8 @@ use Carp;
 use SL::DB::MetaSetup::PurchaseInvoice;
 use SL::DB::Manager::PurchaseInvoice;
 use SL::DB::Helper::LinkedRecords;
+use SL::Locale::String qw(t8);
+
 # The calculator hasn't been adjusted for purchase invoices yet.
 # use SL::DB::Helper::PriceTaxCalculator;
 
@@ -52,4 +54,22 @@ sub date {
   goto &transdate;
 }
 
+sub reqdate {
+  goto &duedate;
+}
+
+sub customervendor {
+  goto &vendor;
+}
+
+sub abbreviation {
+  my $self = shift;
+
+  return t8('AP Transaction (abbreviation)') if !$self->invoice && !$self->storno;
+  return t8('AP Transaction (abbreviation)') . '(' . t8('Storno (one letter abbreviation)') . ')' if !$self->invoice && $self->storno;
+  return t8('Invoice (one letter abbreviation)'). '(' . t8('Storno (one letter abbreviation)') . ')' if $self->storno;
+  return t8('Invoice (one letter abbreviation)');
+
+}
+
 1;