From dd779e7ff888ad90d0cefff239b5e77fc80d991e Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sun, 25 May 2008 18:27:28 +0000 Subject: Fixes to per-transaction separation of duties git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2155 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/AA.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'LedgerSMB/AA.pm') diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm index ce8679a7..4663971b 100644 --- a/LedgerSMB/AA.pm +++ b/LedgerSMB/AA.pm @@ -61,6 +61,9 @@ Post transaction uses the following variables in the $form variable: sub post_transaction { my ( $self, $myconfig, $form ) = @_; + if ($form->{separate_duties}){ + $form->{approved} = '0'; + } for (1 .. $form->{rowcount}){ $form->{"amount_$_"} = $form->parse_amount( $myconfig, $form->{"amount_$_"} -- cgit v1.2.3