Skip to content
Snippets Groups Projects
Commit 6e0caef2 authored by Pascal Neub's avatar Pascal Neub Committed by Sebastian Pongratz
Browse files

[Projekt: xRM-Sales][TicketNr.: 2002148][Angebot/Beleg: Fehlerhafte Berechnung...

parent 5a5ca6b7
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
<title>Parts list</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Prod2prod_entity/documentation.adoc</documentation>
<afterSave>%aditoprj%/entity/Prod2prod_entity/afterSave.js</afterSave>
<titlePlural>Parts list</titlePlural>
<recordContainer>jDito</recordContainer>
<entityFields>
......
import("system.neon");
import("system.vars");
import("system.question");
import("system.translate");
import("Sql_lib");
if(vars.get("$local.recordstate") == neon.OPERATINGSTATE_NEW)
{
var sql = new SqlBuilder().selectCount().from("PRODUCTPRICE")
.where("PRODUCTPRICE.PRODUCT_ID", vars.get("$field.DEST_ID"));
if(sql.cell() == 0)
{
var message = translate.text("Please add the price of the product");
question.showMessage(message, question.WARNING, translate.text("Warning"));
}
}
......@@ -11945,6 +11945,10 @@
<key>Adito dark blue</key>
<value>Adito dunkelblau</value>
</entry>
<entry>
<key>Please add the price of the product</key>
<value>Bitte Preis am Produkt pflegen</value>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
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