Revision db68b6fd
Von Sven Schöling vor fast 18 Jahren hinzugefügt
SL/Drafts.pm | ||
---|---|---|
96 | 96 |
} |
97 | 97 |
$sth->finish(); |
98 | 98 |
|
99 |
do_query($form, $dbh, "DELETE FROM drafts WHERE id = ?", $draft_id); |
|
99 |
# do_query($form, $dbh, "DELETE FROM drafts WHERE id = ?", $draft_id);
|
|
100 | 100 |
|
101 | 101 |
$dbh->disconnect(); |
102 | 102 |
|
bin/mozilla/ap.pl | ||
---|---|---|
1019 | 1019 |
$form->save_history($form->dbconnect(\%myconfig)); |
1020 | 1020 |
} |
1021 | 1021 |
# /saving the history |
1022 |
remove_draft(); |
|
1022 |
remove_draft() if $form->{remove_draft};
|
|
1023 | 1023 |
$form->redirect($locale->text('Transaction posted!')); |
1024 | 1024 |
} |
1025 | 1025 |
$form->error($locale->text('Cannot post transaction!')); |
bin/mozilla/ar.pl | ||
---|---|---|
1060 | 1060 |
$form->save_history($form->dbconnect(\%myconfig)); |
1061 | 1061 |
} |
1062 | 1062 |
# /saving the history |
1063 |
remove_draft(); |
|
1063 |
remove_draft() if $form->{remove_draft};
|
|
1064 | 1064 |
$form->redirect($locale->text('Transaction posted!')); |
1065 | 1065 |
} |
1066 | 1066 |
$form->error($locale->text('Cannot post transaction!')); |
bin/mozilla/io.pl | ||
---|---|---|
1657 | 1657 |
} |
1658 | 1658 |
|
1659 | 1659 |
$form->{groupitems} = "checked" if $form->{groupitems}; |
1660 |
$form->{remove_draft} = "checked" if $form->{remove_draft}; |
|
1660 | 1661 |
|
1661 | 1662 |
print qq| |
1662 | 1663 |
<td>| . $locale->text('Group Items') . qq|</td> |
1663 |
<td><input name=groupitems type=checkbox class=checkbox $form->{groupitems}></td> |
|
1664 |
<td><input name=groupitems type=checkbox class=checkbox $form->{groupitems}></td>|; |
|
1665 |
|
|
1666 |
print qq| |
|
1667 |
<td>| . $locale->text('Remove Draft') . qq|</td> |
|
1668 |
<td><input name=remove_draft type=checkbox class=checkbox $form->{remove_draft}></td>| if (!$form->{id} && $form->{draft_id}); |
|
1669 |
print qq| |
|
1664 | 1670 |
</tr> |
1665 | 1671 |
</table> |
1666 | 1672 |
</td> |
bin/mozilla/ir.pl | ||
---|---|---|
1086 | 1086 |
$form->save_history($form->dbconnect(\%myconfig)); |
1087 | 1087 |
} |
1088 | 1088 |
# /saving the history |
1089 |
remove_draft(); |
|
1089 |
remove_draft() if $form->{remove_draft};
|
|
1090 | 1090 |
$form->redirect( $locale->text('Invoice') |
1091 | 1091 |
. " $form->{invnumber} " |
1092 | 1092 |
. $locale->text('posted!')); |
bin/mozilla/is.pl | ||
---|---|---|
1451 | 1451 |
if (!(IS->post_invoice(\%myconfig, \%$form))) { |
1452 | 1452 |
$form->error($locale->text('Cannot post invoice!')); |
1453 | 1453 |
} |
1454 |
remove_draft(); |
|
1454 |
remove_draft() if $form->{remove_draft};
|
|
1455 | 1455 |
# saving the history |
1456 | 1456 |
if(!exists $form->{addition}) { |
1457 | 1457 |
$form->{addition} = "PRINTED AND POSTED"; |
... | ... | |
1461 | 1461 |
|
1462 | 1462 |
} else { |
1463 | 1463 |
if (IS->post_invoice(\%myconfig, \%$form)){ |
1464 |
remove_draft(); |
|
1464 |
remove_draft() if $form->{remove_draft};
|
|
1465 | 1465 |
# saving the history |
1466 | 1466 |
if(!exists $form->{addition}) { |
1467 | 1467 |
if($form->{storno}) { |
locale/de/all | ||
---|---|---|
630 | 630 |
'List Printer' => 'Drucker anzeigen', |
631 | 631 |
'List Transactions' => 'Buchungsliste', |
632 | 632 |
'Load draft' => 'Entwurf laden', |
633 |
'Loading a draft will remove it from this list until you click the \'Save Draft\' button again.' => 'Das Laden eines Entwurfs wird ihn aus dieser Liste entfernen, bis Sie erneut auf \'Entwurf Speichern\' klicken.', |
|
634 | 633 |
'Local Tax Office Preferences' => 'Angaben zum Finanzamt', |
635 | 634 |
'Lock System' => 'System sperren', |
636 | 635 |
'Lockfile created!' => 'System gesperrt!', |
... | ... | |
874 | 873 |
'Reference missing!' => 'Referenz fehlt!', |
875 | 874 |
'Remaining' => 'Rest', |
876 | 875 |
'Remove' => 'entfernen', |
876 |
'Remove Draft' => 'Entwurf löschen', |
|
877 | 877 |
'Removed spoolfiles!' => 'Druckdateien entfernt!', |
878 | 878 |
'Removing marked entries from queue ...' => 'Markierte Eintr?ge werden von der Warteschlange entfernt ...', |
879 | 879 |
'Repeat the password' => 'Passwort wiederholen', |
locale/de/cn | ||
---|---|---|
162 | 162 |
'RFQ' => 'Anfrage', |
163 | 163 |
'Record in' => 'Buchen auf', |
164 | 164 |
'Remaining' => 'Rest', |
165 |
'Remove Draft' => 'Entwurf löschen', |
|
165 | 166 |
'Reqdate' => 'Lieferdatum', |
166 | 167 |
'Required by' => 'Lieferdatum', |
167 | 168 |
'SAVED' => 'Gespeichert', |
locale/de/dn | ||
---|---|---|
154 | 154 |
'Quotation Date missing!' => 'Angebotsdatum fehlt!', |
155 | 155 |
'Quotation Number missing!' => 'Angebotsnummer fehlt!', |
156 | 156 |
'RFQ' => 'Anfrage', |
157 |
'Remove Draft' => 'Entwurf löschen', |
|
157 | 158 |
'Reqdate' => 'Lieferdatum', |
158 | 159 |
'Required by' => 'Lieferdatum', |
159 | 160 |
'SAVED' => 'Gespeichert', |
locale/de/ic | ||
---|---|---|
182 | 182 |
'Quoted' => 'Angeboten', |
183 | 183 |
'RFQ' => 'Anfrage', |
184 | 184 |
'ROP' => 'Mindestlagerbestand', |
185 |
'Remove Draft' => 'Entwurf löschen', |
|
185 | 186 |
'Reqdate' => 'Lieferdatum', |
186 | 187 |
'Required by' => 'Lieferdatum', |
187 | 188 |
'Revenue' => 'Erl?skonto', |
locale/de/io | ||
---|---|---|
114 | 114 |
'Quotation Date missing!' => 'Angebotsdatum fehlt!', |
115 | 115 |
'Quotation Number missing!' => 'Angebotsnummer fehlt!', |
116 | 116 |
'RFQ' => 'Anfrage', |
117 |
'Remove Draft' => 'Entwurf löschen', |
|
117 | 118 |
'Reqdate' => 'Lieferdatum', |
118 | 119 |
'Required by' => 'Lieferdatum', |
119 | 120 |
'SAVED' => 'Gespeichert', |
locale/de/ir | ||
---|---|---|
157 | 157 |
'Rechnungsnummer' => 'Rechnungsnummer', |
158 | 158 |
'Record in' => 'Buchen auf', |
159 | 159 |
'Remaining' => 'Rest', |
160 |
'Remove Draft' => 'Entwurf löschen', |
|
160 | 161 |
'Reqdate' => 'Lieferdatum', |
161 | 162 |
'Required by' => 'Lieferdatum', |
162 | 163 |
'SAVED' => 'Gespeichert', |
locale/de/is | ||
---|---|---|
179 | 179 |
'RFQ' => 'Anfrage', |
180 | 180 |
'Record in' => 'Buchen auf', |
181 | 181 |
'Remaining' => 'Rest', |
182 |
'Remove Draft' => 'Entwurf löschen', |
|
182 | 183 |
'Reqdate' => 'Lieferdatum', |
183 | 184 |
'Required by' => 'Lieferdatum', |
184 | 185 |
'SAVED' => 'Gespeichert', |
locale/de/oe | ||
---|---|---|
182 | 182 |
'RFQ' => 'Anfrage', |
183 | 183 |
'RFQ Number' => 'Anfragenummer', |
184 | 184 |
'Remaining' => 'Rest', |
185 |
'Remove Draft' => 'Entwurf löschen', |
|
185 | 186 |
'Reqdate' => 'Lieferdatum', |
186 | 187 |
'Request for Quotation' => 'Anfrage', |
187 | 188 |
'Request for Quotations' => 'Anfragen', |
templates/webpages/drafts/load_de.html | ||
---|---|---|
17 | 17 |
<tr> |
18 | 18 |
<td> |
19 | 19 |
Die folgenden Entwürfe wurden gespeichert und können geladen werden. |
20 |
Das Laden eines Entwurfs wird ihn aus dieser Liste entfernen, bis Sie erneut auf 'Entwurf Speichern' klicken. |
|
21 | 20 |
</td> |
22 | 21 |
</tr> |
23 | 22 |
|
templates/webpages/drafts/load_master.html | ||
---|---|---|
17 | 17 |
<tr> |
18 | 18 |
<td> |
19 | 19 |
<translate>The following drafts have been saved and can be loaded.</translate> |
20 |
<translate>Loading a draft will remove it from this list until you click the 'Save Draft' button again.</translate> |
|
21 | 20 |
</td> |
22 | 21 |
</tr> |
23 | 22 |
|
Auch abrufbar als: Unified diff
Loeschen von Drafts flexibler.
Die Checkbos bestimmt ob ein Draft geloescht wird, nicht mehr automatisch beim laden.