From 25f4b4d9815066fe6a9b7740b8c7ea8d158c9561 Mon Sep 17 00:00:00 2001 From: "b.ulrich" <b.ulrich@adito.de> Date: Tue, 14 Sep 2021 11:37:42 +0200 Subject: [PATCH] [Projekt: xRM-Sales][TicketNr.: 1084533][Angebot Reiter Belege] --- entity/Offer_entity/Offer_entity.aod | 4 ++++ .../orders/children/copy_param/valueProcess.js | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 entity/Offer_entity/entityfields/orders/children/copy_param/valueProcess.js diff --git a/entity/Offer_entity/Offer_entity.aod b/entity/Offer_entity/Offer_entity.aod index 339c61499b..13bc11dbc1 100644 --- a/entity/Offer_entity/Offer_entity.aod +++ b/entity/Offer_entity/Offer_entity.aod @@ -1020,6 +1020,10 @@ <name>OfferId_param</name> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/orders/children/offerid_param/valueProcess.js</valueProcess> </entityParameter> + <entityParameter> + <name>Copy_param</name> + <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/orders/children/copy_param/valueProcess.js</valueProcess> + </entityParameter> </children> </entityConsumer> <entityParameter> diff --git a/entity/Offer_entity/entityfields/orders/children/copy_param/valueProcess.js b/entity/Offer_entity/entityfields/orders/children/copy_param/valueProcess.js new file mode 100644 index 0000000000..5200a58a79 --- /dev/null +++ b/entity/Offer_entity/entityfields/orders/children/copy_param/valueProcess.js @@ -0,0 +1,17 @@ +import("system.result"); +import("system.vars"); + +var fieldparams = +{ + "$field.CONTACT_ID" : vars.getString("$field.CONTACT_ID") || "", + "$field.ISOLANGUAGE" : vars.getString("$field.ISOLANGUAGE") || "", + "$field.OFFER_ID" : vars.getString("$field.OFFERID") || "", + "$field.CURRENCY" : vars.getString("$field.CURRENCY") || "", + "$field.PAYMENTADDRESS" : vars.getString("$field.ADDRESS") || "", + "$field.DELIVERYADDRESS" : vars.getString("$field.ADDRESS") || "", + "$field.OBJECT_TYPE" : vars.getString("$field.OBJECT_TYPE") || "", + "$field.OBJECT_ROWID" : vars.getString("$field.OBJECT_ROWID") || "", + "$field.DISCOUNT" : vars.getString("$field.DISCOUNT") || "" +}; + +result.string(JSON.stringify(fieldparams)); \ No newline at end of file -- GitLab