]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/PurchaseInvoice.pm
Einkauf/Verkauf: Feld »Leistungsdatum« für Steuerberechnung
[kivitendo-erp.git] / SL / DB / PurchaseInvoice.pm
index a50884cb1670f55b1eab4e8629ecb1e3f1ba7dfc..dd49433c6adb518e9638437439b64509ec7b69d8 100644 (file)
@@ -214,6 +214,12 @@ sub mark_as_paid {
   $self->update_attributes(paid => $self->amount);
 }
 
+sub effective_tax_point {
+  my ($self) = @_;
+
+  return $self->tax_point || $self->deliverydate || $self->transdate;
+}
+
 1;