在 Axapta 3.0 SP4 中向发票添加格式化文本行

发布于 2024-08-22 14:50:34 字数 308 浏览 7 评论 0原文

我仍在计划如何继续此阶段,但在客户站点,他们正在通过 axapta 开具发票。现在 axapta 已经使用多年,他们为其生成的发票仅使用发票行。

虽然这是一个可接受的解决方案,但如果有某种方法可以扩展/编程/自定义 Axapta,以便能够导入将挂接到正在发送的发票上的文本行,那么它仍然是首选。

我不太确定从哪里开始解决这个问题,我用谷歌搜索了一些,检查了一些“axapta”网站,但我看到的大多数内容都涉及较新的版本(这是版本 3 sp4,大约是六岁左右)。

如果可以的话,一般来说,程序是什么?会涉及x++代码吗?

感谢您的任何意见!

I'm still in the planning on how to proceed phase with this, but at a customer site, they are moving to invoicing through axapta. now the axapta has been used for years, and the invoices they are generating for it is -only- using invoice lines.

While this is an acceptable solution, it is still preferred if there's some way to extend/program/customize Axapta as to be able to import textual lines that will be hooked on to an invoice that is being sent out.

I'm not really sure as to where to start attacking this problem, i've googled some, checked out some "axapta" sites, but most of what i see either deals with newer versions (this is version 3 sp4, which is about six-ish years old).

If it's possible to do, in general terms, what would the procedures be? Would it involve x++ code?

Thanks for any input!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寄与心 2024-08-29 14:50:34

使用文档处理将注释附加到销售订单标题或销售订单行。将注释的限制字段设置为外部。您可以在备注部分的发票选项卡上的应收帐款/设置/表单/表单设置下控制发票上备注的打印。

要完全自定义发票的外观,请编辑报表 SalesInvoice。

Use document handling to attach a note to either the sales order header or the sales order lines. Set the Restriction field of the note to External. You can control printing of notes on invoices under Account receivable/Setup/Forms/Form setup, on the Invoice tab in the Note section.

To fully customize the look of an invoice, edit the report SalesInvoice.

不…忘初心 2024-08-29 14:50:34

遵循 Jay 的建议,将预先格式化的文本添加到文档处理中。

将以下方法添加到 DocuRef 表中:

static void addNote(Common record, str notes)
{
    DocuRef docuRef;
    ;
    docuRef.clear();
    docuRef.TypeId       = CustFormletterDocument::find().DocuTypeInvoice;
    docuRef.Restriction  = DocuRestriction::External;
    docuRef.RefTableId   = record.TableId;
    docuRef.RefRecId     = record.RecId;
    docuRef.RefCompanyId = record.dataAreaId;
    docuRef.Notes        = notes;
    docuRef.insert();
}

在插入销售表记录后的导入代码中:

DocuRef::addNotes(salesTable, preformattedtext);

您必须更改客户表单设置以允许在发票上打印注释。

Follow Jay's advice and add the preformatted text to document handling.

Add the following method to the DocuRef table:

static void addNote(Common record, str notes)
{
    DocuRef docuRef;
    ;
    docuRef.clear();
    docuRef.TypeId       = CustFormletterDocument::find().DocuTypeInvoice;
    docuRef.Restriction  = DocuRestriction::External;
    docuRef.RefTableId   = record.TableId;
    docuRef.RefRecId     = record.RecId;
    docuRef.RefCompanyId = record.dataAreaId;
    docuRef.Notes        = notes;
    docuRef.insert();
}

In your import code somewhere after the insert of the sales table record:

DocuRef::addNotes(salesTable, preformattedtext);

You will have to change your customer form setup to allow to print notes on the invoice.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文