Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bde667c2

Von Moritz Bunkus vor fast 18 Jahren hinzugefügt

  • ID bde667c235b2347bdd1322f118b032a2f0d93367
  • Vorgänger 7e57b1fe
  • Nachfolger ad091a4e

Einkaufs-, Verkaufs-, Debitoren- und Kreditorenrechnungen können als Entwurf gespeichert und später weiter bearbeitet werden. Dabei werden sie nicht gebucht.

Unterschiede anzeigen:

bin/mozilla/is.pl
37 37

  
38 38
require "$form->{path}/io.pl";
39 39
require "$form->{path}/arap.pl";
40
require "bin/mozilla/drafts.pl";
40 41

  
41 42
1;
42 43

  
......
44 45

  
45 46
sub add {
46 47
  $lxdebug->enter_sub();
47
  
48

  
49
  return $lxdebug->leave_sub() if (load_draft_maybe());
50

  
48 51
  if ($form->{type} eq "credit_note") {
49 52
    $form->{title} = $locale->text('Add Credit Note');
50 53

  
......
621 624
<input type=hidden name=storno value=$form->{storno}>
622 625
<input type=hidden name=storno_id value=$form->{storno_id}>
623 626

  
624

  
627
| . ($form->{saved_message} ? qq|<p>$form->{saved_message}</p>| : "") . qq|
625 628

  
626 629
<table width=100%>
627 630
  <tr class=listtop>
......
1150 1153
      <input class=submit type=submit name=action value="|
1151 1154
        . $locale->text('Print and Post') . qq|">
1152 1155
      <input class=submit type=submit name=action value="|
1153
        . $locale->text('Post') . qq|">|;
1156
        . $locale->text('Post') . qq|"> | .
1157
        NTI($cgi->submit('-name' => 'action', '-value' => $locale->text('Save draft'),
1158
                         '-class' => 'submit'));
1154 1159
    }
1155 1160
  }
1156 1161

  
......
1172 1177
<input type=hidden name=rowcount value=$form->{rowcount}>
1173 1178

  
1174 1179
<input name=callback type=hidden value="$form->{callback}">
1175

  
1180
|
1181
. $cgi->hidden('-name' => 'draft_id', '-default' => [$form->{draft_id}])
1182
. $cgi->hidden('-name' => 'draft_description', '-default' => [$form->{draft_description}])
1183
. qq|
1176 1184
<input type=hidden name=path value=$form->{path}>
1177 1185
<input type=hidden name=login value=$form->{login}>
1178 1186
<input type=hidden name=password value=$form->{password}>
......
1445 1453
    if (!(IS->post_invoice(\%myconfig, \%$form))) {
1446 1454
      $form->error($locale->text('Cannot post invoice!'));
1447 1455
    }
1456
    remove_draft();
1448 1457
    # saving the history
1449 1458
  	if(!exists $form->{addition}) {
1450 1459
  	  $form->{addition} = "PRINTED AND POSTED";
......
1453 1462
    # /saving the history
1454 1463
    
1455 1464
  } else {
1456
      if (IS->post_invoice(\%myconfig, \%$form)){
1465
    if (IS->post_invoice(\%myconfig, \%$form)){
1466
      remove_draft();
1457 1467
    	# saving the history
1458
  		if(!exists $form->{addition}) {
1468
        if(!exists $form->{addition}) {
1459 1469
  	  		if($form->{storno}) {
1460 1470
  	  			$form->{addition} = "STORNO";
1461 1471
  	  		}

Auch abrufbar als: Unified diff