[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6871] trunk/LedgerSMB/Report/Contact



Revision: 6871
          http://sourceforge.net/p/ledger-smb/code/6871
Author:   einhverfr
Date:     2014-02-17 13:42:21 +0000 (Mon, 17 Feb 2014)
Log Message:
-----------
Moving all other reports that require it to the LedgerSMB::Report::Dates framework to centralize date handling

Modified Paths:
--------------
    trunk/LedgerSMB/Report/Contact/History.pm
    trunk/LedgerSMB/Report/Contact/Purchase.pm

Modified: trunk/LedgerSMB/Report/Contact/History.pm
===================================================================
--- trunk/LedgerSMB/Report/Contact/History.pm	2014-02-17 13:35:53 UTC (rev 6870)
+++ trunk/LedgerSMB/Report/Contact/History.pm	2014-02-17 13:42:21 UTC (rev 6871)
@@ -27,6 +27,8 @@
 package LedgerSMB::Report::Contact::History;
 use Moose;
 extends 'LedgerSMB::Report';
+with 'LedgerSMB::Report::Dates';
+
 use LedgerSMB::PGDate;
 use LedgerSMB::MooseTypes;
 
@@ -240,22 +242,6 @@
 
 has country_id => (is => 'ro', isa => 'Maybe[Int]');
 
-=item from_date
-
-Include only invoices starting on this date
-
-=cut
-
-has from_date => (is => 'ro', coerce => 1, isa => 'LedgerSMB::Moose::Date');
-
-=item to_date
-
-Include only invoices before this date
-
-=cut
-
-has to_date => (is => 'ro', coerce => 1, isa => 'LedgerSMB::Moose::Date');
-
 =item type
 
 This is the type of document to be returned:

Modified: trunk/LedgerSMB/Report/Contact/Purchase.pm
===================================================================
--- trunk/LedgerSMB/Report/Contact/Purchase.pm	2014-02-17 13:35:53 UTC (rev 6870)
+++ trunk/LedgerSMB/Report/Contact/Purchase.pm	2014-02-17 13:42:21 UTC (rev 6871)
@@ -29,6 +29,7 @@
 package LedgerSMB::Report::Contact::Purchase;
 use Moose;
 extends 'LedgerSMB::Report';
+with 'LedgerSMB::Report::Dates';
 
 =head1 PROPERTIES
 
@@ -239,22 +240,6 @@
 
 has ship_via => (is => 'ro', isa => 'Maybe[Str]');
 
-=item from_date
-
-Invoices posted starting on this date
-
-=cut
-
-has from_date => (is => 'ro', coerce => 1, isa => 'LedgerSMB::Moose::Date');
-
-=item to_date
-
-Invoices posted no later than this date
-
-=cut
-
-has to_date => (is => 'ro', coerce => 1, isa => 'LedgerSMB::Moose::Date');
-
 =item as_of
 
 Shows invoice balances as of this date.

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits