Skip to content
Snippets Groups Projects
Commit 0e815486 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: Entwicklung - xRM][TicketNr.: 1068716][[Serienbrief] Empfänger ohne...

[Projekt: Entwicklung - xRM][TicketNr.: 1068716][[Serienbrief] Empfänger ohne Adresse kann hinzugefügt werden und Brief wird erstellt]
parent 3683a2bb
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
<siblings>
<element>Address_entity</element>
</siblings>
<onValidation>%aditoprj%/entity/LetterRecipient_entity/onValidation.js</onValidation>
<titlePlural>Recipients</titlePlural>
<recordContainer>db</recordContainer>
<entityFields>
......
import("system.translate");
import("system.result");
import("Sql_lib");
import("system.vars");
var contactId = vars.get("$field.CONTACT_ID");
var standardAddress = newSelect("CONTACT.ADDRESS_ID")
.from("CONTACT")
.where("CONTACT.CONTACTID", contactId)
.cell();
if(!standardAddress)
{
result.string(translate.text("The selected Contact doesn't have an address set."));
}
\ No newline at end of file
......@@ -202,6 +202,10 @@
<key>Sender address</key>
<value>Senderadresse</value>
</entry>
<entry>
<key>The selected Contact doesn't have an address set.</key>
<value>Der ausgewählte Kontakt hat keine Adresse festgelegt.</value>
</entry>
<entry>
<key>Complete tasks</key>
<value>Aufgaben abschließen</value>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment