]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Setzen des Stornoflags auf "0" anstelle von NULL.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 8 Jun 2007 14:28:40 +0000 (14:28 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 8 Jun 2007 14:28:40 +0000 (14:28 +0000)
bin/mozilla/ap.pl
bin/mozilla/ar.pl
bin/mozilla/gl.pl
bin/mozilla/ir.pl
bin/mozilla/is.pl

index 6f86e90a1312ed3f25e78679e440525ad4720a73..5fa77109e93d4d3beea042e9e9891f3284c513fc 100644 (file)
@@ -993,6 +993,7 @@ sub post {
   $form->{AP}{amount_1} = $debitaccno;
   $form->{AP}{payables} = $payablesaccno;
   $form->{taxkey}       = $taxkey;
+  $form->{storno}       = 0;
 
   $form->{id} = 0 if $form->{postasnew};
 
index c653382f75d620f83afa2742aaa332499f40b500..fbdbbc084f3b0456ce8d7f1d8c102aba1b613fed 100644 (file)
@@ -1023,8 +1023,11 @@ sub post {
   }
 
   $form->{AR}{receivables} = $form->{ARselected};
+  $form->{storno}          = 0;
 
   $form->{id} = 0 if $form->{postasnew};
+
+
   if (AR->post_transaction(\%myconfig, \%$form)) {
     # saving the history
     if(!exists $form->{addition} && $form->{id} ne "") {
index ea6708fd93b4e9f93b97d572c3aa6ce3390216cd..18e3fa580f79a88761b4ff13fbfedc2d23b87326 100644 (file)
@@ -1760,7 +1760,8 @@ sub post_transaction {
 sub post {
   $lxdebug->enter_sub();
 
-  $form->{title} = $locale->text("$form->{title} General Ledger Transaction");
+  $form->{title}  = $locale->text("$form->{title} General Ledger Transaction");
+  $form->{storno} = 0;
 
   post_transaction();
 
index 701c91bb4e45ba6d53640eb17c4b2dc9e4e0a973..99ff95863b6e9268d13c25b1871a4dc5374ef7b0 100644 (file)
@@ -1141,6 +1141,7 @@ sub post {
 
   ($form->{AP})      = split /--/, $form->{AP};
   ($form->{AP_paid}) = split /--/, $form->{AP_paid};
+  $form->{storno}    = 0;
 
   $form->{id} = 0 if $form->{postasnew};
 
index feb43ace0036dd5d48635008381a49601ed9e925..fbfabe6d7d6af076e8d8abed08d4f85ad01a2334 100644 (file)
@@ -1463,6 +1463,7 @@ sub post {
 
   ($form->{AR})      = split /--/, $form->{AR};
   ($form->{AR_paid}) = split /--/, $form->{AR_paid};
+  $form->{storno}    = 0;
 
   $form->{label} = $locale->text('Invoice');