projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acabd5
)
Fix zu Bug 252: Rechnungsnummern wurden nicht hochgezaehlt bei neu buchen (post as...
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 17 Jan 2006 13:56:25 +0000
(13:56 +0000)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 17 Jan 2006 13:56:25 +0000
(13:56 +0000)
bin/mozilla/is.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/is.pl
b/bin/mozilla/is.pl
index
2baf7ec
..
314f68b
100644
(file)
--- a/
bin/mozilla/is.pl
+++ b/
bin/mozilla/is.pl
@@
-1071,8
+1071,10
@@
sub post {
$form->{id} = 0 if $form->{postasnew};
- $form->{invnumber} = $form->update_defaults(\%myconfig, "invnumber")
- unless $form->{invnumber};
+ # get new invnumber in sequence if no invnumber is given or if posasnew was requested
+ if (!$form->{invnumber} || $form->{postasnew}) {
+ $form->{invnumber} = $form->update_defaults(\%myconfig, "invnumber")
+ }
if ($print_post) {
if (!(IS->post_invoice(\%myconfig, \%$form))) {
$form->error($locale->text('Cannot post invoice!'));