blib/lib/Business/TW/TSIB/CStorePayment/Entry.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 8 | 8 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 11 | 12 | 91.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Business::TW::TSIB::CStorePayment::Entry; | ||||||
2 | 3 | 3 | 20 | use strict; | |||
3 | 6 | ||||||
3 | 119 | ||||||
3 | 3 | 3 | 15 | use base qw(Class::Accessor::Fast); | |||
3 | 5 | ||||||
3 | 2953 | ||||||
4 | __PACKAGE__->mk_accessors( qw/ | ||||||
5 | debit_date | ||||||
6 | paid_date | ||||||
7 | payment_id | ||||||
8 | amount | ||||||
9 | due | ||||||
10 | collection_agent | ||||||
11 | payee_account/ | ||||||
12 | ); | ||||||
13 | |||||||
14 | sub ar_id { | ||||||
15 | 2 | 2 | 0 | 6835 | my $self = shift; | ||
16 | 2 | 9 | return int( substr( $self->payment_id , 4 , 12 ) ); | ||||
17 | } | ||||||
18 | |||||||
19 | 1; | ||||||
20 |