zoukankan      html  css  js  c++  java
  • Precision must be an integer within the allowed range: 0 for integers, 0 to 4 for money, 0 to 10 for decimal, and 0 to 5 for float fields.

    公司的CRM 2011在创建合同的时候,添加产品之后,总是会出现这个错误提示。

    初步怀疑是添加的field设定有问题,检查完所有数据都没有什么特别的发现。网上搜索之后发现了一篇相关文章(http://crm.vdsnickt.eu/2013/04/error-on-quote-product-precision-must-be-an-integer/)

    按照步骤一步步解决了问题,现在写下具体的操作步骤。

    1. 在Setting->Solutions, 创建一个solution, 加入quote production entity并保存。

    image

    2. 导出solution package,解压,打开customizations.xml, 查找<event> tag, 可以发现下面的onload event

    <events>
    <event name="onload" application="false" active="true">                
      <Handlers>
        <Handler functionName="Form_onload" libraryName="QuoteDetail_main_library.js" handlerUniqueId="d3953523-2ae1-43bc-b38e-d99690792a19" enabled="true">
          <dependencies />
        </Handler>
      </Handlers>
    </event>

    3. 插入下面的InternalHandlers event

    <event name="onload" application="true" active="true">
      <InternalHandlers>
        <Handler functionName="Mscrm.Form_onload" libraryName="QuoteDetail_main_system_library.js" handlerUniqueId="eea0b1f7-ed51-4231-a5f7-c109c3d1f0de" enabled="true">
          <dependencies>
            <dependency id="quantity" />
            <dependency id="productid" />
            <dependency id="uomid" />
            <dependency id="isproductoverridden" />
            <dependency id="productdescription" />
            <dependency id="ispriceoverridden" />
            <dependency id="priceperunit" />
            <dependency id="willcall" />
          </dependencies>
        </Handler>
      </InternalHandlers>
    </event>

    4. 修改之后的xml

    <events>
    <event name="onload" application="true" active="true">
      <InternalHandlers>
        <Handler functionName="Mscrm.Form_onload" libraryName="QuoteDetail_main_system_library.js" handlerUniqueId="eea0b1f7-ed51-4231-a5f7-c109c3d1f0de" enabled="true">
          <dependencies>
            <dependency id="quantity" />
            <dependency id="productid" />
            <dependency id="uomid" />
            <dependency id="isproductoverridden" />
            <dependency id="productdescription" />
            <dependency id="ispriceoverridden" />
            <dependency id="priceperunit" />
            <dependency id="willcall" />
          </dependencies>
        </Handler>
      </InternalHandlers>
        </event>
        <event name="onload" application="false" active="true">                
          <Handlers>
            <Handler functionName="Form_onload" libraryName="QuoteDetail_main_library.js" handlerUniqueId="d3953523-2ae1-43bc-b38e-d99690792a19" enabled="true">
              <dependencies />
            </Handler>
          </Handlers>
        </event>

    5. 保存修改后的xml,zip之后导入package,发布

    重新测试一下,问题基本上就是这样解决掉了,怀疑是在CU更新的时候改掉了这部分,迟点找机会重现一下这个问题。

  • 相关阅读:
    sqlserver 动态行转列
    c#指定日期格式
    The 14th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple
    Codeforces Round #410 (Div. 2)A B C D 暴力 暴力 思路 姿势/随机
    Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2) A B C D 暴力 水 二分 几何
    poj 2096 概率dp
    HDU 4405 概率dp
    Codeforces Round #408 (Div. 2) A B C 模拟 模拟 set
    Codeforces Round #301 (Div. 2)A B C D 水 模拟 bfs 概率dp
    HDU 1005 矩阵快速幂
  • 原文地址:https://www.cnblogs.com/yeung/p/5089727.html
Copyright © 2011-2022 走看看