perl syntax is not javascript syntax :)
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 15:46:34 +0000 (15:46 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 15:46:34 +0000 (15:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2502 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Money.pm

index 307b363..c00adb8 100644 (file)
@@ -92,13 +92,13 @@ sub make_payments {
                $payobj->accepting_usr($user->id);
                $payobj->xact($transid);
                $payobj->note($note);
-               if ($payobj->has_field('cash_drawer')) $payobj->cash_drawer($drawer);
-               if ($payobj->has_field('cc_type')) $payobj->cc_type($cc_type);
-               if ($payobj->has_field('cc_number')) $payobj->cc_number($cc_number);
-               if ($payobj->has_field('expire_month')) $payobj->expire_month($expire_month);
-               if ($payobj->has_field('expire_year')) $payobj->expire_year($expire_year);
-               if ($payobj->has_field('approval_code')) $payobj->approval_code($approval_code);
-               if ($payobj->has_field('check_number')) $payobj->check_number($check_number);
+               if ($payobj->has_field('cash_drawer')) { $payobj->cash_drawer($drawer); }
+               if ($payobj->has_field('cc_type')) { $payobj->cc_type($cc_type); }
+               if ($payobj->has_field('cc_number')) { $payobj->cc_number($cc_number); }
+               if ($payobj->has_field('expire_month')) { $payobj->expire_month($expire_month); }
+               if ($payobj->has_field('expire_year')) { $payobj->expire_year($expire_year); }
+               if ($payobj->has_field('approval_code')) { $payobj->approval_code($approval_code); }
+               if ($payobj->has_field('check_number')) { $payobj->check_number($check_number); }
                
                # update the transaction if it's done 
                if( ($trans->balance_owed - $amount) <= 0 ) {