Spalte 'taxincluded' hat den Typ 'boolean' und nicht 'integer'. Fix für Bug 759.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 25 Jul 2008 14:08:37 +0000 (14:08 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 25 Jul 2008 14:08:37 +0000 (14:08 +0000)
SL/GL.pm

index 51fbfac..a101f4a 100644 (file)
--- a/SL/GL.pm
+++ b/SL/GL.pm
@@ -120,7 +120,7 @@ sub post_transaction {
        WHERE id = ?|;
 
   @values = ($form->{reference}, $form->{description}, $form->{notes},
-             conv_date($form->{transdate}), $department_id, $form->{taxincluded},
+             conv_date($form->{transdate}), $department_id, $form->{taxincluded} ? 't' : 'f',
              $form->{storno} ? 't' : 'f', conv_i($form->{storno_id}), $form->{ob_transaction} ? 't' : 'f', $form->{cb_transaction} ? 't' : 'f',
              conv_i($form->{id}));
   do_query($form, $dbh, $query, @values);