[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5366] trunk/LedgerSMB/Scripts/vouchers.pm
- Subject: SF.net SVN: ledger-smb:[5366] trunk/LedgerSMB/Scripts/vouchers.pm
- From: ..hidden..
- Date: Sat, 15 Dec 2012 14:37:06 +0000
Revision: 5366
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5366&view=rev
Author: einhverfr
Date: 2012-12-15 14:37:06 +0000 (Sat, 15 Dec 2012)
Log Message:
-----------
Correcting voucher dispatch for new code modules
Modified Paths:
--------------
trunk/LedgerSMB/Scripts/vouchers.pm
Modified: trunk/LedgerSMB/Scripts/vouchers.pm
===================================================================
--- trunk/LedgerSMB/Scripts/vouchers.pm 2012-12-15 14:31:35 UTC (rev 5365)
+++ trunk/LedgerSMB/Scripts/vouchers.pm 2012-12-15 14:37:06 UTC (rev 5366)
@@ -17,6 +17,7 @@
use LedgerSMB::Batch;
use LedgerSMB::Template;
use LedgerSMB::Report::Unapproved::Batch_Overview;
+use LedgerSMB::Scripts::payment;
use strict;
@@ -114,27 +115,27 @@
gl => {script => 'bin/gl.pl', function => sub {add()}},
sales_invoice => {script => 'bin/is.pl', function => sub {add()}},
vendor_invoice => {script => 'bin/ir.pl', function => sub {add()}},
- receipt => {script => 'scripts/payment.pl',
+ receipt => {script => undef,
function => sub {
my ($request) = @_;
$request->{account_class} = 2;
LedgerSMB::Scripts::payment::payments($request);
}},
- payment => {script => 'scripts/payment.pl',
+ payment => {script => undef,
function => sub {
my ($request) = @_;
$request->{account_class} = 1;
LedgerSMB::Scripts::payment::payments($request);
}},
payment_reversal => {
- script => 'scripts/payment.pl',
+ script => undef,
function => sub {
my ($request) = @_;
$request->{account_class} = 1;
LedgerSMB::Scripts::payment::get_search_criteria($request, $custom_batch_types);
}},
receipt_reversal => {
- script => 'scripts/payment.pl',
+ script => undef,
function => sub {
my ($request) = @_;
$request->{account_class} = 2;
@@ -174,11 +175,6 @@
# However, the code we are including is going to require it for now.
# -- CT
{ no strict; no warnings 'redefine'; do $script; }
-
- } elsif ($script =~ /scripts/) {
- # Maybe we should move this to a require statement? --CT
- { do $script }
-
}
$vouchers_dispatch->{$request->{batch_type}}{function}($request);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.