[freeside] Cant Send invoice Email error

ivan ivan at 420.am
Thu Mar 7 04:00:10 PST 2002


guessing:

The error is coming from cust_main.pm (1.3.1) line 736, where the
cust_main::bill is attempting to insert a duplicate tax line item for
invoices 13, 14 and 15.  I can't imagine how to convince it to do that
other than by deleting invoices (cust_bill records) manually in the
database, not deleting their line items (cust_bill_pkg records), and then
resetting the filesystem counters.

I don't think it's related to adding 'Debug'.

On Thu, Mar 07, 2002 at 01:46:33PM +0300, System Administrator - Andrew Wafula wrote:
> Hello,
> 
> This is what I get when I try to bill another customer after the changes you
> asked me to make.
> 
> <cut>
> Error processing your request
> Your request could not be processed because of the following error:
> 
> Duplicate entry '0-15' for key 1 for customer #185
> <uncut>
> 
> I have tried it on three different customers and got 0-13, 0-14 and now
> 0-15.
> 
> Thanks again,
> 
> Andrew
> 
> -----Original Message-----
> From: ivan [mailto:ivan at 420.am]
> Sent: Thursday, March 07, 2002 12:31
> To: ivan-freeside at sisd.com
> Subject: Re: [freeside] Cant Send invoice Email error
> 
> 
> Make sure the `smtpmachine' configuration value is set.
> 
> Add
> 
>   'Debug' => 1,
> 
> to cust_main.pm as follows, reinstall the FS perl modules & restart
> apache, and report the full SMTP trace
> 
>           my $message = new Mail::Internet (
>             'Header' => $header,
>             'Body' => [ $cust_bill->print_text ], #( date)
>             'Debug' => 1,
>           );
> 
> 
> On Thu, Mar 07, 2002 at 11:40:00AM +0300, System Administrator - Andrew
> Wafula wrote:
> > I have just upgraded from 1.2.3 to 1.3.1 and I get the following error
> when
> > trying to send invoices
> >
> > Software error:
> >
> > Can't send invoice email! at
> /usr/lib/perl5/site_perl/5.6.0/FS/cust_main.pm
> > line 837.
> >
> > This is obtained after clicking 'Bill Now' on the Customer view page.
> >
> > The following is what I have
> >
> > RedHat 7.2
> > Apache 1.3.22
> > FS 1.3.1
> > Perl 5.6.1
> > MySQL 3.23.41
> > DBIx::DBSchema 0.19
> > Mail::Internet 1.43
> > Mail::Header 1.43
> >
> > Please help,
> >
> > Thanks,
> >
> > Andrew
> >
> >
> 
> --
> _ivan
> 
> 

-- 
_ivan



More information about the freeside-users mailing list