{
  "title": "Codeunit 816 Purch. Post Invoice",
  "url": "https://jonas-paprotka.de/ref/codeunit/816-purch-post-invoice/",
  "author": "Jonas Paprotka",
  "license": "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link.",
  "subject": "Microsoft Dynamics 365 Business Central",
  "checked": "2026-09-20",
  "source": {
    "feed": "https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json",
    "package": "Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972",
    "build": "28.5.54151.54365",
    "code": {
      "29": {
        "url": "https://jonas-paprotka.de/ref/codeunit/816-purch-post-invoice/source/29/",
        "repo": "https://github.com/microsoft/BCApps",
        "branch": "releases/29.x",
        "commit": "a66254c3b8b5bb1cea290dc8f9d097aec4381153",
        "path": "src/Layers/W1/BaseApp/Purchases/Posting/PurchPostInvoice.Codeunit.al",
        "license": "MIT"
      }
    },
    "note": "Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."
  },
  "object": {
    "type": "codeunit",
    "id": 816,
    "name": "Purch. Post Invoice",
    "app": "Base Application",
    "appByVersion": [
      {
        "app": "Base Application",
        "from": 19
      }
    ],
    "nameByVersion": [
      {
        "name": "Purch. Post Invoice",
        "from": 19
      }
    ],
    "namespace": "Microsoft.Purchases.Posting",
    "versions": "19-28",
    "majors": [
      19,
      20,
      21,
      22,
      23,
      24,
      25,
      26,
      27,
      28
    ],
    "extends": null,
    "sourceTable": null,
    "sourceFile": "Purchases/Posting/PurchPostInvoice.Codeunit.al",
    "obsolete": null,
    "obsoleteSeenFrom": null,
    "byVersion": {
      "19": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 60,
          "values": 0
        },
        "stub": false
      },
      "20": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 60,
          "values": 0
        },
        "stub": false
      },
      "21": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 60,
          "values": 0
        },
        "stub": false
      },
      "22": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 60,
          "values": 0
        },
        "stub": false
      },
      "23": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "Microsoft.Purchases.Posting",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 15,
          "values": 0
        },
        "stub": false
      },
      "24": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "Microsoft.Purchases.Posting",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 15,
          "values": 0
        },
        "stub": false
      },
      "25": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "Microsoft.Purchases.Posting",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 17,
          "values": 0
        },
        "stub": false
      },
      "26": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "Microsoft.Purchases.Posting",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 17,
          "values": 0
        },
        "stub": false
      },
      "27": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "Microsoft.Purchases.Posting",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 18,
          "values": 0
        },
        "stub": false
      },
      "28": {
        "app": "base-application",
        "name": "Purch. Post Invoice",
        "ns": "Microsoft.Purchases.Posting",
        "obsolete": null,
        "target": "",
        "sourceTable": "",
        "counts": {
          "fields": 0,
          "keys": 0,
          "methods": 19,
          "values": 0
        },
        "stub": false
      }
    },
    "fields": [],
    "keys": [],
    "procedures": [
      {
        "name": "Check",
        "sig": "(Integer)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetPreviewMode",
        "sig": "(Boolean)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetSuppressCommit",
        "sig": "(Boolean)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetHideProgressWindow",
        "sig": "(Boolean)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetParameters",
        "sig": "(Record Invoice Posting Parameters)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetTotalLines",
        "sig": "(Variant, Variant)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "ClearBuffers",
        "sig": "()",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "PrepareLine",
        "sig": "(Variant, Variant, Variant)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "PostLines",
        "sig": "(Variant, var Codeunit Gen. Jnl.-Post Line, var Dialog, var Decimal)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "PrepareJobLine",
        "sig": "(Variant, Variant, Variant)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "CheckCreditLine",
        "sig": "(Variant, Variant)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "PostLedgerEntry",
        "sig": "(Variant, var Codeunit Gen. Jnl.-Post Line)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "PostBalancingEntry",
        "sig": "(Variant, var Codeunit Gen. Jnl.-Post Line)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "CalcDeferralAmounts",
        "sig": "(Variant, Variant, Decimal)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "CreatePostedDeferralSchedule",
        "sig": "(Variant, Integer, Code[20], Integer, Date)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "range": "19-28",
        "first": 19,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 19,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "PrepareInvoicePostingBuffer",
        "sig": "(var Record Purchase Line, var Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          25,
          26,
          27,
          28
        ],
        "range": "25-28",
        "first": 25,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 25,
            "to": 25,
            "returns": "",
            "kind": "procedure",
            "access": "internal",
            "obsolete": null
          },
          {
            "from": 26,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "SetSalesTax",
        "sig": "(var Record Purchase Line, var Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          25,
          26,
          27,
          28
        ],
        "range": "25-28",
        "first": 25,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 25,
            "to": 28,
            "returns": "",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      },
      {
        "name": "CreateTempFA",
        "sig": "(Record Gen. Journal Line, Integer, var Record Fixed Asset)",
        "returns": "Boolean",
        "kind": "procedure",
        "access": "public",
        "obsolete": null,
        "majors": [
          27,
          28
        ],
        "range": "27-28",
        "first": 27,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 27,
            "to": 28,
            "returns": "Boolean",
            "kind": "procedure",
            "access": "public",
            "obsolete": null
          }
        ]
      }
    ],
    "events": [
      {
        "name": "OnAfterCalcInvoiceDiscountPosting",
        "sig": "(Record Purchase Header, Record Purchase Line, Record Purchase Line, Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnAfterCalcLineDiscountPosting",
        "sig": "(Record Purchase Header, Record Purchase Line, Record Purchase Line, Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnAfterCreatePostedDeferralSchedule",
        "sig": "(Record Purchase Line, var Record Posted Deferral Header)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnAfterGetPurchAccount",
        "sig": "(Record Purchase Line, Record General Posting Setup, var Code[20])",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnAfterInitTotalAmounts",
        "sig": "(Record Purchase Line, Record Purchase Line, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnAfterPrepareGenJnlLine",
        "sig": "(var Record Gen. Journal Line, Record Purchase Header, Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnAfterSetJobLineFilters",
        "sig": "(var Record Purchase Line, Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnAfterSetApplyToDocNo",
        "sig": "(var Record Gen. Journal Line, Record Purchase Header)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforeCalcInvoiceDiscountPosting",
        "sig": "(Record Purchase Header, Record Purchase Line, Record Purchase Line, var Record Invoice Posting Buffer, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforeCalcLineDiscountPosting",
        "sig": "(Record Purchase Header, Record Purchase Line, Record Purchase Line, var Record Invoice Posting Buffer, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforeCalculateVATAmounts",
        "sig": "(Record Purchase Header, var Record Invoice Posting Buffer, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforeInitGenJnlLine",
        "sig": "(var Record Gen. Journal Line, Record Purchase Header, Record Invoice Posting Buffer, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforeInitGenJnlLineAmountFieldsFromTotalPurchLine",
        "sig": "(var Record Gen. Journal Line, var Record Purchase Header, var Record Purchase Line, var Record Purchase Line, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforePostLines",
        "sig": "(Record Purchase Header, var Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPostBalancingEntryOnAfterGenJnlPostLine",
        "sig": "(var Record Gen. Journal Line, var Record Purchase Header, var Record Purchase Line, var Record Purchase Line, Boolean, Boolean, var Codeunit Gen. Jnl.-Post Line)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPostLedgerEntryOnAfterGenJnlPostLine",
        "sig": "(var Record Gen. Journal Line, var Record Purchase Header, var Record Purchase Line, var Record Purchase Line, Boolean, Boolean, var Codeunit Gen. Jnl.-Post Line)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPostBalancingEntryOnBeforeGenJnlPostLine",
        "sig": "(var Record Gen. Journal Line, var Record Purchase Header, var Record Purchase Line, var Record Purchase Line, Boolean, Boolean, var Codeunit Gen. Jnl.-Post Line)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPostLedgerEntryOnBeforeGenJnlPostLine",
        "sig": "(var Record Gen. Journal Line, var Record Purchase Header, var Record Purchase Line, var Record Purchase Line, Boolean, Boolean, var Codeunit Gen. Jnl.-Post Line)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforePrepareLine",
        "sig": "(Record Purchase Header, Record Purchase Line, Record Purchase Line, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforePrepareLineFADiscount",
        "sig": "(var Record Invoice Posting Buffer, Record General Posting Setup, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforePostLedgerEntry",
        "sig": "(var Record Purchase Header, Record Purchase Line, Record Purchase Line, Record Invoice Posting Parameters, var Codeunit Gen. Jnl.-Post Line, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnBeforeTempDeferralLineInsert",
        "sig": "(var Record Deferral Line, Record Deferral Line, Record Purchase Line, var Integer, var Integer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnCalculateVATAmountsOnAfterGetReverseChargeVATPostingSetup",
        "sig": "(var Record VAT Posting Setup)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterAssignAmounts",
        "sig": "(Record Purchase Line, Record Purchase Line, var Decimal, var Decimal)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterSetAmounts",
        "sig": "(var Record Invoice Posting Buffer, Record Purchase Line)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterFillInvoicePostingBuffer",
        "sig": "(var Record Invoice Posting Buffer, Record Purchase Line)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforeAdjustTotalAmounts",
        "sig": "(Record Purchase Line, var Decimal, var Decimal, Date)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforeSetAccount",
        "sig": "(Record Purchase Header, Record Purchase Line, var Code[20])",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforeSetAmounts",
        "sig": "(Record Purchase Line, Record Purchase Line, var Record Invoice Posting Buffer, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterSetInvoiceDiscAccount",
        "sig": "(Record Purchase Line, Record General Posting Setup, var Record Invoice Posting Buffer, var Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterSetLineDiscAccount",
        "sig": "(Record Purchase Line, Record General Posting Setup, var Record Invoice Posting Buffer, var Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforeCalcInvoiceDiscountPosting",
        "sig": "(var Record Invoice Posting Buffer, var Record Invoice Posting Buffer, Record Purchase Header, Record Purchase Line, Decimal, Decimal, Decimal, Decimal, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforeCalcLineDiscountPosting",
        "sig": "(var Record Invoice Posting Buffer, var Record Invoice Posting Buffer, Record Purchase Header, Record Purchase Line, Decimal, Decimal, Decimal, Decimal, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPostLinesOnAfterGenJnlLinePost",
        "sig": "(var Record Gen. Journal Line, Record Purchase Header, Record Invoice Posting Buffer, var Codeunit Gen. Jnl.-Post Line, Boolean, Boolean, Integer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPostLinesOnBeforeGenJnlLinePost",
        "sig": "(var Record Gen. Journal Line, Record Purchase Header, Record Invoice Posting Buffer, var Codeunit Gen. Jnl.-Post Line, Boolean, Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareGenJnlLineOnAfterCopyToGenJnlLine",
        "sig": "(var Record Gen. Journal Line, Record Purchase Header, Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterSetInvoiceDiscountPosting",
        "sig": "(Record Purchase Header, Record Purchase Line, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterSetLineDiscountPosting",
        "sig": "(Record Purchase Header, Record Purchase Line, var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterPrepareDeferralLine",
        "sig": "(Record Purchase Line, Record Invoice Posting Buffer, Date, Integer, Integer, Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnAfterUpdateInvoicePostingBuffer",
        "sig": "(Record Purchase Header, Record Purchase Line, Record Invoice Posting Buffer, var Record Invoice Posting Buffer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforePrepareDeferralLine",
        "sig": "(Record Purchase Line, Record Invoice Posting Buffer, Date, Integer, Integer, Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforePreparePurchase",
        "sig": "(Record Purchase Header, Record Purchase Line)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforeSetInvoiceDiscAccount",
        "sig": "(Record Purchase Line, Record General Posting Setup, var Code[20], var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareLineOnBeforeSetLineDiscAccount",
        "sig": "(Record Purchase Line, Record General Posting Setup, var Code[20], var Boolean)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnPrepareDeferralLineOnBeforeDeferralPostingBufferPrepareInitialAmounts",
        "sig": "(var Record Deferral Posting Buffer, Record Purchase Header, Record Purchase Line, Decimal, Decimal, Decimal, Decimal, Code[20], Code[20])",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": {
          "state": "Pending",
          "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
          "tag": "20.0"
        },
        "majors": [
          19,
          20,
          21,
          22
        ],
        "range": "19-22",
        "first": 19,
        "last": 22,
        "obsoleteSince": 20,
        "spans": [
          {
            "from": 19,
            "to": 19,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          },
          {
            "from": 20,
            "to": 22,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": {
              "state": "Pending",
              "reason": "Replaced by run event procedure in codeunit Purch. Post Invoice Events",
              "tag": "20.0"
            }
          }
        ]
      },
      {
        "name": "OnSplitFAOnBeforeRunGenJnlPostLine",
        "sig": "(var Record Gen. Journal Line, var Record Gen. Journal Line, var Record Gen. Journal Line, Integer, Integer)",
        "returns": "",
        "kind": "integrationevent",
        "access": "local",
        "obsolete": null,
        "majors": [
          28
        ],
        "range": "28",
        "first": 28,
        "last": 28,
        "obsoleteSince": null,
        "spans": [
          {
            "from": 28,
            "to": 28,
            "returns": "",
            "kind": "integrationevent",
            "access": "local",
            "obsolete": null
          }
        ]
      }
    ],
    "values": []
  }
}