diff --git a/entity/Offer_entity/Offer_entity.aod b/entity/Offer_entity/Offer_entity.aod index 339c61499b8787d822be7bac1b6c15013eb493a0..13bc11dbc172228530f71035a0205be735f637c1 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 0000000000000000000000000000000000000000..5200a58a795a404a1f168028da796c5495f74741 --- /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