acumatica - 如何在 acumatica 代码中将自定义字段值从销售订单屏幕传递到销售发票屏幕

标签 acumatica

我在销售订单标题中有一个自定义字段。当我单击 Acumatica 中的准备发票操作时,我想将此字段中的值粘贴到销售发票中。 这是屏幕图像:

enter image description here

最佳答案

您需要重写 ActionPrepareInvoice 并传递自定义字段。

有两种方法可以实现这一目标:

public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{

    [PXOverride]
    public IEnumerable PrepareInvoice(PXAdapter adapter, Func<PXAdapter, IEnumerable> baseMethod)
    {
        //You can paste your field either here
        return baseMethod(adapter); // and then return
    }

或者像这样:

public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{        
    [PXOverride]
    public IEnumerable PrepareInvoice(PXAdapter adapter, Func<PXAdapter, IEnumerable> baseMethod)
    {
        var result = baseMethod(adapter); 
        // add your pasting of your field here + some logic

        return result;
    }

取决于您的用例。

关于acumatica - 如何在 acumatica 代码中将自定义字段值从销售订单屏幕传递到销售发票屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53721725/

相关文章:

acumatica - 隐藏网格中的列

css - 在acumatica中自定义css文件以更改表单颜色

acumatica - 如何在现代 UI 中创建特定于表单的帮助菜单?

Acumatica API 登录超出限制

acumatica - 操作按钮未在屏幕上更新

acumatica - 在 Visual Studio 中找不到文件

acumatica - Acumatica添加用于文本框控件的工具提示

acumatica - where 子句中的 BQL 子查询

c# - 如何将多选属性值发送到 Acumatica

acumatica - 将屏幕 ID 转换为其站点地图屏幕标题