projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9584458
)
fix warning message when agent-specific plandata cannot be found
author
ivan
<ivan>
Wed, 30 Jun 2004 09:56:23 +0000
(09:56 +0000)
committer
ivan
<ivan>
Wed, 30 Jun 2004 09:56:23 +0000
(09:56 +0000)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
f31e455
..
802e2bf
100644
(file)
--- a/
FS/FS/cust_bill.pm
+++ b/
FS/FS/cust_bill.pm
@@
-683,7
+683,7
@@
sub _agent_invoice_from {
sub _agent_plandata {
my( $self, $option ) = @_;
sub _agent_plandata {
my( $self, $option ) = @_;
- my $
cus
t_bill_event = qsearchs( 'part_bill_event',
+ my $
par
t_bill_event = qsearchs( 'part_bill_event',
{
'payby' => $self->cust_main->payby,
'plan' => 'send_agent',
{
'payby' => $self->cust_main->payby,
'plan' => 'send_agent',
@@
-697,12
+697,13
@@
sub _agent_plandata {
'ORDER BY seconds LIMIT 1'
);
'ORDER BY seconds LIMIT 1'
);
- return '' unless $
cus
t_bill_event;
+ return '' unless $
par
t_bill_event;
- if ( $
cus
t_bill_event->plandata =~ /^$option (.*)$/m ) {
+ if ( $
par
t_bill_event->plandata =~ /^$option (.*)$/m ) {
return $1;
} else {
return $1;
} else {
- warn "can't parse plandata for $1";
+ warn "can't parse part_bill_event eventpart#". $part_bill_event->eventpart.
+ " plandata for $option";
return '';
}
return '';
}