X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=sql-ledger%2Fbin%2Fmozilla%2Fis.pl;h=605380d5d95a302c92b9a9f34fb6d0fd1318a83e;hp=cca5813e8c05a593da286fd7e9ec7150620dff53;hb=32306b5f8ffe4ce594409aa6e89626740b225a39;hpb=52072fcd26f2faf57923f598c358e7f47c4e2643 diff --git a/sql-ledger/bin/mozilla/is.pl b/sql-ledger/bin/mozilla/is.pl index cca5813e8..605380d5d 100644 --- a/sql-ledger/bin/mozilla/is.pl +++ b/sql-ledger/bin/mozilla/is.pl @@ -1,6 +1,6 @@ #===================================================================== # SQL-Ledger Accounting -# Copyright (c) 1998-2002 +# Copyright (c) 2001 # # Author: Dieter Simader # Email: dsimader@sql-ledger.org @@ -29,8 +29,8 @@ use SL::IS; use SL::PE; -require "$form->{path}/io.pl"; require "$form->{path}/arap.pl"; +require "$form->{path}/io.pl"; 1; @@ -42,6 +42,8 @@ sub add { $form->{title} = $locale->text('Add Sales Invoice'); + $form->{callback} = "$form->{script}?action=add&type=$form->{type}&login=$form->{login}&path=$form->{path}&sessionid=$form->{sessionid}" unless $form->{callback}; + &invoice_links; &prepare_invoice; &display_form; @@ -62,12 +64,11 @@ sub edit { sub invoice_links { + $form->{vc} = 'customer'; + # create links $form->create_links("AR", \%myconfig, "customer"); - IS->get_customer(\%myconfig, \%$form); - IS->retrieve_invoice(\%myconfig, \%$form); - # currencies @curr = split /:/, $form->{currencies}; chomp $curr[0]; @@ -75,19 +76,68 @@ sub invoice_links { map { $form->{selectcurrency} .= "