diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-07-02 14:22:56 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-07-02 14:22:56 -0700 |
commit | 7a52dd12737022063571ecc0faecc953973e4575 (patch) | |
tree | 5a3bf9d4ff32ffa3572eb0ae92ea4d99ea77175c | |
parent | c2fd718e7358c4b337f0aa1294c6eb38ea5c6c46 (diff) |
quotations, RT#16996
-rw-r--r-- | FS/FS/Quotable_Mixin.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/Quotable_Mixin.pm b/FS/FS/Quotable_Mixin.pm new file mode 100644 index 0000000..dfd3ddd --- /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; |