diff options
-rw-r--r-- | Changelog | 2 | ||||
-rw-r--r-- | LedgerSMB/GL.pm | 5 |
2 files changed, 3 insertions, 4 deletions
@@ -7,7 +7,7 @@ Changelog for LedgerSMB 1.3.0 * Stored procedure-based ORM for data model encapsulation in db (ChrisT) * New UI and template system using TT (Seneca) * Form.pm deprecated. New Object Oriented and data-driven model (Chris T) - +* Added ledgersmb-smallgray.css (Jeff K) Changelog for LedgerSMB 1.2.0 diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm index 8abf8704..2148050b 100644 --- a/LedgerSMB/GL.pm +++ b/LedgerSMB/GL.pm @@ -163,7 +163,6 @@ sub post_transaction { ( $null, $project_id ) = split /--/, $form->{"projectnumber_$i"}; $project_id ||= undef; - $form->{"cleared_$i"} ||= "0"; $query = qq| INSERT INTO acc_trans @@ -180,8 +179,8 @@ sub post_transaction { $form->{id}, $accno, $amount, $form->{transdate}, $form->{"source_$i"}, $project_id, - $form->{"fx_transaction_$i"}, $form->{"memo_$i"}, - $form->{"cleared_$i"} + ($form->{"fx_transaction_$i"} || 0), $form->{"memo_$i"}, + ($form->{"cleared_$i"} || 0) ) || $form->dberror($query); $posted = 1; |