如何做到量场的单词表示在Acumatica发票报表(AR.64.10.00)? [英] How to do word representation of amount field in Acumatica Invoice Report (AR.64.10.00)?

查看:334
本文介绍了如何做到量场的单词表示在Acumatica发票报表(AR.64.10.00)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何做到量场的单词表示在Acumatica发票报表(AR.64.10.00)

How to do word representation of amount field in Acumatica Invoice Report (AR.64.10.00)?

推荐答案

ARInvoice DAC创建DAC扩展的未绑定字段。并使用 PX.Objects.AP.ToWords 属性。

Create an un-bound field in DAC Extension for ARInvoice DAC. And use PX.Objects.AP.ToWords attribute.

public class ARInvoicePXExt : PXCacheExtension<ARInvoice>
{
    #region UsrAmountToWords

    public abstract class usrAmountToWords : IBqlField { }


   [PX.Objects.AP.ToWords(typeof(ARInvoice.curyOrigDocAmt))]
    public virtual string UsrAmountToWords { get; set; }

    #endregion
}

使用 UsrAmountToWords 在AR.64.10.00报表字段。

Use UsrAmountToWords field in AR.64.10.00 report.

字表示发生过的属性 PX.Objects.AP.ToWords 。和外箱这个词仅供英文。对于非英语单词表示,创建自己的属性。 PX.Objects.AP.ToWords 的实施可以在
... \App_Data\CodeRepository\PX.Objects\AP\Descriptor\找到Attribute.cs。

The word representation happens through attribute PX.Objects.AP.ToWords. And this out-of-box word representation is English only. For non-English word representation, create your own attribute. Implementation of PX.Objects.AP.ToWords can be found in …\App_Data\CodeRepository\PX.Objects\AP\Descriptor\Attribute.cs.

这篇关于如何做到量场的单词表示在Acumatica发票报表(AR.64.10.00)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆