Dear Chris,
I got it.
and this is the code, at am.pl file
sub process_transactions {
# save variables
my $pt = new Form;
for ( keys %$form ) { $pt->{$_} = $form->{$_} }
my $defaultprinter;
while ( my ( $key, $value ) = each %{LedgerSMB::Sysconfig::printer} ) {
if ( $value =~ /lpr/ ) {
$defaultprinter = $key;
last;
}
}
$myconfig{vclimit} = 0;
%f = &formnames;
#==================================================================================
#17122008-SHC-I added the folder current path to used in the loop when it
is changed to temp
use Cwd;
my $myProgramPath = getcwd();
for ( my $i = 1 ; $i <= $pt->{lastndx} ; $i++ ) {
chdir ($myProgramPath);
#==================================================================================
if ( $pt->{"ndx_$i"} ) {
$id = $pt->{"ndx_$i"};
# process transaction
AM->recurring_details( \%myconfig, \%$pt, $id );
$header = $form->{header};
I hope to see it and advise me if there are any restricted or not.
Thanks a lot for your advise and support.
Best wishes,
Shaekir,
From: [email protected]
To: [email protected]
Date: Wed, 17 Dec 2008 20:36:51 +0000
Subject: Re: [Ledger-smb-devel] error invoice.tex:No such file or directory
Dear Chris,
Thanks a lot for your advise. It is perfect.
Now the project is working and can send many invoices. after I add
chdir ("/usr/local/ledgersmb")
before open (IN ....
Is there any ability to get this path dynamical instead of calling it
statically.
I looked at ENV and self but I couldn't find thing directly.
Please, Advise me.
Best wishes,
Shaekir,
> Date: Wed, 17 Dec 2008 10:05:04 -0800
> From: [email protected]
> To: [email protected]
> Subject: Re: [Ledger-smb-devel] error invoice.tex:No such file or directory
>
> On Wed, Dec 17, 2008 at 9:47 AM, shaker Khzym <[email protected]>
> wrote:
> > Hi Chris,
> > the path is : templates/demo/invoice.tex
> > I will change it for what.
>
> No, the problem is the chdir to the temp dir. We need to change back
> after the template run.
>
> Best Wishes,
> Chris Travers
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Ledger-smb-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel
_________________________________________________________________
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Ledger-smb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel