如何在Acumatica发票报告(AR.64.10.00)中进行金额字段的单词表示?

时间:2016-07-12 05:29:24

标签: c# acumatica

如何在Acumatica发票报告(AR.64.10.00)中进行金额字段的单词表示?

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:5)

PX.Objects.AP.ToWords DAC的DAC扩展中创建一个未绑定字段。并使用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报告中使用PX.Objects.AP.ToWords字段。

enter image description here

enter image description here

单词表示通过属性PX.Objects.AP.ToWords发生。这个开箱即用的单词表示仅限英语。对于非英语单词表示,请创建自己的属性。可以在$('#getQuote').click(function (){ $.ajax({ headers: { 'X-Mashape-Key': 'nrXbQkfuWEmshxvDCunSMptEn0M0p1jHWCijsnX9Ow18j8TXus', 'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json' }, method:'POST', dataType: 'json', url: 'https://andruxnet-random-famous-quotes.p.mashape.com/', success: function(response) { var ape = response; var quoteText = ape.quote; var quoteAuthor = ape.author; $(".quote").html(quoteText); $(".author").html(quoteAuthor);} }); }); 中找到{{1}}的实现 ... \ App_Data文件\ CodeRepository \ PX.Objects \ AP \描述\ Attribute.cs。