Skip to content

Commit

Permalink
Merge origin/master
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Oct 27, 2024
2 parents 8d1cf26 + 191b640 commit 34b0163
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
<Image iconType="3" name="/icons/edit.png"/>
</Property>
<Property name="text" type="java.lang.String" value="neues Dokument"/>
<Property name="toolTipText" type="java.lang.String" value="Neues Dokument aus Vorlage erstellen und das Ergebnis dieses Dialogs &#xfc;bergeben. &#xa;Die Vorlage ben&#xf6;tigt den Platzhalter {{INGO_TEXT}}."/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cmdNewDocumentActionPerformed"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ public void mouseReleased(java.awt.event.MouseEvent evt) {

cmdNewDocument.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/edit.png"))); // NOI18N
cmdNewDocument.setText("neues Dokument");
cmdNewDocument.setToolTipText("Neues Dokument aus Vorlage erstellen und das Ergebnis dieses Dialogs übergeben. \nDie Vorlage benötigt den Platzhalter {{INGO_TEXT}}.");
cmdNewDocument.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cmdNewDocumentActionPerformed(evt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2551,7 +2551,7 @@ private void cmdCreateInvoiceDocumentActionPerformed(java.awt.event.ActionEvent
}

ArchiveFileDocumentsBean invoiceDoc = this.caseView.newDocumentDialog(null, currentEntry, senderUser, this.getInvoicePositionsAsTable(this.cmbTableHeadersLanguage.getSelectedItem().toString()), timesheetPosTable, giroCode, null);
if (this.currentEntry != null) {
if (invoiceDoc!=null && this.currentEntry != null) {
this.save();
try {
JLawyerServiceLocator locator = JLawyerServiceLocator.getInstance(ClientSettings.getInstance().getLookupProperties());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1062,18 +1062,18 @@ public byte[] getGiroCode(String senderPrincipalId, float amount, String purpose
}

if (ServerStringUtils.isEmpty(sender.getCompany())) {
throw new Exception("Girocode kann nicht erstellt werden - Unternehmensname des Absenders leer");
throw new Exception("Girocode kann nicht erstellt werden - Unternehmensname des Absenders leer. Korrektur unter 'Administration' - 'Nutzer'.");
}
String name=sender.getCompany().trim();

if (ServerStringUtils.isEmpty(sender.getBankBic())) {
throw new Exception("Girocode kann nicht erstellt werden - BIC des Absenders ist leer");
throw new Exception("Girocode kann nicht erstellt werden - BIC des Absenders ist leer. Korrektur unter 'Administration' - 'Nutzer'.");
}
String bic=sender.getBankBic().trim();
bic=bic.replace(" ", "");

if (ServerStringUtils.isEmpty(sender.getBankIban())) {
throw new Exception("Girocode kann nicht erstellt werden - IBAN des Absenders ist leer");
throw new Exception("Girocode kann nicht erstellt werden - IBAN des Absenders ist leer. Korrektur unter 'Administration' - 'Nutzer'.");
}
String iban=sender.getBankIban().trim();
iban=iban.replace(" ", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,9 @@ private boolean saveToCase(Message msg, Date received, ArchiveFileBean toCase, A

// remove any extension, because of the template it might be somewhere in the middle of the new name
docName = docName.replace("." + extension, "");

// add back extension
docName = ServerFileUtils.preserveExtension(newName, docName);

if (caseSvc.doesDocumentExistUnrestricted(toCase.getId(), docName)) {
log.error("There is already a document '" + docName + "' in case " + toCase.getFileNumber() + " - skipping this attachment");
Expand Down

0 comments on commit 34b0163

Please sign in to comment.