Lines 23-39
use Exception::Class (
Link Here
|
23 |
description => 'Something went wrong!', |
23 |
description => 'Something went wrong!', |
24 |
}, |
24 |
}, |
25 |
'Koha::Exceptions::Account::IsNotCredit' => { |
25 |
'Koha::Exceptions::Account::IsNotCredit' => { |
26 |
isa => 'Koha::Exceptions::Account', |
26 |
isa => 'Koha::Exceptions::Account', |
27 |
description => 'Account line is not a credit' |
27 |
description => 'Account line is not a credit' |
28 |
}, |
28 |
}, |
29 |
'Koha::Exceptions::Account::IsNotDebit' => { |
29 |
'Koha::Exceptions::Account::IsNotDebit' => { |
30 |
isa => 'Koha::Exceptions::Account', |
30 |
isa => 'Koha::Exceptions::Account', |
31 |
description => 'Account line is not a credit' |
31 |
description => 'Account line is not a credit' |
32 |
}, |
32 |
}, |
33 |
'Koha::Exceptions::Account::NoAvailableCredit' => { |
33 |
'Koha::Exceptions::Account::NoAvailableCredit' => { |
34 |
isa => 'Koha::Exceptions::Account', |
34 |
isa => 'Koha::Exceptions::Account', |
35 |
description => 'No outstanding credit' |
35 |
description => 'No outstanding credit' |
|
|
36 |
}, |
37 |
'Koha::Exceptions::Account::AmountNotPositive' => { |
38 |
isa => 'Koha::Exceptions::Account', |
39 |
description => 'Amount should be a positive decimal' |
40 |
}, |
41 |
'Koha::Exceptions::Account::UnrecognisedType' => { |
42 |
isa => 'Koha::Exceptions::Account', |
43 |
description => 'Account type was not recognised' |
36 |
} |
44 |
} |
|
|
45 |
|
37 |
); |
46 |
); |
38 |
|
47 |
|
39 |
=head1 NAME |
48 |
=head1 NAME |
Lines 61-66
debit and it isn't.
Link Here
|
61 |
Exception to be used when a credit has no amount outstanding and is required |
70 |
Exception to be used when a credit has no amount outstanding and is required |
62 |
to be applied to outstanding debits. |
71 |
to be applied to outstanding debits. |
63 |
|
72 |
|
|
|
73 |
=head2 Koha::Exceptions::Account::AmountNotPositive |
74 |
|
75 |
Exception to be used when a passed credit or debit amount is not a positive |
76 |
decimal value. |
77 |
|
78 |
=head2 Koha::Exceptions::Account::UnrecognisedType |
79 |
|
80 |
Exception to be used when a passed credit or debit is not of a recognised type. |
81 |
|
64 |
=cut |
82 |
=cut |
65 |
|
83 |
|
66 |
1; |
84 |
1; |
67 |
- |
|
|