
@[TOC](目录)
### 1、前提
目标币别与本位币之间需要维护”汇率体系“
### 2、注册单据转换的插件策略

### 3、Python参考脚本
```python
import clr
clr.AddReference('mscorlib')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.K3.SCM.App')
clr.AddReference('Kingdee.BOS.DataEntity')
clr.AddReference('Kingdee.K3.BD.Contracts')
clr.AddReference('Kingdee.K3.SCM.Contracts')
from System import *
from Kingdee.BOS.Core.Metadata import *
from Kingdee.K3.SCM.App import *
from Kingdee.BOS.Orm.DataEntity import *
from Kingdee.K3.BD.Contracts import *
from Kingdee.K3.BD.Contracts.FIN import *
from Kingdee.K3.SCM.Contracts import *
def AfterConvert(e):
billdatas = e.Result.FindByEntityKey("FBillHead")
for billdata in billdatas:
SetLocalCurrAndExchangeTypeAndExchangeRate(e,billdata)
def SetLocalCurrAndExchangeTypeAndExchangeRate(e,billdata):
fin = billdata["InStockFin"][0]
stockOrgId = billdata["StockOrgId_Id"]
currencyId = fin["SettleCurrId_Id"]
commonService =ServiceHelper.GetService[ICommonService]()
localCurrId = commonService.GetDefaultCurrencyByBizOrgID(this.Context, stockOrgId)
fin["LocalCurrId_Id"] = localCurrId
localCurrIdField = e.TargetBusinessInfo.GetField("FLocalCurrI