简体   繁体   English

Dynamics CRM 合作伙伴门户默认货币

[英]Dynamics CRM Partner Portal default currency

We are using Dynamics CRM v8.x.我们正在使用 Dynamics CRM v8.x。 Our company is based in SA, therefore the base currency is ZAR.我们公司位于南非,因此基础货币为 ZAR。 Partners sell our products is USD.合作伙伴销售我们的产品是美元。 When an Opportunity is created from the Partner Portal, the currency defaults to ZAR.从合作伙伴门户创建商机时,货币默认为 ZAR。 I have added update permissions in the Entity Permission to update the currency, but this is still confusing as the Partner should only be allowed to sell in USD.我在实体权限中添加了更新权限来更新货币,但这仍然令人困惑,因为合作伙伴应该只被允许以美元出售。

So I went for the Javascript option.所以我选择了 Javascript 选项。 On the "Create opportunity" entity view I added a field for currency.在“创建机会”实体视图中,我添加了货币字段。 It is already on the form, but hidden.它已经在表格上,但被隐藏了。 After adding the field, I added the Javascript to the "Create Opportunity" page:添加字段后,我将 Javascript 添加到“创建机会”页面:

$(document).ready(function(){
$("#transactioncurrencyid_name").attr("value","US Dollar");
$("#transactioncurrencyid").attr("value","fcad5419-1182-e911-a2cb-00155d000f0c");
$("#transactioncurrencyid_entityname").attr("value","transactioncurrency");
});

Should anyone ever need to change the default value of a lookup field in Entity Forms see this link: ADXStudio - Set values in Lookup fields of Entity Forms如果有人需要更改实体 Forms 中查找字段的默认值,请参阅此链接: ADXStudio - Set values in Lookup fields of Entity Forms

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM