停止将计费 Type/Terms 附加到合同发票的交易明细

Stop Billing Type/Terms being apended to Transaction Detail for Contract Invoices

我们利用合同计费来维护年度和月度订阅服务。在按月计费时,我们会为前一个月计费,因此设置为 Prepaid 计费类型。

我们有一个名为 运行 合同计费 的流程。此过程为附加到客户位置的合同生成发票。但是,在该过程中的某处,账单类型或条款描述被添加到发票行项目中的交易描述之前。

客户在收到发票时会感到困惑。如果我收到的发票的行项目以 "Prepaid" 开头,那么我会认为它已经支付并且余额不再未清。我知道我可以使用 Report Designer 并从 ARTran.TransDesc 中删除 Prepaid 来解决这个问题,但感觉这是解决此问题的错误方法。我宁愿这不是放在首位。谁能指出我从哪里开始寻找这场即将发生的崩溃的原因的方向?

计费类型被添加到 CTBillEngine 图表中的 AR 交易描述中。

如果您不想使用 Prefix ,您可以覆盖 CTBillEngine Graph 的 GetTransactionDescriptionWithPrefix 方法。

using PX.Data;
using PX.Objects.CT;

namespace PXDemoPkg
{
    public class CTBillEnginePXDemoExt : PXGraphExtension<CTBillEngine>
    {
        public delegate string GetTransactionDescriptionWithPrefixBaseInvoke(string prefix, string description);

        [PXOverride]
        public string GetTransactionDescriptionWithPrefix(string prefix, string description, 
                                                          GetTransactionDescriptionWithPrefixBaseInvoke BaseInvoke)
        {
            return description;
        }
    }
}