Skip to content

[Event Request] table 39 "Purchase Line" - UpdatePrepmtSetupFields function #30099

@tuan-nguyen-fenwick

Description

@tuan-nguyen-fenwick

Why do you need this change?

We would like to request 2 new integration events in the UpdatePrepmtSetupFields function on the "Purchase Line" table.

Describe the request

Hi Microsoft BC Dev Team,

New integration events

Add 2 new integrations at the end of the PurchaseLine.Table.al object:

    [IntegrationEvent(false, false)]
    local procedure OnUpdatePrepmtSetupFieldsOnBeforeGetVATPostingSetup(var PurchaseLine: Record "Purchase Line"; GLAccount: Record "G/L Account"; var VATPostingSetup: Record "VAT Posting Setup"; var VATPostingSetupRetrieved: Boolean)
    begin
    end;

    [IntegrationEvent(false, false)]
    local procedure OnUpdatePrepmtSetupFieldsOnBeforeClearVATPostingSetup(var PurchaseLine: Record "Purchase Line"; var VATPostingSetup: Record "VAT Posting Setup"; var SkipClear: Boolean)
    begin
    end;

Implementation details in Base Application W1 v28.0

  1. Call OnUpdatePrepmtSetupFieldsOnBeforeGetVATPostingSetup around line 5747. A new variable VATPostingSetupRetrieved is needed to to skip VATPostingSetup.Get if the variable is set.
  2. Call OnUpdatePrepmtSetupFieldsOnBeforeClearVATPostingSetup around line 5751. And also a new variable is needed SkipClear to skip clearing VATPostingSetup.
Image

Regards
Tuan

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe issue misses information that prevents it from completion.

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions