编辑代码

ObjAttr:{
	otherchange:function(o,newext,oldtxt,record,e){

		var SupplierID=findEidV(o,"1562687560748","ID").toUpperCase();//客户EID
		var DocDate=findEidV(o,"1541862349186").Format("yyyy-MM-dd");//单据日期EID
		var str = JSON.stringify(DocDate); 

		getandsetContV(o,"select dbo.fun_To3V(b.ID,b.Code,b.Name) as [TCurrency|Base_Currency],     //币种
        a.TaxRate,                                                                  //税率
        case when isnull(a.AutoCuPrice,'')='' then 1 else 0 end as ShowPrice,       //显示单价
        isnull(dbo.f_GetExRate(b.ID,'"+DocDate+"'),1) as ExRate                     //汇率
         
        from CBO_Supplier a inner join Base_Currency b on isnull(a.Currency,1546955589751001) = b.ID where a.ID="+SupplierID); 



	}
}

ObjAttr:{
	otherchange:function(o,newext,oldtxt,record,e){

		var CustomerID=findEidV(o,"1625111020229","ID").toUpperCase();
		var DocDate=findEidV(o,"1625109385450").Format("yyyy-MM-dd");
		var str = JSON.stringify(DocDate); 

		getandsetContV(o,"select dbo.fun_To3V(b.ID,b.Code,b.Name) as [Currency|Base_Currency],isnull(dbo.f_GetExRate(b.ID,'"+DocDate+"'),1) as ExRate from CBO_Customer a inner join Base_Currency b on isnull(a.Currency,1546955589751001) = b.ID where a.ID="+CustomerID); 
	}
}