X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/88f11e29e4262e1e567f5b48e10bfe51eb5759ea..1b9a64fa292f375c82b4af788d0606354bc4e8ff:/bin/mozilla/ap.pl?ds=inline diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index a116d1263..00ab61801 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -24,7 +24,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #====================================================================== # # Accounts Payables @@ -88,7 +89,7 @@ sub add { my $form = $main::form; my %myconfig = %main::myconfig; - $main::auth->assert('general_ledger'); + $main::auth->assert('ap_transactions'); $form->{title} = "Add"; @@ -108,7 +109,7 @@ sub edit { my $form = $main::form; - $main::auth->assert('general_ledger'); + $main::auth->assert('ap_transactions'); $form->{title} = "Edit"; @@ -123,7 +124,7 @@ sub display_form { my $form = $main::form; - $main::auth->assert('general_ledger'); + $main::auth->assert('ap_transactions'); &form_header; &form_footer; @@ -139,13 +140,15 @@ sub create_links { my $form = $main::form; my %myconfig = %main::myconfig; - $main::auth->assert('general_ledger'); + $main::auth->assert('ap_transactions'); $form->create_links("AP", \%myconfig, "vendor"); my %saved; if (!$params{dont_save}) { %saved = map { ($_ => $form->{$_}) } qw(direct_debit taxincluded); $saved{duedate} = $form->{duedate} if $form->{duedate}; + $saved{currency} = $form->{currency} if $form->{currency}; + $saved{taxincluded} = $form->{taxincluded} if $form->{taxincluded}; } IR->get_vendor(\%myconfig, \%$form); @@ -160,6 +163,7 @@ sub create_links { # currencies $form->{defaultcurrency} = $form->get_default_currency(\%myconfig); + $form->{selectcurrency} = ""; map { my $quoted = H($_); $form->{selectcurrency} .= "