From 7a52dd12737022063571ecc0faecc953973e4575 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 2 Jul 2012 14:22:56 -0700 Subject: [PATCH] quotations, RT#16996 --- FS/FS/Quotable_Mixin.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 FS/FS/Quotable_Mixin.pm diff --git a/FS/FS/Quotable_Mixin.pm b/FS/FS/Quotable_Mixin.pm new file mode 100644 index 000000000..dfd3ddd83 --- /dev/null +++ b/FS/FS/Quotable_Mixin.pm @@ -0,0 +1,13 @@ +package FS::Quotable_Mixin; + +use strict; +use FS::Record qw( qsearch ); #qsearchs ); +use FS::quotation; + +sub quotation { + my $self = shift; + my $pk = $self->primary_key; + qsearch('quotation', { $pk => $self->$pk() } ); +} + +1; -- 2.11.0