Hi everyone,
I'm looking for a way to customize the Add order based on opportunity BP.
I added some fields to the 'product in opportunity' object, like: discount amount, discount %, semester and schoolyear. Added semester and schoolyear to the product in order object too (discount amount, discount % fields are already exist there).
Now, I want these values to be copied when creating an order from an opp, just like the other fields of the product in order do.
I found this process does the order and creates the products
https://beable.creatio.com/0/Nui/ViewModule.aspx?vm=SchemaDesigner#process/be82d4e0-4638-4058-975d-050a3dcff8b5
but don't know how to extend the script there (the script that adds the products in on the Adding opportunity products to order element.
Is there a way to get to the function that are being executed in that script?
Adding the element's script here.
Thanks in advance,
Chani
if (ProductItems.ToString() != "" || IsCopyAllProduct) {
var copyProductsOperation = Factories.ClassFactory.Get<
Terrasoft.Configuration.CopyOrderProductsFromOpportunityOperation>(
new Factories.ConstructorArgument("userConnection", UserConnection));
copyProductsOperation.Execute(new Terrasoft.Configuration
.CopyOrderProductsFromOpportunityOperation
.CopyOrderProductsArgs {
OpportunityId = CurrentOpportunity,
OrderId = NewOrder,
IsCopyAllProducts = IsCopyAllProduct,
ProductItems = ProductItems
});
}
return true;