Table "Purchase Line"
ID 39
Namespace: Microsoft.Purchases.Document
Properties
Fields
| Name |
Type |
Description |
| "Document Type" |
Enum Microsoft.Purchases.Document."Purchase Document Type"
|
Specifies the type of document that you are about to create.
|
| "Buy-from Vendor No." |
Code[20]
|
Specifies the name of the vendor who delivered the items.
|
| "Document No." |
Code[20]
|
Specifies the document number.
|
| "Line No." |
Integer
|
Specifies the line's number.
|
| Type |
Enum Microsoft.Purchases.Document."Purchase Line Type"
|
Specifies the line type.
|
| "No." |
Code[20]
|
Specifies the number of the involved entry or record, according to the specified number series.
|
| "Location Code" |
Code[10]
|
Specifies the code for the location where the items on the line will be located.
|
| "Posting Group" |
Code[20]
|
|
| "Expected Receipt Date" |
Date
|
Specifies the date that you expect the items to be available in your warehouse.
|
| Description |
Text[100]
|
Specifies a description of the entry of the product to be purchased. To add a non-transactional text line, fill in the Description field only.
|
| "Description 2" |
Text[50]
|
Specifies information in addition to the description.
|
| "Unit of Measure" |
Text[50]
|
Specifies the unit of measure.
|
| Quantity |
Decimal
|
Specifies the number of units of the item specified on the line.
|
| "Outstanding Quantity" |
Decimal
|
Specifies how many units on the order line have not yet been received.
|
| "Qty. to Invoice" |
Decimal
|
Specifies the quantity that remains to be invoiced. It is calculated as Quantity - Qty. Invoiced.
|
| "Qty. to Receive" |
Decimal
|
Specifies the quantity of items that remains to be received.
|
| "Direct Unit Cost" |
Decimal
|
Specifies the cost of one unit of the selected item or resource.
|
| "Unit Cost (LCY)" |
Decimal
|
Specifies the cost, in LCY, of one unit of the item or resource on the line.
|
| "VAT %" |
Decimal
|
|
| "Line Discount %" |
Decimal
|
Specifies the discount percentage that is granted for the item on the line.
|
| "Line Discount Amount" |
Decimal
|
Specifies the discount amount that is granted for the item on the line.
|
| Amount |
Decimal
|
Specifies the net amount, excluding any invoice discount amount, that must be paid for products on the line.
|
| "Amount Including VAT" |
Decimal
|
|
| "Unit Price (LCY)" |
Decimal
|
Specifies the price, in LCY, of one unit of the item or resource. You can enter a price manually or have it entered according to the Price/Profit Calculation field on the related card.
|
| "Allow Invoice Disc." |
Boolean
|
Specifies if the invoice line is included when the invoice discount is calculated.
|
| "Gross Weight" |
Decimal
|
Specifies the gross weight of one unit of the item. In the purchase statistics window, the gross weight on the line is included in the total gross weight of all the lines for the particular purchase document.
|
| "Net Weight" |
Decimal
|
Specifies the net weight of one unit of the item. In the purchase statistics window, the net weight on the line is included in the total net weight of all the lines for the particular purchase document.
|
| "Units per Parcel" |
Decimal
|
Specifies the number of units per parcel of the item. In the purchase statistics window, the number of units per parcel on the line helps to determine the total number of units for all the lines for the particular purchase document.
|
| "Unit Volume" |
Decimal
|
Specifies the volume of one unit of the item. In the purchase statistics window, the volume of one unit of the item on the line is included in the total volume of all the lines for the particular purchase document.
|
| "Appl.-to Item Entry" |
Integer
|
Specifies the number of the item ledger entry that the document or journal line is applied -to.
|
| "Shortcut Dimension 1 Code" |
Code[20]
|
Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window.
|
| "Shortcut Dimension 2 Code" |
Code[20]
|
Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window.
|
| "Job No." |
Code[20]
|
Specifies the number of the related project. If you fill in this field and the Project Task No. field, then a project ledger entry will be posted together with the purchase line.
|
| "Indirect Cost %" |
Decimal
|
Specifies the percentage of the item's last purchase cost that includes indirect costs, such as freight that is associated with the purchase of the item.
|
| "Recalculate Invoice Disc." |
Boolean
|
|
| "Outstanding Amount" |
Decimal
|
|
| "Qty. Rcd. Not Invoiced" |
Decimal
|
|
| "Amt. Rcd. Not Invoiced" |
Decimal
|
|
| "Quantity Received" |
Decimal
|
Specifies how many units of the item on the line have been posted as received.
|
| "Quantity Invoiced" |
Decimal
|
Specifies how many units of the item on the line have been posted as invoiced.
|
| "Receipt No." |
Code[20]
|
|
| "Receipt Line No." |
Integer
|
|
| "Order No." |
Code[20]
|
Specifies the order number this line is associated with.
|
| "Order Line No." |
Integer
|
|
| "Profit %" |
Decimal
|
|
| "Pay-to Vendor No." |
Code[20]
|
|
| "Inv. Discount Amount" |
Decimal
|
Specifies the total calculated invoice discount amount for the line.
|
| "Vendor Item No." |
Text[50]
|
|
| "Sales Order No." |
Code[20]
|
|
| "Sales Order Line No." |
Integer
|
|
| "Drop Shipment" |
Boolean
|
Specifies if your vendor ships the items directly to your customer.
|
| "Gen. Bus. Posting Group" |
Code[20]
|
Specifies the vendor's or customer's trade type to link transactions made for this business partner with the appropriate general ledger account according to the general posting setup.
|
| "Gen. Prod. Posting Group" |
Code[20]
|
Specifies the item's product type to link transactions made for this item with the appropriate general ledger account according to the general posting setup.
|
| "VAT Calculation Type" |
Enum Microsoft.Foundation.Enums."Tax Calculation Type"
|
|
| "Transaction Type" |
Code[10]
|
|
| "Transport Method" |
Code[10]
|
|
| "Attached to Line No." |
Integer
|
Specifies the line number to which this purchase line is attached.
|
| "Entry Point" |
Code[10]
|
|
| "Area" |
Code[10]
|
|
| "Transaction Specification" |
Code[10]
|
|
| "Tax Area Code" |
Code[20]
|
Specifies the tax area that is used to calculate and post sales tax.
|
| "Tax Liable" |
Boolean
|
Specifies if this vendor charges you sales tax for purchases.
|
| "Tax Group Code" |
Code[20]
|
Specifies the tax group that is used to calculate and post sales tax.
|
| "Use Tax" |
Boolean
|
Specifies a U.S. sales tax that is paid on items purchased by a company that are used by the company, instead of being sold to a customer.
|
| "VAT Bus. Posting Group" |
Code[20]
|
Specifies the vendor's VAT specification to link transactions made for this vendor with the appropriate general ledger account according to the VAT posting setup.
|
| "VAT Prod. Posting Group" |
Code[20]
|
Specifies the VAT product posting group. Links business transactions made for the item, resource, or G/L account with the general ledger, to account for VAT amounts resulting from trade with that record.
|
| "Currency Code" |
Code[10]
|
Specifies the currency that is used on the entry.
|
| "Outstanding Amount (LCY)" |
Decimal
|
Specifies the amount for the items on the order that have not yet been received in LCY.
|
| "Amt. Rcd. Not Invoiced (LCY)" |
Decimal
|
Specifies the sum, in LCY, for items that have been received but have not yet been invoiced. The value in the Amt. Rcd. Not Invoiced (LCY) field is used for entries in the Purchase Line table of document type Order to calculate and update the contents of this field.
|
| "Reserved Quantity" |
Decimal
|
Specifies how many item units on this line have been reserved.
|
| "Blanket Order No." |
Code[20]
|
Specifies the number of the blanket order that the record originates from.
|
| "Blanket Order Line No." |
Integer
|
Specifies the number of the blanket order line that the record originates from.
|
| "VAT Base Amount" |
Decimal
|
|
| "Unit Cost" |
Decimal
|
|
| "System-Created Entry" |
Boolean
|
|
| "Line Amount" |
Decimal
|
Specifies the net amount, excluding any invoice discount amount, that must be paid for products on the line.
|
| "VAT Difference" |
Decimal
|
|
| "Inv. Disc. Amount to Invoice" |
Decimal
|
Specifies the actual invoice discount amount that will be posted for the line on the invoice.
|
| "VAT Identifier" |
Code[20]
|
|
| "IC Partner Ref. Type" |
Enum Microsoft.Intercompany.Partner."IC Partner Reference Type"
|
Specifies the item or account in your IC partner's company that corresponds to the item or account on the line.
|
| "IC Partner Reference" |
Code[20]
|
Specifies the IC partner. If the line is being sent to one of your intercompany partners, this field is used together with the IC Partner Ref. Type field to indicate the item or account in your partner's company that corresponds to the line.
|
| "Prepayment %" |
Decimal
|
Specifies the prepayment percentage to use to calculate the prepayment for purchases.
|
| "Prepmt. Line Amount" |
Decimal
|
Specifies the prepayment amount of the line in the currency of the purchase document if a prepayment percentage is specified for the purchase line.
|
| "Prepmt. Amt. Inv." |
Decimal
|
Specifies the prepayment amount that has already been invoiced to the customer for this purchase line.
|
| "Prepmt. Amt. Incl. VAT" |
Decimal
|
|
| "Prepayment Amount" |
Decimal
|
|
| "Prepmt. VAT Base Amt." |
Decimal
|
|
| "Prepayment VAT %" |
Decimal
|
|
| "Prepmt. VAT Calc. Type" |
Enum Microsoft.Foundation.Enums."Tax Calculation Type"
|
|
| "Prepayment VAT Identifier" |
Code[20]
|
|
| "Prepayment Tax Area Code" |
Code[20]
|
|
| "Prepayment Tax Liable" |
Boolean
|
|
| "Prepayment Tax Group Code" |
Code[20]
|
|
| "Prepmt Amt to Deduct" |
Decimal
|
Specifies the prepayment amount that has already been deducted from ordinary invoices posted for this purchase order line.
|
| "Prepmt Amt Deducted" |
Decimal
|
Specifies the prepayment amount that has already been deducted from ordinary invoices posted for this purchase order line.
|
| "Prepayment Line" |
Boolean
|
|
| "Prepmt. Amount Inv. Incl. VAT" |
Decimal
|
|
| "Prepmt. Amount Inv. (LCY)" |
Decimal
|
|
| "IC Partner Code" |
Code[20]
|
Specifies the code of the intercompany partner that the transaction is related to if the entry was created from an intercompany transaction.
|
| "Prepmt. VAT Amount Inv. (LCY)" |
Decimal
|
|
| "Prepayment VAT Difference" |
Decimal
|
|
| "Prepmt VAT Diff. to Deduct" |
Decimal
|
|
| "Prepmt VAT Diff. Deducted" |
Decimal
|
|
| "IC Item Reference No." |
Code[50]
|
|
| "Outstanding Amt. Ex. VAT (LCY)" |
Decimal
|
|
| "A. Rcd. Not Inv. Ex. VAT (LCY)" |
Decimal
|
|
| "Pmt. Discount Amount" |
Decimal
|
|
| "Prepmt. Pmt. Discount Amount" |
Decimal
|
|
| "Spend Request No." |
Code[20]
|
Specifies the spend request that this purchase document relates to.
|
| "Spend Request Close" |
Boolean
|
Specifies that the spend request will be closed when the purchase document is posted.
|
| "Dimension Set ID" |
Integer
|
|
| "Job Task No." |
Code[20]
|
Specifies the number of the related project task.
|
| "Job Line Type" |
Enum Microsoft.Projects.Project.Job."Job Line Type"
|
Specifies a Project Planning Line together with the posting of a project ledger entry.
|
| "Job Unit Price" |
Decimal
|
Specifies the sales price per unit that applies to the item or general ledger expense that will be posted.
|
| "Job Total Price" |
Decimal
|
Specifies the gross amount of the line that the purchase line applies to.
|
| "Job Line Amount" |
Decimal
|
Specifies the line amount of the project ledger entry that is related to the purchase line.
|
| "Job Line Discount Amount" |
Decimal
|
Specifies the line discount amount of the project ledger entry that is related to the purchase line.
|
| "Job Line Discount %" |
Decimal
|
Specifies the line discount percentage of the project ledger entry that is related to the purchase line.
|
| "Job Unit Price (LCY)" |
Decimal
|
|
| "Job Total Price (LCY)" |
Decimal
|
|
| "Job Line Amount (LCY)" |
Decimal
|
|
| "Job Line Disc. Amount (LCY)" |
Decimal
|
|
| "Job Currency Factor" |
Decimal
|
|
| "Job Currency Code" |
Code[20]
|
|
| "Job Planning Line No." |
Integer
|
Specifies the project planning line number that the usage should be linked to when the project journal is posted. You can only link to project planning lines that have the Apply Usage Link option enabled.
|
| "Job Remaining Qty." |
Decimal
|
Specifies the quantity that remains to complete a project.
|
| "Job Remaining Qty. (Base)" |
Decimal
|
|
| "Deferral Code" |
Code[10]
|
Specifies the deferral template that governs how expenses paid with this purchase document are deferred to the different accounting periods when the expenses were incurred.
|
| "Returns Deferral Start Date" |
Date
|
Specifies the starting date of the returns deferral period.
|
| "Selected Alloc. Account No." |
Code[20]
|
Specifies the allocation account number that will be used to distribute the amounts during the posting process.
|
| "Alloc. Acc. Modified by User" |
Boolean
|
|
| "Allocation Account No." |
Code[20]
|
|
| "Alloc. Purch. Line SystemId" |
Guid
|
|
| "Invoicing From Line SystemId" |
Guid
|
|
| "Matched Order Lines" |
Integer
|
|
| "Matched Inv./Cr. Memo Lines" |
Integer
|
|
| "Variant Code" |
Code[10]
|
Specifies the variant of the item on the line.
|
| "Bin Code" |
Code[20]
|
Specifies the bin where the items are picked or put away.
|
| "Qty. per Unit of Measure" |
Decimal
|
|
| "Qty. Rounding Precision" |
Decimal
|
|
| "Qty. Rounding Precision (Base)" |
Decimal
|
|
| "Unit of Measure Code" |
Code[10]
|
Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted.
|
| "Quantity (Base)" |
Decimal
|
|
| "Outstanding Qty. (Base)" |
Decimal
|
|
| "Qty. to Invoice (Base)" |
Decimal
|
|
| "Qty. to Receive (Base)" |
Decimal
|
|
| "Qty. Rcd. Not Invoiced (Base)" |
Decimal
|
|
| "Qty. Received (Base)" |
Decimal
|
|
| "Qty. Invoiced (Base)" |
Decimal
|
|
| "Reserved Qty. (Base)" |
Decimal
|
Specifies the value in the Reserved Quantity field, expressed in the base unit of measure.
|
| "FA Posting Date" |
Date
|
Specifies the FA posting date if you have selected Fixed Asset in the Type field for this line.
|
| "FA Posting Type" |
Enum Microsoft.FixedAssets.Posting."Purchase FA Posting Type"
|
Specifies the FA posting type if you have selected Fixed Asset in the Type field for this line.
|
| "Depreciation Book Code" |
Code[10]
|
Specifies the code for the depreciation book to which the line will be posted if you have selected Fixed Asset in the Type field for this line.
|
| "Salvage Value" |
Decimal
|
|
| "Depr. until FA Posting Date" |
Boolean
|
Specifies if depreciation was calculated until the FA posting date of the line.
|
| "Depr. Acquisition Cost" |
Boolean
|
Specifies if, when this line was posted, the additional acquisition cost posted on the line was depreciated in proportion to the amount by which the fixed asset had already been depreciated.
|
| "Maintenance Code" |
Code[10]
|
|
| "Insurance No." |
Code[20]
|
Specifies an insurance number if you have selected the Acquisition Cost option in the FA Posting Type field.
|
| "Budgeted FA No." |
Code[20]
|
Specifies the number of a fixed asset with the Budgeted Asset check box selected. When you post the journal or document line, an additional entry is created for the budgeted fixed asset where the amount has the opposite sign.
|
| "Duplicate in Depreciation Book" |
Code[10]
|
Specifies a depreciation book code if you want the journal line to be posted to that depreciation book, as well as to the depreciation book in the Depreciation Book Code field.
|
| "Use Duplication List" |
Boolean
|
Specifies, if the type is Fixed Asset, that information on the line is to be posted to all the assets defined depreciation books.
|
| "Responsibility Center" |
Code[10]
|
|
| "Item Category Code" |
Code[20]
|
|
| Nonstock |
Boolean
|
Specifies that this item is a catalog item.
|
| "Purchasing Code" |
Code[10]
|
Specifies the purchasing code associated with the purchase line.
|
| "Special Order" |
Boolean
|
|
| "Special Order Sales No." |
Code[20]
|
|
| "Special Order Sales Line No." |
Integer
|
|
| "Item Reference No." |
Code[50]
|
Specifies the referenced item number.
|
| "Item Reference Unit of Measure" |
Code[10]
|
|
| "Item Reference Type" |
Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"
|
|
| "Item Reference Type No." |
Code[30]
|
|
| "Whse. Outstanding Qty. (Base)" |
Decimal
|
|
| "Completely Received" |
Boolean
|
|
| "Requested Receipt Date" |
Date
|
Specifies the date that you want the vendor to deliver to the ship-to address. The value in the field is used to calculate the latest date you can order the items to have them delivered on the requested receipt date. If you do not need delivery on a specific date, you can leave the field blank.
|
| "Promised Receipt Date" |
Date
|
Specifies the date that the vendor has promised to deliver the order.
|
| "Lead Time Calculation" |
DateFormula
|
Specifies a date formula for the amount of time it takes to replenish the item.
|
| "Inbound Whse. Handling Time" |
DateFormula
|
Specifies the time it takes to make items part of available inventory, after the items have been posted as received.
|
| "Planned Receipt Date" |
Date
|
Specifies the date when the item is planned to arrive in inventory. Forward calculation: planned receipt date = order date + vendor lead time (per the vendor calendar and rounded to the next working day in first the vendor calendar and then the location calendar). If no vendor calendar exists, then: planned receipt date = order date + vendor lead time (per the location calendar). Backward calculation: order date = planned receipt date - vendor lead time (per the vendor calendar and rounded to the previous working day in first the vendor calendar and then the location calendar). If no vendor calendar exists, then: order date = planned receipt date - vendor lead time (per the location calendar).
|
| "Order Date" |
Date
|
Specifies the date when the order was created.
|
| "Allow Item Charge Assignment" |
Boolean
|
Specifies that you can assign item charges to this line.
|
| "Qty. to Assign" |
Decimal
|
Specifies how many units of the item charge will be assigned to the line.
|
| "Qty. Assigned" |
Decimal
|
Specifies how much of the item charge that has been assigned.
|
| "Return Qty. to Ship" |
Decimal
|
Specifies the quantity of items that remains to be shipped.
|
| "Return Qty. to Ship (Base)" |
Decimal
|
|
| "Return Qty. Shipped Not Invd." |
Decimal
|
|
| "Ret. Qty. Shpd Not Invd.(Base)" |
Decimal
|
|
| "Return Shpd. Not Invd." |
Decimal
|
|
| "Return Shpd. Not Invd. (LCY)" |
Decimal
|
|
| "Return Qty. Shipped" |
Decimal
|
Specifies how many units of the item on the line have been posted as shipped.
|
| "Return Qty. Shipped (Base)" |
Decimal
|
|
| "Item Charge Qty. to Handle" |
Decimal
|
Specifies how many items the item charge will be assigned to on the line. It can be either equal to Qty. to Assign or to zero. If it is zero, the item charge will not be assigned to the line.
|
| "Non-Deductible VAT %" |
Decimal
|
|
| "Non-Deductible VAT Base" |
Decimal
|
Specifies the amount of VAT that is not deducted due to the type of goods or services purchased.
|
| "Non-Deductible VAT Amount" |
Decimal
|
Specifies the amount of the transaction for which VAT is not applied, due to the type of goods or services purchased.
|
| "Non-Deductible VAT Diff." |
Decimal
|
|
| "Prepmt. Non-Deduct. VAT Base" |
Decimal
|
|
| "Prepmt. Non-Deduct. VAT Amount" |
Decimal
|
|
| "Item Charge Has Non.Ded. VAT" |
Boolean
|
|
| "Return Shipment No." |
Code[20]
|
|
| "Return Shipment Line No." |
Integer
|
|
| "Return Reason Code" |
Code[10]
|
Specifies the code explaining why the item was returned.
|
| Subtype |
Option
|
|
| "Copied From Posted Doc." |
Boolean
|
|
| "Price Calculation Method" |
Enum Microsoft.Pricing.Calculation."Price Calculation Method"
|
|
| "Attached Doc Count" |
Integer
|
Specifies the number of attachments.
|
| "Attached Lines Count" |
Integer
|
Specifies the number of non-inventory product lines attached to the purchase line.
|
| "Over-Receipt Quantity" |
Decimal
|
Specifies over-receipt quantity.
|
| "Over-Receipt Code" |
Code[20]
|
Specifies over-receipt code.
|
| "Over-Receipt Approval Status" |
Enum Microsoft.Purchases.Document."Over-Receipt Approval Status"
|
|
| "Buy-from Vendor Name" |
Text[100]
|
|
| "No. of Fixed Asset Cards" |
Integer
|
Specifies the number of fixed assets that is being purchased.
|
| "Overhead Rate" |
Decimal
|
|
| "MPS Order" |
Boolean
|
|
| "Planning Flexibility" |
Enum Microsoft.Inventory.Tracking."Reservation Planning Flexibility"
|
Specifies whether the supply represented by this line is considered by the planning system when calculating action messages.
|
| "Safety Lead Time" |
DateFormula
|
|
| SystemId |
Guid
|
|
| SystemCreatedAt |
DateTime
|
|
| SystemCreatedBy |
Guid
|
|
| SystemModifiedAt |
DateTime
|
|
| SystemModifiedBy |
Guid
|
|
| SystemCreatedByUserName |
Text[50]
|
|
| SystemCreatedByFullName |
Text[80]
|
|
| SystemModifiedByUserName |
Text[50]
|
|
| SystemModifiedByFullName |
Text[80]
|
|
| SystemRowVersion |
BigInteger
|
|
Methods
SetSkipEnsurePositiveLineNo
Obsolete
This element will become obsolete from version 28.0. Not used for anything
[Obsolete(Not used for anything,28.0)]
procedure SetSkipEnsurePositiveLineNo(NewSkipEnsurePositiveLineNo: Boolean)
Parameters
| Name |
Type |
Description |
|
NewSkipEnsurePositiveLineNo
|
Boolean |
|
InitOutstanding
Initializes outstanding quantities and amounts of the purchase line.
procedure InitOutstanding()
InitOutstandingAmount
Initializes the outstanding amounts of the purchase line.
procedure InitOutstandingAmount()
InitQtyToReceive
Initializes the quantity to receive and quantity to invoice of the purchase line.
procedure InitQtyToReceive()
InitQtyToShip
Initializes the return quantity to ship and quantity to invoice of the purchase line.
procedure InitQtyToShip()
InitQtyToInvoice
Initializes the quantity to invoice and vat of the purchase line.
Calculates invoice disc. amount to invoice.
procedure InitQtyToInvoice()
Remarks
If document type is not an invoice, prepayment amount to deduct is calculated.
InitHeaderDefaults
procedure InitHeaderDefaults(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary)
Parameters
MaxQtyToInvoice
Calculates maximum quantity that can be invoiced for the purchase line.
procedure MaxQtyToInvoice(): Decimal
Returns
| Type |
Description |
|
Decimal |
Maximum quantity that can be invoiced.
|
MaxQtyToInvoiceBase
Calculates maximum quantity (base) that can be invoiced for the purchase line.
procedure MaxQtyToInvoiceBase(): Decimal
Returns
| Type |
Description |
|
Decimal |
Maximum quantity (base) that can be invoiced.
|
MaxQtyToReceiveBase
Returns the maximum quantity (base) that can be received for a given quantity.
procedure MaxQtyToReceiveBase(QtyToReceiveBase: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
QtyToReceiveBase
|
Decimal |
Quantity (base).
|
Returns
| Type |
Description |
|
Decimal |
The maximum quantity (base) thant can be received.
|
CalcInvDiscToInvoice
Calculates and sets the invoices discount amount to invoice and updates vat.
procedure CalcInvDiscToInvoice()
CalcLineAmount
Calculates the line amount minus inv. discount amount for the purchase line.
procedure CalcLineAmount(): Decimal
Returns
| Type |
Description |
|
Decimal |
Line amount minus inv. discount amount.
|
CheckLineAmount
procedure CheckLineAmount(MaxLineAmount: Decimal)
Parameters
| Name |
Type |
Description |
|
MaxLineAmount
|
Decimal |
|
CheckLineTypeOnIndirectCostPercentUpdate
procedure CheckLineTypeOnIndirectCostPercentUpdate()
SetPurchHeader
Assigns given purchase header to the global variable and initializes the currency variable.
procedure SetPurchHeader(NewPurchHeader: Record "Purchase Header")
Parameters
Remarks
The global PurchHeader is used whenever data from the purchase header is used in other procedures on the object.
SuppressPurchaseHeaderExistsVerification is implicitly set to true; call SetSuppressPurchaseHeaderExistsVerification afterwards to override this behavior.
SetSuppressPurchaseHeaderExistsVerification
Sets the value of the SuppressPurchaseHeaderExistsVerification variable.
procedure SetSuppressPurchaseHeaderExistsVerification(NewSuppressPurchaseHeaderExistsVerification: Boolean)
Parameters
| Name |
Type |
Description |
|
NewSuppressPurchaseHeaderExistsVerification
|
Boolean |
Set to true to suppress the purchase header existence verification on insert.
|
GetPurchHeader
Retrieves the global purchase header for the current purchase line.
procedure GetPurchHeader(): Record "Purchase Header"
Returns
GetPurchHeader
Gets the purchase header and currency for the current purchase line.
procedure GetPurchHeader(var OutPurchHeader: Record "Purchase Header"; var OutCurrency: Record Currency)
Parameters
GetItem
procedure GetItem(): Record Item
Returns
GetRemainingQty
Returns remaining unreserved quantity and quantity (base) of the purchase line.
procedure GetRemainingQty(var RemainingQty: Decimal; var RemainingQtyBase: Decimal)
Parameters
| Name |
Type |
Description |
|
RemainingQty
|
Decimal |
Return value: Remaining unreserved quantity.
|
|
RemainingQtyBase
|
Decimal |
Return value: Remaining unreserved quantity (base).
|
GetReservationQty
Returns reservation quantities.
procedure GetReservationQty(var QtyReserved: Decimal; var QtyReservedBase: Decimal; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
QtyReserved
|
Decimal |
Return value: Reserved quantity.
|
|
QtyReservedBase
|
Decimal |
Return value: Reserved quantity (base).
|
|
QtyToReserve
|
Decimal |
Return value: Quantity to reserve.
|
|
QtyToReserveBase
|
Decimal |
Return value: Quantity to reserve (base).
|
Returns
| Type |
Description |
|
Decimal |
Qty per unit of measure.
|
GetSourceCaption
Returns a text that consists of the document type, document no. and line number separated by a space.
procedure GetSourceCaption(): Text
Returns
| Type |
Description |
|
Text |
Formated text.
|
SetReservationEntry
Initializes the reservation entries from the purchase line.
procedure SetReservationEntry(var ReservEntry: Record "Reservation Entry")
Parameters
SetReservationFilters
Filters reservation entry from the purchase line.
procedure SetReservationFilters(var ReservEntry: Record "Reservation Entry")
Parameters
ReservEntryExist
Checks if reservation entry exists for the purchase line.
procedure ReservEntryExist(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if reservation entry exists, otherwise false
|
GetLineAmountExclVAT
Returns line amount excluding VAT for the purchase line.
procedure GetLineAmountExclVAT(): Decimal
Returns
| Type |
Description |
|
Decimal |
Line amount excluding VAT.
|
Remarks
If the prices includes VAT in its prices, it calculates the line amount excluding VAT.
GetLineAmountInclVAT
Returns line amount including VAT for the purchase line.
procedure GetLineAmountInclVAT(): Decimal
Returns
| Type |
Description |
|
Decimal |
Line amount including VAT.
|
Remarks
If the prices does not include VAT in its prices, it calculates the line amount including VAT.
SetHasBeenShown
Sets the global flag HasBeenShown to true.
procedure SetHasBeenShown()
Remarks
The global flag is used to determine if the message which states that the order date is earlier than the work date has been shown.
IsPriceCalcCalledByField
Checks if the procedure has been called from the field that was previously planned.
procedure IsPriceCalcCalledByField(CurrPriceFieldNo: Integer): Boolean
Parameters
| Name |
Type |
Description |
|
CurrPriceFieldNo
|
Integer |
Field that called the price calculation.
|
Returns
| Type |
Description |
|
Boolean |
True if the if the calculation is triggered by the planned field, otherwise false.
|
PlanPriceCalcByField
Sets the field that initiates the price calculation if it is not already set.
procedure PlanPriceCalcByField(CurrPriceFieldNo: Integer)
Parameters
| Name |
Type |
Description |
|
CurrPriceFieldNo
|
Integer |
Field number that cause price calculation.
|
ClearFieldCausedPriceCalculation
Clears the field number that is planned to initiate the price calculation.
procedure ClearFieldCausedPriceCalculation()
UpdateDirectUnitCost
Updates the direct unit cost of the purchase line.
procedure UpdateDirectUnitCost(CalledByFieldNo: Integer)
Parameters
| Name |
Type |
Description |
|
CalledByFieldNo
|
Integer |
Field number that called direct unit cost calculation.
|
GetPriceCalculationHandler
Gets price calculation interface implementation for the purchase line.
procedure GetPriceCalculationHandler(PurchaseHeader: Record "Purchase Header"; var PriceCalculation: Interface "Price Calculation")
Parameters
GetLineWithPrice
Gets the default or overridden line with price interface implementation.
procedure GetLineWithPrice(var LineWithPrice: Interface "Line With Price")
Parameters
CountDiscount
Wrapper for price calculation method CountDiscount.
Returns the count of price list lines containing discounts suitable for the purchase line.
procedure CountDiscount(ShowAll: Boolean): Integer
Parameters
| Name |
Type |
Description |
|
ShowAll
|
Boolean |
If true, it expands the filter criteria applied to the price list line.
|
Returns
| Type |
Description |
|
Integer |
The number of price list lines with discounts.
|
CountPrice
Wrapper for price calculation method CountPrice.
Returns the count of price list lines containing prices suitable for the purchase line.
procedure CountPrice(ShowAll: Boolean): Integer
Parameters
| Name |
Type |
Description |
|
ShowAll
|
Boolean |
If true, it expands the filter criteria applied to the price list line.
|
Returns
| Type |
Description |
|
Integer |
The number of price list lines with prices.
|
DiscountExists
Wrapper for price calculation method IsDiscountExists.
Returns true if there are any price list lines containing discounts that are applicable to the purchase line.
procedure DiscountExists(ShowAll: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
ShowAll
|
Boolean |
If true, it expands the filter criteria applied to the price list line.
|
Returns
| Type |
Description |
|
Boolean |
Returns true if at least one price list line is found, otherwise false.
|
PriceExists
Wrapper for price calculation method IsPriceExists.
Returns true if there are any price list lines containing prices that are applicable to the purchase line.
procedure PriceExists(ShowAll: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
ShowAll
|
Boolean |
If true, it expands the filter criteria applied to the price list line.
|
Returns
| Type |
Description |
|
Boolean |
Returns true if at least one price list line is found, otherwise false.
|
PickDiscount
Wrapper for price calculation method PickDiscount.
Opens a price list selection to choose discounts suitable for the purchase line.
The discounts are assigned to the purchase line after selection.
procedure PickDiscount()
PickPrice
Wrapper for price calculation method PickPrice.
Opens a price list selection to choose prices suitable for the purchase line.
The prices are assigned to the purchase line after selection.
procedure PickPrice()
UpdateReferencePriceAndDiscount
Updates the purchase line's price and discount based on the item reference number.
procedure UpdateReferencePriceAndDiscount()
UpdateUnitCost
Updates the unit cost of the purchase line.
procedure UpdateUnitCost()
UpdateAmounts
Updates line, vat, prepayment and deferral amounts of the purchase line.
Initializes outstanding amounts.
procedure UpdateAmounts()
Remarks
If purchase line type is charge (item), it updates item charge assignment.
UpdateVATAmounts
Updates amounts, vat amounts and vat procentage of the purchase line.
procedure UpdateVATAmounts()
UpdatePrepmtSetupFields
Checks prepayment setups and assigns prepayment fields to the purchase line.
procedure UpdatePrepmtSetupFields()
UpdateSalesCost
Updates unit costs of the purchase line.
procedure UpdateSalesCost()
GetFAPostingGroup
procedure GetFAPostingGroup()
UpdateUOMQtyPerStockQty
Updates unit cost, unit price and direct unit cost for the purchase line.
procedure UpdateUOMQtyPerStockQty()
SelectMultipleItems
Opens a selection of items page. After that, selected items are added to purchase lines.
procedure SelectMultipleItems()
Remarks
If document type is not return order or credit memo, selection shows only items that have purchasing blocked field set to false.
AddItems
Adds items to the purchase lines based on a selection filter.
procedure AddItems(SelectionFilter: Text)
Parameters
| Name |
Type |
Description |
|
SelectionFilter
|
Text |
Filter text of the selected items.
|
AddItem
Inserts an item to the purchase line.
procedure AddItem(var PurchLine: Record "Purchase Line"; ItemNo: Code[20])
Parameters
Remarks
If purchase line has automatic ext. texts enabled, it inserts extended texts to purchase line.
TransferExtendedTexts
Transfers extended texts for the purchase line.
procedure TransferExtendedTexts(var PurchaseLine: Record "Purchase Line"; var LastPurchaseLine: Record "Purchase Line")
Parameters
Remarks
If purchase line has automatic ext. texts enabled, it inserts extended texts to purchase line.
This procedure can be called independently to apply extended text logic without initializing a new line.
InitNewLine
Initializes a new purchase line based on the current purchase line.
procedure InitNewLine(var NewPurchLine: Record "Purchase Line")
Parameters
ShowOrderTracking
procedure ShowOrderTracking()
ShowReservation
Opens the reservation page for an item in a purchase line.
procedure ShowReservation()
ShowReservationEntries
Opens a reservation entries page for the current purchase line.
procedure ShowReservationEntries(Modal: Boolean)
Parameters
| Name |
Type |
Description |
|
Modal
|
Boolean |
If true, execution is halted until the page is closed.
|
GetDate
Returns the posting date from the related purchase header if it's available, otherwise it returns the current work date.
procedure GetDate(): Date
Returns
| Type |
Description |
|
Date |
Document's posting date or work date.
|
Signed
Returns a signed decimal value based on the document type of the purchase line.
procedure Signed(Value: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
Value
|
Decimal |
The value to sign.
|
Returns
| Type |
Description |
|
Decimal |
Signed value.
|
BlanketOrderLookup
Opens a page to select blanket order line for the current purchase line.
Selected blanket order line information is assigned to the purchase line.
procedure BlanketOrderLookup()
BlockDynamicTracking
Sets TrackingBlocked flag to the given value. Also sets global Blocked flag of purchase line reserve codeunit.
procedure BlockDynamicTracking(SetBlock: Boolean)
Parameters
| Name |
Type |
Description |
|
SetBlock
|
Boolean |
Flag value to set.
|
Remarks
This flag is used to disallow changes to existing reservation entries for the purchase line.
ShowDimensions
Opens a page for editing dimensions for the purchase line.
Upon closing the page, it updates the dimensions on the purcahse line.
procedure ShowDimensions(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the dimensions were changed, otherwise false.
|
OpenItemTrackingLines
Opens a page for editing item tracking lines for the purchase line.
procedure OpenItemTrackingLines()
CreateDim
Creates dimensions for the purchase line based on the provided default dimension sources.
procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
| Name |
Type |
Description |
|
DefaultDimSource
|
List of [Dictionary of [Integer, Code[20]]] |
The list of default dimension sources.
|
ValidateShortcutDimCode
Verifies whether the provided shortcut dimension code and value are valid.
procedure ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name |
Type |
Description |
|
FieldNumber
|
Integer |
Number of the shortcut dimension.
|
|
ShortcutDimCode
|
Code[20] |
Value of the shortcut dimension.
|
Remarks
If the dimensions of a received or shipped item have changed in a purchase line, the confirmation is shown.
LookupShortcutDimCode
Opens a page for selecting a dimension code, then assigns the selected value to the presented number of the shortcut dimension.
procedure LookupShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name |
Type |
Description |
|
FieldNumber
|
Integer |
Number of the shortcut dimension.
|
|
ShortcutDimCode
|
Code[20] |
Return value: Value of the selected shortcut dimension.
|
ShowShortcutDimCode
Gets an array of shortcut dimension values from the dimensions of the purchase line.
procedure ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])
Parameters
| Name |
Type |
Description |
|
ShortcutDimCode
|
array[8] of Code[20] |
Return value: The array of shortcut dimension values.
|
ShowItemChargeAssgnt
Opens item charge assignment page, where receipt lines can be selected and additional cost is passed to the selected items.
procedure ShowItemChargeAssgnt()
Remarks
If the purchase line type is not an item (charge), a message is displayed, and the procedure is ended.
UpdateItemChargeAssgnt
Updates item chage assignment amounts and unit cost for the pruchase line.
procedure UpdateItemChargeAssgnt()
Remarks
If the document type is a blanket order, the procedure is ended.
If the quantity invoiced is greater than the sum of the quantity assigned and the quantity to assign, an error message is displayed.
DeleteItemChargeAssignment
Deletes item charge assignments that are applied to purchase document line.
The provided parameters filter out item charge assignments to delete.
procedure DeleteItemChargeAssignment(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; DocLineNo: Integer)
Parameters
DeleteChargeChargeAssgnt
Deletes item charge assignments for a purchase document line.
The provided parameters filter out item charge assignments to delete.
procedure DeleteChargeChargeAssgnt(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; DocLineNo: Integer)
Parameters
Remarks
If document type is not a blanket order and quantity invoiced is not 0,
the procedure tests if qty. assigned and quantity invoiced are not zero.
CheckItemChargeAssgnt
Checks if there are any item charge assignments assigned for the purchase line.
If so, it checks if item charge assignment is allowed and if the quantity to assign is zero.
procedure CheckItemChargeAssgnt()
CheckAssociatedSalesOrder
procedure CheckAssociatedSalesOrder()
GetSkipTaxCalculation
Returns the value of global SkipTaxCalculation flag.
procedure GetSkipTaxCalculation(): Boolean
Returns
| Type |
Description |
|
Boolean |
The value of global SkipTaxCalculation flag.
|
SetSkipTaxCalulation
Sets the global flag SkipTaxCalculation value.
procedure SetSkipTaxCalulation(Skip: Boolean)
Parameters
| Name |
Type |
Description |
|
Skip
|
Boolean |
The value to set.
|
SetHideValidationDialog
Sets the global HideValidationDialog flag.
procedure SetHideValidationDialog(NewHideValidationDialog: Boolean)
Parameters
| Name |
Type |
Description |
|
NewHideValidationDialog
|
Boolean |
The new value of the flag.
|
GetHideValidationDialog
Gets the global HideValidationDialog flag.
procedure GetHideValidationDialog(): Boolean
Returns
| Type |
Description |
|
Boolean |
The value of the flag.
|
GetCaptionClass
Gets a caption class for a field.
procedure GetCaptionClass(FieldNumber: Integer): Text[80]
Parameters
| Name |
Type |
Description |
|
FieldNumber
|
Integer |
The number of the field to get the caption class for.
|
Returns
| Type |
Description |
|
Text[80] |
The caption class of a field.
|
TestStatusOpen
Checks whether the purchase header of the line is open.
procedure TestStatusOpen()
Remarks
The check is performed exclusively for non-system generated lines, type changes, and lines with non-blank type.
GetSuspendedStatusCheck
Returns the value of the global variable StatusCheckSuspended.
procedure GetSuspendedStatusCheck(): Boolean
Returns
| Type |
Description |
|
Boolean |
The value of the global variable StatusCheckSuspended.
|
SuspendStatusCheck
Sets the value of the global variable StatusCheckSuspended.
procedure SuspendStatusCheck(Suspend: Boolean)
Parameters
| Name |
Type |
Description |
|
Suspend
|
Boolean |
The new value to set.
|
UpdateLeadTimeFields
Updates Lead Time fields based on the item, location, variant, and vendor for the purchase line.
procedure UpdateLeadTimeFields()
Remarks
If the purchase line type is not item, the procedure is ended.
GetUpdateBasicDates
Updates the expected receipt date or order date of a purchase line with the corresponding date in the purchase header.
procedure GetUpdateBasicDates()
UpdateDates
Updates purchase line dates based on the promised receipt date or requested receipt date.
If both dates are empty, the procedure updates the expected receipt date or oreder date of a purchase line
with the corresponding date in the purchase header.
procedure UpdateDates()
InternalLeadTimeDays
Returns the total lead time in days for a purchase line, taking into account the safety lead time and inbound whse. handling time.
Used to calculate expected receipt date for the purchase line.
procedure InternalLeadTimeDays(PurchDate: Date): Text[30]
Parameters
| Name |
Type |
Description |
|
PurchDate
|
Date |
Planned receipt date of the purchase line.
|
Returns
| Type |
Description |
|
Text[30] |
Total lead time in days.
|
UpdateVATOnLines
Updates VAT and related amounts on all lines of the document.
procedure UpdateVATOnLines(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"): Boolean
Parameters
Returns
| Type |
Description |
|
Boolean |
True if any line was modified, otherwise false.
|
Remarks
If parameter QtyType is Shipping procedure is ended without updating the lines.
CalcVATAmountLines
Calculates the VAT amounts for purchase lines based on the quantity type, and updates the VAT amount lines accordingly.
procedure CalcVATAmountLines(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line")
Parameters
Remarks
VATAmountLine parameter must be temporary, because DeleteAll is called for it.
GetVATAmountLineOfMaxAmt
Retrieves the VAT amount line corresponding to the purchase line with the highest absolute amount from the set of VAT amount lines.
procedure GetVATAmountLineOfMaxAmt(var VATAmountLine: Record "VAT Amount Line"; PurchaseLine: Record "Purchase Line"): Boolean
Parameters
Returns
| Type |
Description |
|
Boolean |
True if a VAT amount line was found, otherwise false.
|
UpdateWithWarehouseReceive
Updates the quantities to receive or return for a purchase line based on the document type, quantity, and the location.
procedure UpdateWithWarehouseReceive()
CheckWarehouse
Checks warehouse requirements for a purchase line.
procedure CheckWarehouse(ShowDialogMessage: Boolean)
Parameters
| Name |
Type |
Description |
|
ShowDialogMessage
|
Boolean |
If true, then error or message is shown to inform the user about the requirements or issues.
|
Remarks
The check is only conducted under the condition that the purchase line is inbound, the item in the purchase line has an inventory type, and the location has a mandatory bin.
GetItemTranslation
Gets the translation of an item's description based on the language code of the purchase header
and updates the description fields of the purchase line.
procedure GetItemTranslation()
AdjustDateFormula
Formats a date formula parameter and returns it as a text.
procedure AdjustDateFormula(DateFormulatoAdjust: DateFormula): Text[30]
Parameters
| Name |
Type |
Description |
|
DateFormulatoAdjust
|
DateFormula |
Date formula to adjust.
|
Returns
| Type |
Description |
|
Text[30] |
Formated date formula as text.
|
RowID1
Generates a unique identifier text for a purchase line record which is used for item tracking or drop shipment creation.
procedure RowID1(): Text[250]
Returns
| Type |
Description |
|
Text[250] |
Generated text
|
IsInbound
Determines if a purchase line is inbound based on the document type and quantity.
procedure IsInbound(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if purchase line is inbound, otherwise false.
|
ItemExists
Checks if an item with a given item number exists in the Item table, but only if the type of the purchase line is item.
procedure ItemExists(ItemNo: Code[20]): Boolean
Parameters
| Name |
Type |
Description |
|
ItemNo
|
Code[20] |
Item number to check.
|
Returns
| Type |
Description |
|
Boolean |
True if the item exists, otherwise false.
|
FindOrCreateRecordByNo
Finds or creates a record by a given number and returns the number of the found or created record.
procedure FindOrCreateRecordByNo(SourceNo: Code[20]): Code[20]
Parameters
| Name |
Type |
Description |
|
SourceNo
|
Code[20] |
A record number to find or create.
|
Returns
| Type |
Description |
|
Code[20] |
Number of the found or newly created record.
|
GetAbsMin
Returns smaller absolute value between QtyToHandle and QtyHandled to ensure that the quantity being handled
does not exceed the quantity that is available to handle.
procedure GetAbsMin(QtyToHandle: Decimal; QtyHandled: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
QtyToHandle
|
Decimal |
Quantity to handle value.
|
|
QtyHandled
|
Decimal |
Quantity handled value.
|
Returns
| Type |
Description |
|
Decimal |
Smaller absolute value.
|
CalcPrepaymentToDeduct
Updates prepayment amount to deduct of the purchase line.
procedure CalcPrepaymentToDeduct()
IsFinalInvoice
Determines if the current purchase line is the final invoice based on the quantity and quantity to invoice.
procedure IsFinalInvoice(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if it is a final invoice, otherwise false.
|
GetLineAmountToHandle
Calculates the line amount to handle for a purchase line based on the quantity to handle.
procedure GetLineAmountToHandle(QtyToHandle: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
QtyToHandle
|
Decimal |
Quantity to handle.
|
Returns
| Type |
Description |
|
Decimal |
Calculated line amount to handle.
|
Remarks
Calculated line amount includes the line discount amount.
GetLineAmountToHandleInclPrepmt
Returns the line amount to handle for a purchase line, including prepayment.
procedure GetLineAmountToHandleInclPrepmt(QtyToHandle: Decimal): Decimal
Parameters
| Name |
Type |
Description |
|
QtyToHandle
|
Decimal |
Quantity to handle.
|
Returns
| Type |
Description |
|
Decimal |
Calculated line amount to handle.
|
Remarks
Prepayment amounts are included in the calculations only if purchase line has to be fully prepaid.
JobTaskIsSet
Determines if the purchase line has a job task set.
procedure JobTaskIsSet(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the job task is set, otherwise false.
|
Remarks
If job task is set, then journal lines can be created.
CreateTempJobJnlLine
Creates a temporary global job journal line based on the purchase line.
procedure CreateTempJobJnlLine(GetPrices: Boolean)
Parameters
| Name |
Type |
Description |
|
GetPrices
|
Boolean |
If true, it recalculates amounts from unit cost of the purchase line,
otherwise it sets the amounts directly from the purchase line.
|
UpdateJobPrices
Updates the job prices in the purchase line record based on the purchase receipt line,
or the global job journal line if receipt line doesn't exist.
procedure UpdateJobPrices()
JobSetCurrencyFactor
Updates the job currency factor from the temporary global job journal line.
procedure JobSetCurrencyFactor()
SetUpdateFromVAT
Sets the value of the global variable UpdateFromVAT.
procedure SetUpdateFromVAT(UpdateFromVAT2: Boolean)
Parameters
| Name |
Type |
Description |
|
UpdateFromVAT2
|
Boolean |
The new value to set.
|
InitQtyToReceive2
Initializes the quantity to receive and invoice.
Additionally, claculates the invoice discount and prepayment amounts.
procedure InitQtyToReceive2()
SwitchLinesWithErrorsFilter
Toggles the filter for lines with errors between displaying all lines and only lines with errors.
procedure SwitchLinesWithErrorsFilter(var ShowAllLinesEnabled: Boolean)
Parameters
| Name |
Type |
Description |
|
ShowAllLinesEnabled
|
Boolean |
Return value: A toggle for showing all lines or just lines with errors. After switching the filter,
the toggle is returned with the opposite value.
|
ClearQtyIfBlank
Resets qty. to receive values to zero if the document type is an order and the purchase setup has default qty. to receive blank.
procedure ClearQtyIfBlank()
ShowLineComments
Opens a page to show comments for the purchase line.
procedure ShowLineComments()
SetDefaultQuantity
Resets quantities to receive/return and invoice to zero based on the purchase setup setting for default qty. to receive.
procedure SetDefaultQuantity()
UpdatePrePaymentAmounts
Recalculates prepayment amounts to reflect changes in quantity.
procedure UpdatePrePaymentAmounts()
Remarks
If the document type in not an invoice or the prepayment percentage is 0, the prepayment amounts are not updated.
SetVendorItemNo
Sets the vendor item number for the purchase line.
procedure SetVendorItemNo()
ZeroAmountLine
Determines if the line has a zero amount. It always returns true for a line with a blank type.
procedure ZeroAmountLine(QtyType: Option): Boolean
Parameters
| Name |
Type |
Description |
|
QtyType
|
Option |
The type of quantity to check.
Only Invoicing option makes a difference by checking if quantity to invoice is zero, other options are ignored.
|
Returns
| Type |
Description |
|
Boolean |
True if the line has a zero amount, otherwise false.
|
FilterLinesWithItemToPlan
Sets filters on the purchase line for item lines, a specified document type, and various flow filters set in the provided item record.
procedure FilterLinesWithItemToPlan(var Item: Record Item; DocumentType: Enum "Purchase Document Type")
Parameters
FindLinesWithItemToPlan
Retrieves a record set of item purchase lines that match the provided document type and various filters set on the item.
procedure FindLinesWithItemToPlan(var Item: Record Item; DocumentType: Enum "Purchase Document Type"): Boolean
Parameters
Returns
| Type |
Description |
|
Boolean |
True if any purchase line was found, otherwise false.
|
LinesWithItemToPlanExist
Determines if any purchase lines exist that match the provided document type and various flow filters set on the item.
procedure LinesWithItemToPlanExist(var Item: Record Item; DocumentType: Enum "Purchase Document Type"): Boolean
Parameters
Returns
| Type |
Description |
|
Boolean |
True if any purchase lines exist, otherwise false.
|
FilterLinesForReservation
Sets filters on the purchase line for item lines that match the provided reservation entry.
procedure FilterLinesForReservation(ReservationEntry: Record "Reservation Entry"; DocumentType: Enum "Purchase Document Type"; AvailabilityFilter: Text; Positive: Boolean)
Parameters
GetVPGInvRoundAcc
Retrieves the invoice rounding account number from the vendor posting group associated with the purchase header.
procedure GetVPGInvRoundAcc(var PurchHeader: Record "Purchase Header"): Code[20]
Parameters
Returns
| Type |
Description |
|
Code[20] |
Invoice rounding account number from the vendor posting group.
|
IsReceivedShippedItemDimChanged
Determines if the dimensions have changed on an already received or shipped item line.
procedure IsReceivedShippedItemDimChanged(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the dimensions have changed, otherwise false.
|
IsServiceCharge
Checks if the purchase line is a service charge.
procedure IsServiceCharge(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the line is a service charge line, otherwise false.
|
ConfirmReceivedShippedItemDimChange
Raises a confirmation dialog to confirm the change of dimensions on an already received or shipped item line.
procedure ConfirmReceivedShippedItemDimChange(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the user confirms the change, otherwise an error is thrown.
|
InitType
Initializes the type of the purchase line.
procedure InitType()
GetDefaultLineType
Returns the default document line type from the purchase setup if it is not blank.
procedure GetDefaultLineType(): Enum "Purchase Line Type"
Returns
CheckLocationOnWMS
Checks if the line has receipt/shipment when it's mandatory by the location, but only performs this check
if the item in the line is inventoriable.
procedure CheckLocationOnWMS()
IsNonInventoriableItem
Determines if the line is a non-inventoriable item line.
procedure IsNonInventoriableItem(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the line is a non-inventoriable item line, otherwise false.
|
IsInventoriableItem
Determines if the line is an inventoriable item line.
procedure IsInventoriableItem(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the line is an inventoriable item line, otherwise false.
|
IsExtendedText
Determines if the line is an extended text line.
procedure IsExtendedText(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the line is an extended text line, otherwise false.
|
IsSubcontractingCreditMemo
procedure IsSubcontractingCreditMemo(): Boolean
Returns
GetJnlTemplateName
Retrieves the journal template name if g/l setup has a journal template name mandatory field set to true.
procedure GetJnlTemplateName(): Code[10]
Returns
| Type |
Description |
|
Code[10] |
Journal template name if g/l setup has a journal template name mandatory field set to true.
|
ValidateLineDiscountPercent
Updates the line discount percentage for the purchase line.
Additionally, updates line, vat, prepayment and deferral amounts, initializes outstanding amounts and updates the unit cost.
procedure ValidateLineDiscountPercent(DropInvoiceDiscountAmount: Boolean)
Parameters
| Name |
Type |
Description |
|
DropInvoiceDiscountAmount
|
Boolean |
If true, invoice discount amounts will be set to 0.
|
UpdateICPartner
Updates the intercompany partner information on the purchase line if the purchase header has outgoing intercompany direction.
procedure UpdateICPartner()
HasTypeToFillMandatoryFields
Checks if the current purchase line record has a type that requires mandatory fields to be filled.
procedure HasTypeToFillMandatoryFields(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if purchase line has a type that requires mandatory fields to be filled, otherwise false.
|
Remarks
By default, only the blank type will return false, but this behavior can be altered by an event subscriber.
GetDeferralAmount
Gets the defferal amount for the purchase line to be used in deferral schedules.
procedure GetDeferralAmount(): Decimal
Returns
| Type |
Description |
|
Decimal |
The deferral amount.
|
UpdateDeferralAmounts
Removes or updates the deferral schedule for the purchase line.
procedure UpdateDeferralAmounts()
ShowDeferrals
Opens a page with deferral schedule for the purchase line.
procedure ShowDeferrals(PostingDate: Date; CurrencyCode: Code[10]): Boolean
Parameters
| Name |
Type |
Description |
|
PostingDate
|
Date |
Posting date which is used as a start date on the deferral schedule if it needs to be created.
|
|
CurrencyCode
|
Code[10] |
Currency code to use for a new deferral schedule.
|
Returns
| Type |
Description |
|
Boolean |
True if deferral schedule was changed, otherwise false.
|
Remarks
If the deferral schedule doesn't exist yet, a new one is created and commited before the page is opened.
InitDeferralCode
Initializes the deferral code for the purchase line based on its type.
procedure InitDeferralCode()
DefaultDeferralCode
Initializes the deferral code for the purchase if the type is g/l account, item or resource.
procedure DefaultDeferralCode()
IsCreditDocType
Determines if the document type is a credit document.
procedure IsCreditDocType(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the document type is return order or credit memo, otherwise false.
|
IsInvoiceDocType
Determines if the document type of the line is order or invoice.
procedure IsInvoiceDocType(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the document type is order or invoice, otherwise false.
|
IsReceivedFromOcr
Determines if incoming document came from OCR.
procedure IsReceivedFromOcr(): Boolean
Returns
| Type |
Description |
|
Boolean |
True, if incoming document has ocr status success, otherwise false.
|
Remarks
If there's no incoming document associated with the purchase document, the procedure returns false.
CanEditUnitOfMeasureCode
Checks if item unit of measure code can be edited.
procedure CanEditUnitOfMeasureCode(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if item unit of measure code can be edited, otherwise false.
|
Remarks
If this is not an item line or if item is not selected the procedure always returns true.
TestItemFields
Verifies that the pruchase line is an item line and the fields match the provided values.
If the values do not match, an error is thrown.
procedure TestItemFields(ItemNo: Code[20]; VariantCode: Code[10]; LocationCode: Code[10])
Parameters
| Name |
Type |
Description |
|
ItemNo
|
Code[20] |
The item number to match.
|
|
VariantCode
|
Code[10] |
The variant code to match.
|
|
LocationCode
|
Code[10] |
The location code to match.
|
ClearPurchaseHeader
Clears global PurchHeader variable.
procedure ClearPurchaseHeader()
SendLineInvoiceDiscountResetNotification
Sends a notification when the invoice discount amount for the purchase line record has been reset.
procedure SendLineInvoiceDiscountResetNotification()
FormatType
Gets the formated text of the line type for the purchase line.
procedure FormatType(): Text[20]
Returns
| Type |
Description |
|
Text[20] |
Formated text of the line type.
|
Remarks
If line type is blank, comment label is returned.
RenameNo
Renames the number of all purchase lines corresponding to the specified line type and number.
procedure RenameNo(LineType: Enum "Purchase Document Type"; OldNo: Code[20]; NewNo: Code[20])
Parameters
Remarks
Used when related entities are renamed.
UpdateBaseAmounts
Updates the base amounts for the purchase line.
procedure UpdateBaseAmounts(NewAmount: Decimal; NewAmountIncludingVAT: Decimal; NewVATBaseAmount: Decimal)
Parameters
| Name |
Type |
Description |
|
NewAmount
|
Decimal |
Value to which amount will be updated.
|
|
NewAmountIncludingVAT
|
Decimal |
Value to which amount including VAT will be uptaded.
|
|
NewVATBaseAmount
|
Decimal |
Value to which VAT base amount will be uptaded.
|
UpdatePrepmtAmounts
Updates the prepayment amounts for the purchase line.
procedure UpdatePrepmtAmounts()
GetResource
Returns resource record from the resource number on the purchase line.
procedure GetResource(): Record Resource
Returns
ShowBlanketOrderPurchaseLines
Open a page with the purchase lines related to the blanket order line.
procedure ShowBlanketOrderPurchaseLines(DocumentType: Enum "Purchase Document Type")
Parameters
ShowBlanketOrderPostedReceiptLines
Open a page with the posted purchase receipt lines related to the blanket order line.
procedure ShowBlanketOrderPostedReceiptLines()
ShowBlanketOrderPostedInvoiceLines
Open a page with the posted purchase invoice lines related to the blanket order line.
procedure ShowBlanketOrderPostedInvoiceLines()
ShowBlanketOrderPostedReturnReceiptLines
Open a page with the posted return shipment lines related to the blanket order line.
procedure ShowBlanketOrderPostedReturnReceiptLines()
ShowBlanketOrderPostedCreditMemoLines
Open a page with the posted purchase credit memo lines related to the blanket order line.
procedure ShowBlanketOrderPostedCreditMemoLines()
CalcBaseQty
procedure CalcBaseQty(Qty: Decimal; FromFieldName: Text; ToFieldName: Text): Decimal
Parameters
| Name |
Type |
Description |
|
Qty
|
Decimal |
|
|
FromFieldName
|
Text |
|
|
ToFieldName
|
Text |
|
Returns
CreateDimFromDefaultDim
Initializes the dimensions for the purchase line if default dimensions are defined for the related entry.
procedure CreateDimFromDefaultDim(FieldNo: Integer)
Parameters
| Name |
Type |
Description |
|
FieldNo
|
Integer |
The field number for which to initialize the dimensions.
|
GetTableValuePair
Returns a dictionary mapping table IDs to field values for the purchase line for a specified field no.
procedure GetTableValuePair(FieldNo: Integer): Dictionary of [Integer, Code[20]]
Parameters
| Name |
Type |
Description |
|
FieldNo
|
Integer |
Field number to map.
|
Returns
| Type |
Description |
|
Dictionary of [Integer, Code[20]] |
Dictionary which has mapped provided field value with its corresponding table id.
|
SaveLookupSelection
Saves the selected record from the lookup to the lookup state manager.
procedure SaveLookupSelection(SelectedRecordRef: RecordRef)
Parameters
| Name |
Type |
Description |
|
SelectedRecordRef
|
RecordRef |
The reference to the selected record from the lookup.
|
AttachToInventoryItemLine
procedure AttachToInventoryItemLine(var SelectedPurchLine: Record "Purchase Line")
Parameters
RestoreLookupSelection
Restores the selected record from the lookup state manager to the purchase line.
procedure RestoreLookupSelection()
GetDateForCalculations
Gets the date required for purchase line calculations.
procedure GetDateForCalculations(): Date
Returns
| Type |
Description |
|
Date |
The date for calculations.
|
GetDateForCalculations
Gets the date required for purchase line calculations.
procedure GetDateForCalculations(FromPurchaseHeader: Record "Purchase Header"): Date
Parameters
Returns
| Type |
Description |
|
Date |
The date for calculations.
|
CheckIfPurchaseLineMeetsReservedFromStockSetting
Checks if the quantity to post for the purchase line meets the specified quantity in the reservation entries.
procedure CheckIfPurchaseLineMeetsReservedFromStockSetting(QtyToPost: Decimal; ReservedFromStock: Enum "Reservation From Stock"): Boolean
Parameters
Returns
| Type |
Description |
|
Boolean |
True if the reserved quantity meets the quantity in the reservation entries, otherwise false.
|
IsProdOrder
procedure IsProdOrder(): Boolean
Returns
IsWorkCenter
procedure IsWorkCenter(): Boolean
Returns
TestProdOrderNo
procedure TestProdOrderNo()
TestWorkCenterNo
procedure TestWorkCenterNo()
GetVATPct
procedure GetVATPct(): Decimal
Returns
AssignedItemCharge
Determines if the line is a charge item line that has been at least partially assigned.
procedure AssignedItemCharge(): Boolean
Returns
| Type |
Description |
|
Boolean |
True if the line is a charge item line that has been at least partially assigned, otherwise false.
|
ShowDeferralSchedule
Opens a page with deferral schedule for the purchase line.
procedure ShowDeferralSchedule()
Remarks
If the deferral schedule doesn't exist yet, a new one is created and commited before the page is opened.
RecalculateAmounts
procedure RecalculateAmounts(DocumentType: Enum "Purchase Document Type"; DocumentNo: Code[20]; ExcludeLineNo: Integer)
Parameters
Events
OnAfterInitDefaultDimensionSources
[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var PurchaseLine: Record "Purchase Line"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; FieldNo: Integer)
Parameters
OnAfterAddItem
[IntegrationEvent(False,False)]
local procedure OnAfterAddItem(var PurchaseLine: Record "Purchase Line"; LastPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeTransferExtendedTexts
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferExtendedTexts(var PurchaseLine: Record "Purchase Line"; var LastPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnAfterAssignFieldsForNo
[IntegrationEvent(False,False)]
local procedure OnAfterAssignFieldsForNo(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header")
Parameters
OnAfterAssignHeaderValues
[IntegrationEvent(False,False)]
local procedure OnAfterAssignHeaderValues(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header")
Parameters
OnAfterAssignStdTxtValues
[IntegrationEvent(False,False)]
local procedure OnAfterAssignStdTxtValues(var PurchLine: Record "Purchase Line"; StandardText: Record "Standard Text")
Parameters
OnAfterAssignGLAccountValues
[IntegrationEvent(False,False)]
local procedure OnAfterAssignGLAccountValues(var PurchLine: Record "Purchase Line"; GLAccount: Record "G/L Account"; PurchHeader: Record "Purchase Header"; xPurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary)
Parameters
OnAfterAssignItemValues
[IntegrationEvent(False,False)]
local procedure OnAfterAssignItemValues(var PurchLine: Record "Purchase Line"; Item: Record Item; CurrentFieldNo: Integer; PurchHeader: Record "Purchase Header")
Parameters
OnAfterAssignItemChargeValues
[IntegrationEvent(False,False)]
local procedure OnAfterAssignItemChargeValues(var PurchLine: Record "Purchase Line"; ItemCharge: Record "Item Charge"; PurchHeader: Record "Purchase Header")
Parameters
OnAfterAssignFixedAssetValues
[IntegrationEvent(False,False)]
local procedure OnAfterAssignFixedAssetValues(var PurchLine: Record "Purchase Line"; FixedAsset: Record "Fixed Asset"; PurchHeader: Record "Purchase Header")
Parameters
OnAfterAssignItemUOM
[IntegrationEvent(False,False)]
local procedure OnAfterAssignItemUOM(var PurchLine: Record "Purchase Line"; Item: Record Item; CurrentFieldNo: Integer)
Parameters
OnAfterBlanketOrderLookup
[IntegrationEvent(False,False)]
local procedure OnAfterBlanketOrderLookup(var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterDeleteItemChargeAssignment
[IntegrationEvent(False,False)]
local procedure OnAfterDeleteItemChargeAssignment(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnAfterDeleteChargeChargeAssgntProcedure
[IntegrationEvent(False,False)]
local procedure OnAfterDeleteChargeChargeAssgntProcedure(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnAfterGetDeferralAmount
[IntegrationEvent(False,False)]
local procedure OnAfterGetDeferralAmount(PurchaseLine: Record "Purchase Line"; var DeferralAmount: Decimal)
Parameters
OnAfterGetItem
[IntegrationEvent(False,False)]
local procedure OnAfterGetItem(var Item: Record Item; var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterGetItemTranslation
[IntegrationEvent(False,False)]
local procedure OnAfterGetItemTranslation(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; ItemTranslation: Record "Item Translation")
Parameters
OnAfterGetPurchHeader
[IntegrationEvent(False,False)]
local procedure OnAfterGetPurchHeader(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var Currency: Record Currency)
Parameters
OnAfterGetPurchSetup
[IntegrationEvent(False,False)]
local procedure OnAfterGetPurchSetup(var PurchaseLine: Record "Purchase Line"; var PurchSetup: Record "Purchases & Payables Setup")
Parameters
OnAfterGetFAPostingGroup
[IntegrationEvent(False,False)]
local procedure OnAfterGetFAPostingGroup(var PurchaseLine: Record "Purchase Line"; GLAccount: Record "G/L Account")
Parameters
OnAfterGetLineWithPrice
[IntegrationEvent(True,False)]
local procedure OnAfterGetLineWithPrice(var LineWithPrice: Interface "Line With Price")
Parameters
OnAfterGetReservationQty
[IntegrationEvent(True,False)]
local procedure OnAfterGetReservationQty(var PurchLine: Record "Purchase Line"; var QtyReserved: Decimal; var QtyReservedBase: Decimal; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal; var Result: Decimal)
Parameters
OnAfterFilterLinesWithItemToPlan
[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesWithItemToPlan(var PurchaseLine: Record "Purchase Line"; var Item: Record Item; DocumentType: Option)
Parameters
OnAfterFilterLinesForReservation
[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesForReservation(var PurchaseLine: Record "Purchase Line"; ReservationEntry: Record "Reservation Entry"; DocumentType: Enum "Purchase Document Type"; AvailabilityFilter: Text; Positive: Boolean)
Parameters
OnAfterFindDefaultFADeprBook
[IntegrationEvent(False,False)]
local procedure OnAfterFindDefaultFADeprBook(var PurchaseLine: Record "Purchase Line"; var Result: Boolean)
Parameters
OnAfterHasTypeToFillMandatoryFields
[IntegrationEvent(False,False)]
local procedure OnAfterHasTypeToFillMandatoryFields(var PurchaseLine: Record "Purchase Line"; var ReturnValue: Boolean)
Parameters
OnAfterInitType
[IntegrationEvent(False,False)]
local procedure OnAfterInitType(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header")
Parameters
OnAfterUpdateDirectUnitCost
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDirectUnitCost(var PurchLine: Record "Purchase Line"; xPurchLine: Record "Purchase Line"; CalledByFieldNo: Integer; CurrFieldNo: Integer)
Parameters
OnAfterUpdateLineDiscPct
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateLineDiscPct(var PurchaseLine: Record "Purchase Line")
Parameters
OnBeforeAssignFieldsForQtyPerUOM
[IntegrationEvent(False,False)]
local procedure OnBeforeAssignFieldsForQtyPerUOM(var PurchaseLine: Record "Purchase Line"; Item: Record Item; FieldNo: Integer; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeHandleDedicatedBin
[IntegrationEvent(False,False)]
local procedure OnBeforeHandleDedicatedBin(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; IssueWarning: Boolean)
Parameters
OnBeforeGetAbsMin
[IntegrationEvent(False,False)]
local procedure OnBeforeGetAbsMin(PurchaseLine: Record "Purchase Line"; QtyToHandle: Decimal; QtyHandled: Decimal; var Result: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeUpdateItemReference
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateItemReference(var Rec: Record "Purchase Line"; xRec: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateItemChargeAssgnt
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeUpdateDirectUnitCost
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateDirectUnitCost(var PurchLine: Record "Purchase Line"; xPurchLine: Record "Purchase Line"; CalledByFieldNo: Integer; CurrFieldNo: Integer; var Handled: Boolean)
Parameters
OnBeforeUpdateDirectUnitCostProcedure
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateDirectUnitCostProcedure(var PurchLine: Record "Purchase Line"; CalledByFieldNo: Integer; var Handled: Boolean)
Parameters
OnBeforeUpdateOrderDateFromPlannedReceiptDate
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateOrderDateFromPlannedReceiptDate(var PurchaseLine: Record "Purchase Line"; CustomCalendarChange: array[2] of Record "Customized Calendar Change"; var IsHandled: Boolean)
Parameters
OnBeforeUpdatePlannedReceiptDateFromOrderDate
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePlannedReceiptDateFromOrderDate(var PurchaseLine: Record "Purchase Line"; CustomCalendarChange: array[2] of Record "Customized Calendar Change"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateOrderDateFromRequestedReceiptDate
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateOrderDateFromRequestedReceiptDate(var PurchaseLine: Record "Purchase Line"; CustomCalendarChange: array[2] of Record "Customized Calendar Change"; var IsHandled: Boolean)
Parameters
OnBeforeVerifyReservedQty
[IntegrationEvent(False,False)]
local procedure OnBeforeVerifyReservedQty(var PurchLine: Record "Purchase Line"; xPurchLine: Record "Purchase Line"; CalledByFieldNo: Integer)
Parameters
OnAfterInitHeaderDefaults
[IntegrationEvent(False,False)]
local procedure OnAfterInitHeaderDefaults(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary)
Parameters
OnAfterInitOutstandingQty
[IntegrationEvent(False,False)]
local procedure OnAfterInitOutstandingQty(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnAfterInitOutstandingAmount
[IntegrationEvent(False,False)]
local procedure OnAfterInitOutstandingAmount(var PurchLine: Record "Purchase Line"; xPurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; Currency: Record Currency)
Parameters
OnAfterInitQtyToInvoice
[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToInvoice(var PurchLine: Record "Purchase Line"; CurrFieldNo: Integer)
Parameters
OnAfterInitQtyToShip
[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToShip(var PurchLine: Record "Purchase Line"; CurrFieldNo: Integer)
Parameters
OnAfterInitQtyToReceive
[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToReceive(var PurchLine: Record "Purchase Line"; CurrFieldNo: Integer)
Parameters
OnAfterInitQtyToReceive2
[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToReceive2(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnAfterInitQtyToReceive2Procedure
[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToReceive2Procedure(var PurchLine: Record "Purchase Line")
Parameters
OnAfterSetDefaultQuantity
[IntegrationEvent(False,False)]
local procedure OnAfterSetDefaultQuantity(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line")
Parameters
OnBeforeSetDefaultGLAccountQuantity
[IntegrationEvent(False,False)]
local procedure OnBeforeSetDefaultGLAccountQuantity(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnAfterCalcInvDiscToInvoice
[IntegrationEvent(False,False)]
local procedure OnAfterCalcInvDiscToInvoice(var PurchaseLine: Record "Purchase Line"; OldInvDiscAmtToInv: Decimal)
Parameters
OnAfterCalcLineAmount
[IntegrationEvent(False,False)]
local procedure OnAfterCalcLineAmount(var PurchaseLine: Record "Purchase Line"; var LineAmount: Decimal)
Parameters
OnAfterCalcVATAmountLines
[IntegrationEvent(False,False)]
local procedure OnAfterCalcVATAmountLines(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; QtyType: Option)
Parameters
OnAfterCalcQtyPerUnitOfMeasure
[IntegrationEvent(False,False)]
local procedure OnAfterCalcQtyPerUnitOfMeasure(var PurchaseLine: Record "Purchase Line"; Item: Record Item; CallingFieldNo: Integer)
Parameters
OnAfterCalcTotalAmtToAssign
[IntegrationEvent(False,False)]
local procedure OnAfterCalcTotalAmtToAssign(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; Currency: Record Currency; TotalQtyToAssign: Decimal; var TotalAmtToAssign: Decimal)
Parameters
OnAfterCheckReceiptRelation
[IntegrationEvent(False,False)]
local procedure OnAfterCheckReceiptRelation(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line")
Parameters
OnAfterCheckRetShptRelation
[IntegrationEvent(False,False)]
local procedure OnAfterCheckRetShptRelation(var PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line")
Parameters
OnAfterCreateDim
[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var PurchLine: Record "Purchase Line"; CallingFieldNo: Integer; xPurchLine: Record "Purchase Line")
Parameters
OnAfterGetDeferralPostDate
[IntegrationEvent(False,False)]
local procedure OnAfterGetDeferralPostDate(var PurchaseLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var DeferralPostDate: Date)
Parameters
OnAfterGetLineAmountToHandle
[IntegrationEvent(False,False)]
local procedure OnAfterGetLineAmountToHandle(PurchLine: Record "Purchase Line"; QtyToHandle: Decimal; var LineAmount: Decimal; var LineDiscAmount: Decimal)
Parameters
OnAfterGetQtyPerUOM
[IntegrationEvent(True,False)]
local procedure OnAfterGetQtyPerUOM(var QtyPerUOM: Decimal)
Parameters
| Name |
Type |
Description |
|
QtyPerUOM
|
Decimal |
|
OnAfterSalesTaxCalculate
[IntegrationEvent(False,False)]
local procedure OnAfterSalesTaxCalculate(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; Currency: Record Currency)
Parameters
OnAfterSalesTaxCalculateReverse
[IntegrationEvent(False,False)]
local procedure OnAfterSalesTaxCalculateReverse(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; Currency: Record Currency)
Parameters
OnAfterSelectMultipleItems
[IntegrationEvent(False,False)]
local procedure OnAfterSelectMultipleItems(var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterSetReservationFilters
[IntegrationEvent(False,False)]
local procedure OnAfterSetReservationFilters(var ReservEntry: Record "Reservation Entry"; PurchaseLine: Record "Purchase Line")
Parameters
OnAfterShowDimensions
[IntegrationEvent(False,False)]
local procedure OnAfterShowDimensions(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnAfterShowItemChargeAssgnt
[IntegrationEvent(False,False)]
local procedure OnAfterShowItemChargeAssgnt(var PurchaseLine: Record "Purchase Line"; var ItemChargeAssgnmtPurch: Record "Item Charge Assignment (Purch)"; var ItemChargeAssignmentPurchPage: Page "Item Charge Assignment (Purch)")
Parameters
OnAfterTestStatusOpen
[IntegrationEvent(False,False)]
local procedure OnAfterTestStatusOpen(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header")
Parameters
OnAfterUpdateDates
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDates(var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterUpdateAmounts
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateAmounts(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; CurrFieldNo: Integer)
Parameters
OnAfterUpdateAmountsDone
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateAmountsDone(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; CurrFieldNo: Integer)
Parameters
OnAfterUpdateBaseAmounts
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateBaseAmounts(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; CurrFieldNo: Integer; NewAmount: Decimal; NewAmountIncludingVAT: Decimal; NewVATBaseAmount: Decimal)
Parameters
OnAfterUpdateUnitCost
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateUnitCost(var PurchLine: Record "Purchase Line"; xPurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; Item: Record Item; StockkeepingUnit: Record "Stockkeeping Unit"; Currency: Record Currency; GLSetup: Record "General Ledger Setup")
Parameters
OnAfterUpdateICPartner
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateICPartner(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header")
Parameters
OnAfterUpdateJobPrices
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateJobPrices(var PurchLine: Record "Purchase Line"; JobJnlLine: Record "Job Journal Line"; PurchRcptLine: Record "Purch. Rcpt. Line")
Parameters
OnAfterUpdateWithWarehouseReceive
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateWithWarehouseReceive(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterUpdateVATAmounts
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateVATAmounts(var PurchaseLine: Record "Purchase Line"; TotalLineAmount: Decimal; TotalInvDiscAmount: Decimal; TotalAmount: Decimal; TotalAmountInclVAT: Decimal; TotalVATDifference: Decimal; TotalQuantityBase: Decimal)
Parameters
OnAfterUpdateVATOnLines
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateVATOnLines(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; QtyType: Option)
Parameters
OnAfterUpdateSalesCost
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateSalesCost(var PurchaseLine: Record "Purchase Line"; var SalesOrderLine: Record "Sales Line")
Parameters
OnAfterUpdateTotalAmounts
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateTotalAmounts(var PurchaseLine: Record "Purchase Line"; var PurchaseLine2: Record "Purchase Line"; var TotalAmount: Decimal; var TotalAmountInclVAT: Decimal; var TotalLineAmount: Decimal; var TotalInvDiscAmount: Decimal)
Parameters
OnBeforeAddItems
[IntegrationEvent(False,False)]
local procedure OnBeforeAddItems(var PurchaseLine: Record "Purchase Line"; SelectionFilter: Text; var IsHandled: Boolean)
Parameters
OnBeforeAssignHeaderValues
[IntegrationEvent(False,False)]
local procedure OnBeforeAssignHeaderValues(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header")
Parameters
OnBeforeCalcBaseQty
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcBaseQty(var PurchaseLine: Record "Purchase Line"; Qty: Decimal; FromFieldName: Text; ToFieldName: Text)
Parameters
OnBeforeCalcInvDiscToInvoiceProcedure
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcInvDiscToInvoiceProcedure(var PurchaseLine: Record "Purchase Line"; Currency: Record Currency; var IsHandled: Boolean)
Parameters
OnBeforeCalcIndirectCostPercent
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcIndirectCostPercent(var PurchaseLine: Record "Purchase Line"; UnitCostCurrency: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeCalcPrepaymentToDeduct
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcPrepaymentToDeduct(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeClearQtyIfBlank
[IntegrationEvent(False,False)]
local procedure OnBeforeClearQtyIfBlank(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeCheckAssosiatedSalesOrder
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckAssosiatedSalesOrder(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeCheckAssosiatedProdOrder
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckAssosiatedProdOrder(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeCheckPrepmtAmounts
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPrepmtAmounts(var PurchaseLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeCheckPrepmtAmtInvEmpty
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPrepmtAmtInvEmpty(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeCheckWarehouse
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckWarehouse(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var ShowDialogMessage: Boolean)
Parameters
OnBeforeCheckLocationOnWMS
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckLocationOnWMS(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeCheckNoAndQuantityForItemChargeAssgnt
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoAndQuantityForItemChargeAssgnt(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeCopyFromItem
[IntegrationEvent(False,False)]
local procedure OnBeforeCopyFromItem(var PurchaseLine: Record "Purchase Line"; var Item: Record Item; var IsHandled: Boolean)
Parameters
OnBeforeCopyFromGLAccount
[IntegrationEvent(False,False)]
local procedure OnBeforeCopyFromGLAccount(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnNotHandledCopyFromGLAccount
[IntegrationEvent(False,False)]
local procedure OnNotHandledCopyFromGLAccount(var PurchaseLine: Record "Purchase Line"; GLAccount: Record "G/L Account")
Parameters
OnBeforeCreateDim
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; CurrentFieldNo: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
OnBeforeBlanketOrderLookup
[IntegrationEvent(False,False)]
local procedure OnBeforeBlanketOrderLookup(var PurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeCalcInvDiscToInvoice
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcInvDiscToInvoice(var PurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer)
Parameters
OnBeforeCalcVATAmountLines
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcVATAmountLines(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; var IsHandled: Boolean; QtyType: Option)
Parameters
OnBeforeCheckDirectUnitCost
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDirectUnitCost(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeCreateTempJobJnlLine
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateTempJobJnlLine(var TempJobJournalLine: Record "Job Journal Line" temporary; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; GetPrices: Boolean; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeGetDefaultBin
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultBin(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeGetDeferralAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDeferralAmount(var PurchaseLine: Record "Purchase Line"; var DeferralAmount: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeGetItemTranslation
[IntegrationEvent(False,False)]
local procedure OnBeforeGetItemTranslation(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeGetFAPostingGroup
[IntegrationEvent(False,False)]
local procedure OnBeforeGetFAPostingGroup(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnAfterGetSKU
[IntegrationEvent(False,False)]
local procedure OnAfterGetSKU(PurchaseLine: Record "Purchase Line"; var Result: Boolean)
Parameters
OnBeforeEnsureDirectedPutawayandPickFalse
[IntegrationEvent(False,False)]
local procedure OnBeforeEnsureDirectedPutawayandPickFalse(var PurchaseLine: Record "Purchase Line"; Location: Record Location; var IsHandled: Boolean)
Parameters
OnBeforeFindOrCreateRecordByNo
[IntegrationEvent(False,False)]
local procedure OnBeforeFindOrCreateRecordByNo(var PurchLine: Record "Purchase Line"; xPurchLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeFormatType
[IntegrationEvent(False,False)]
local procedure OnBeforeFormatType(PurchaseLine: Record "Purchase Line"; var FormattedType: Text[20]; var IsHandled: Boolean)
Parameters
OnBeforeGetVPGInvRoundAcc
[IntegrationEvent(False,False)]
local procedure OnBeforeGetVPGInvRoundAcc(PurchHeader: Record "Purchase Header"; Vendor: Record Vendor; var AccountNo: Code[20]; var IsHandled: Boolean)
Parameters
OnBeforeGetReservationQty
[IntegrationEvent(False,False)]
local procedure OnBeforeGetReservationQty(var PurchaseLine: Record "Purchase Line"; var QtyReserved: Decimal; var QtyReservedBase: Decimal; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal; var Result: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeInitJobFields
[IntegrationEvent(False,False)]
local procedure OnBeforeInitJobFields(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var IsHandled: Boolean; CurrentFieldNo: Integer)
Parameters
OnBeforeInitDeferralCode
[IntegrationEvent(False,False)]
local procedure OnBeforeInitDeferralCode(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeInitQtyToInvoice
[IntegrationEvent(False,False)]
local procedure OnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeInitQtyToReceive
[IntegrationEvent(False,False)]
local procedure OnBeforeInitQtyToReceive(var PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeInitQtyToShip
[IntegrationEvent(False,False)]
local procedure OnBeforeInitQtyToShip(var PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeInitOutstandingAndQtyToShipReceive
[IntegrationEvent(False,False)]
local procedure OnBeforeInitOutstandingAndQtyToShipReceive(var PurchaseLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeJobSetCurrencyFactor
[IntegrationEvent(False,False)]
local procedure OnBeforeJobSetCurrencyFactor(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeJobTaskIsSet
[IntegrationEvent(False,False)]
local procedure OnBeforeJobTaskIsSet(PurchLine: Record "Purchase Line"; var IsJobLine: Boolean)
Parameters
OnBeforeLookupBinCode
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupBinCode(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeLookupBlanketOrderNo
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupBlanketOrderNo(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeLookupShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupShortcutDimCode(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20]; var IsHandled: Boolean)
Parameters
OnBeforeMaxQtyToInvoice
[IntegrationEvent(False,False)]
local procedure OnBeforeMaxQtyToInvoice(PurchaseLine: Record "Purchase Line"; var MaxQty: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeMaxQtyToInvoiceBase
[IntegrationEvent(False,False)]
local procedure OnBeforeMaxQtyToInvoiceBase(PurchaseLine: Record "Purchase Line"; var MaxQty: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeOpenItemTrackingLines
[IntegrationEvent(False,False)]
local procedure OnBeforeOpenItemTrackingLines(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeSelectMultipleItems
[IntegrationEvent(False,False)]
local procedure OnBeforeSelectMultipleItems(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeSetUnitOfMeasure
[IntegrationEvent(False,False)]
local procedure OnBeforeSetUnitOfMeasure(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeSetVendorItemNo
[IntegrationEvent(False,False)]
local procedure OnBeforeSetVendorItemNo(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeShowDeferrals
[IntegrationEvent(False,False)]
local procedure OnBeforeShowDeferrals(PurchaseLine: Record "Purchase Line"; var ReturnValue: Boolean; var IsHandled: Boolean)
Parameters
OnBeforeShowDimensions
[IntegrationEvent(False,False)]
local procedure OnBeforeShowDimensions(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeShowReservation
[IntegrationEvent(False,False)]
local procedure OnBeforeShowReservation(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeShowReservationEntries
[IntegrationEvent(False,False)]
local procedure OnBeforeShowReservationEntries(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeShowBinCodeCannotBeChangedError
[IntegrationEvent(False,False)]
local procedure OnBeforeShowBinCodeCannotBeChangedError(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnShowEarlyOrderDateMessageOnAfterCalcShowMessage
[IntegrationEvent(False,False)]
local procedure OnShowEarlyOrderDateMessageOnAfterCalcShowMessage(PurchaseLine: Record "Purchase Line"; var ShowMessage: Boolean)
Parameters
OnBeforeTestStatusOpen
[IntegrationEvent(False,False)]
local procedure OnBeforeTestStatusOpen(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeUpdateDates
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateDates(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateJobFields
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateJobFields(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateJobPrices
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateJobPrices(var PurchLine: Record "Purchase Line"; JobJnlLine: Record "Job Journal Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeUpdateLeadTimeFields
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateLeadTimeFields(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateLineDiscPct
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateLineDiscPct(var PurchaseLine: Record "Purchase Line"; Currency: Record Currency; var IsHandled: Boolean; CurrentFiledNo: Integer)
Parameters
OnBeforeUpdatePrepmtAmounts
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePrepmtAmounts(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; CurrentFieldNo: Integer)
Parameters
OnBeforeUpdatePrepmtSetupFields
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePrepmtSetupFields(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnUpdatePrepmtSetupFieldsOnBeforeGetVATPostingSetup
[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)
Parameters
OnUpdatePrepmtSetupFieldsOnBeforeClearVATPostingSetup
[IntegrationEvent(False,False)]
local procedure OnUpdatePrepmtSetupFieldsOnBeforeClearVATPostingSetup(var PurchaseLine: Record "Purchase Line"; var VATPostingSetup: Record "VAT Posting Setup"; var SkipClear: Boolean)
Parameters
OnBeforeUpdateAmounts
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAmounts(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeUpdateVATAmounts
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateVATAmounts(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateSalesCost
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSalesCost(var PurchaseLine: Record "Purchase Line"; var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateSpecialSalesOrderLineFromOnDelete
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSpecialSalesOrderLineFromOnDelete(var PurchaseLine: Record "Purchase Line"; var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean)
Parameters
OnUpdateSalesCostOnBeforeGetSalesOrderLine
[IntegrationEvent(False,False)]
local procedure OnUpdateSalesCostOnBeforeGetSalesOrderLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateSalesCostFromUnitCostLCY
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSalesCostFromUnitCostLCY(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateUnitCost
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUnitCost(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeUpdateUnitPriceLCYFromItem
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUnitPriceLCYFromItem(var PurchaseLine: Record "Purchase Line"; Item: Record Item; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeUpdateUOMQtyPerStockQty
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUOMQtyPerStockQty(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var Item: Record Item; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeUpdateWithWarehouseReceive
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateWithWarehouseReceive(var PurchaseLine: Record "Purchase Line"; var InHandled: Boolean)
Parameters
OnBeforeValidateBlanketOrderLineNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBlanketOrderLineNo(var PurchaseLine: Record "Purchase Line"; var InHandled: Boolean)
Parameters
OnBeforeValidateDescription
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDescription(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var InHandled: Boolean)
Parameters
OnBeforeValidateGenProdPostingGroup
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateGenProdPostingGroup(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var InHandled: Boolean)
Parameters
OnBeforeValidateJobPlanningLineNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobPlanningLineNo(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeValidateOrderDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateOrderDate(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; TrackingBlocked: Boolean; var IsHandled: Boolean)
Parameters
OnBeforeValidateVATProdPostingGroupFromGLAcc
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVATProdPostingGroupFromGLAcc(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateLeadTimeCalculation
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateLeadTimeCalculation(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var InHandled: Boolean)
Parameters
OnBeforeValidatePlannedReceiptDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePlannedReceiptDate(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; TrackingBlocked: Boolean; var InHandled: Boolean)
Parameters
OnBeforeValidateItemDescription
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateItemDescription(var PurchaseLine: Record "Purchase Line"; var InHandled: Boolean)
Parameters
OnBeforeValidateLineDiscountAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateLineDiscountAmount(var PurchaseLine: Record "Purchase Line"; var InHandled: Boolean)
Parameters
OnBeforeValidatePlannedReceiptDateWithCustomCalendarChange
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePlannedReceiptDateWithCustomCalendarChange(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var InHandled: Boolean)
Parameters
OnBeforeValidatePrepmtLineAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePrepmtLineAmount(var PurchaseLine: Record "Purchase Line"; PrePaymentLineAmountEntered: Boolean; var IsHandled: Boolean)
Parameters
OnBeforeValidatePromisedReceiptDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePromisedReceiptDate(var PurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeValidateLineDiscountPctForNotItemType
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateLineDiscountPctForNotItemType(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateQuantityInvIsBalanced
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityInvIsBalanced(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateQuantityReceiveIsBalanced
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityReceiveIsBalanced(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateQuantityReturnIsBalanced
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityReturnIsBalanced(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateReturnReasonCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateReturnReasonCode(var PurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeValidateType
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateType(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeValidateQtytoInvoiceBase
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQtytoInvoiceBase(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var InHandled: Boolean)
Parameters
OnBeforeValidateQtytoReceiveBase
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQtytoReceiveBase(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var InHandled: Boolean)
Parameters
OnBeforeValidateReturnQtytoShipBase
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateReturnQtytoShipBase(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var InHandled: Boolean)
Parameters
OnBeforeCheckLineAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckLineAmount(var PurchaseLine: Record "Purchase Line"; MaxLineAmount: Decimal; var IsHandled: Boolean; CalledByFieldNo: Integer)
Parameters
OnBeforeCheckLineTypeOnIndirectCostPercentUpdate
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckLineTypeOnIndirectCostPercentUpdate(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeVerifyLineTypeForJob
[IntegrationEvent(False,False)]
local procedure OnBeforeVerifyLineTypeForJob(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnAfterCreateTempJobJnlLine
[IntegrationEvent(False,False)]
local procedure OnAfterCreateTempJobJnlLine(var JobJournalLine: Record "Job Journal Line"; PurchLine: Record "Purchase Line"; xPurchLine: Record "Purchase Line"; GetPrices: Boolean; CurrFieldNo: Integer)
Parameters
OnAfterValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
OnAfterValidateLocationCode
[IntegrationEvent(False,False)]
local procedure OnAfterValidateLocationCode(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20]; var IsHandled: Boolean)
Parameters
OnCalcVATAmountLinesOnAfterCalcLineTotals
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnAfterCalcLineTotals(var VATAmountLine: Record "VAT Amount Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; Currency: Record Currency; QtyType: Option; var TotalVATAmount: Decimal)
Parameters
OnCalcVATAmountLinesAfterVATAmountLineInsertNewLine
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesAfterVATAmountLineInsertNewLine(var PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line")
Parameters
OnCalcVATAmountLinesOnAfterSetFilters
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header")
Parameters
OnCalcVATAmountLinesOnBeforeVATAmountLineSumLine
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeVATAmountLineSumLine(PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; QtyType: Option; var PurchaseLine2: Record "Purchase Line")
Parameters
OnCalcVATAmountLinesOnBeforeProcessPurchLine
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeProcessPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var VATAmountLine: Record "VAT Amount Line"; QtyType: Option)
Parameters
OnCalcVATAmountLinesOnQtyTypeInvoicingOnBeforeCalcAmtToHandle
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnQtyTypeInvoicingOnBeforeCalcAmtToHandle(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var QtyToHandle: Decimal; var VATAmountLine: Record "VAT Amount Line")
Parameters
OnCheckLocationRequireReceiveOnBeforePurchaseLineVerifyChange
[IntegrationEvent(False,False)]
local procedure OnCheckLocationRequireReceiveOnBeforePurchaseLineVerifyChange(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnCheckWarehouseOnBeforeShowDialog
[IntegrationEvent(False,False)]
local procedure OnCheckWarehouseOnBeforeShowDialog(var PurchLine: Record "Purchase Line"; Location2: Record Location; var ShowDialog: Option; var DialogText: Text[50])
Parameters
OnCopyFromItemOnAfterCheck
[IntegrationEvent(False,False)]
local procedure OnCopyFromItemOnAfterCheck(var PurchaseLine: Record "Purchase Line"; Item: Record Item; CallingFieldNo: Integer)
Parameters
OnCreateDimOnBeforeUpdateGlobalDimFromDimSetID
[IntegrationEvent(False,False)]
local procedure OnCreateDimOnBeforeUpdateGlobalDimFromDimSetID(var PurchaseLine: Record "Purchase Line")
Parameters
OnCreateTempJobJnlLineOnBeforeTempJobJnlLineValidateNo
[IntegrationEvent(False,False)]
local procedure OnCreateTempJobJnlLineOnBeforeTempJobJnlLineValidateNo(var TempJobJnlLine: Record "Job Journal Line" temporary; PurchaseLine: Record "Purchase Line")
Parameters
OnDeleteOnAfterSetPurchLineFilters
[IntegrationEvent(False,False)]
local procedure OnDeleteOnAfterSetPurchLineFilters(var PurchaseLine: Record "Purchase Line")
Parameters
OnDeleteOnBeforePurchLineDeleteAll
[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line")
Parameters
OnDeleteOnBeforeTestStatusOpen
[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeTestStatusOpen(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnGetFAPostingGroupOnBeforeLocalGLAccGet
[IntegrationEvent(False,False)]
local procedure OnGetFAPostingGroupOnBeforeLocalGLAccGet(PurchaseLine: Record "Purchase Line"; FAPostingGroup: Record "FA Posting Group"; var GLAccount: Record "G/L Account"; var IsHandled: Boolean)
Parameters
OnBeforeSendLineInvoiceDiscountResetNotification
[IntegrationEvent(False,False)]
local procedure OnBeforeSendLineInvoiceDiscountResetNotification(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnFilterLinesForReservationOnBeforeSetFilterVariantCode
[IntegrationEvent(False,False)]
local procedure OnFilterLinesForReservationOnBeforeSetFilterVariantCode(var PurchaseLine: Record "Purchase Line"; var ReservationEntry: Record "Reservation Entry"; var Positive: Boolean; var IsHandled: Boolean)
Parameters
OnInitQtyToReceive2OnBeforeCalcInvDiscToInvoice
[IntegrationEvent(False,False)]
local procedure OnInitQtyToReceive2OnBeforeCalcInvDiscToInvoice(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line")
Parameters
OnInitOutstandingOnBeforeInitOutstandingAmount
[IntegrationEvent(False,False)]
local procedure OnInitOutstandingOnBeforeInitOutstandingAmount(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnShowItemChargeAssgntOnBeforeCalcItemCharge
[IntegrationEvent(False,False)]
local procedure OnShowItemChargeAssgntOnBeforeCalcItemCharge(var PurchaseLine: Record "Purchase Line"; var ItemChargeAssgntLineAmt: Decimal; Currency: Record Currency; var IsHandled: Boolean; var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)")
Parameters
OnUpdateDirectUnitCostOnBeforeFindPrice
[IntegrationEvent(False,False)]
local procedure OnUpdateDirectUnitCostOnBeforeFindPrice(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CalledByFieldNo: Integer; CallingFieldNo: Integer; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line")
Parameters
OnUpdateDeferralAmountsOnBeforeSetDeferralPostDate
[IntegrationEvent(False,False)]
local procedure OnUpdateDeferralAmountsOnBeforeSetDeferralPostDate(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var DeferralPostDate: Date)
Parameters
OnUpdateUnitCostOnBeforeUpdateUnitCostLCY
[IntegrationEvent(False,False)]
local procedure OnUpdateUnitCostOnBeforeUpdateUnitCostLCY(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; Item: Record Item; SKU: Record "Stockkeeping Unit"; Currency: Record Currency; GLSetup: Record "General Ledger Setup")
Parameters
OnUpdateVATOnLinesOnAfterSetFilters
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header")
Parameters
OnUpdateVATOnLinesOnAfterCalculateAmounts
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterCalculateAmounts(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header")
Parameters
OnUpdateVATOnLinesOnAfterCalculateNewAmount
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterCalculateNewAmount(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; VATAmountLine: Record "VAT Amount Line"; VATAmountLineReminder: Record "VAT Amount Line"; var NewAmountIncludingVAT: Decimal; VATAmount: Decimal; var NewAmount: Decimal; var NewVATBaseAmount: Decimal; var CurrentPurchaseLine: Record "Purchase Line")
Parameters
OnUpdateVATOnLinesOnAfterCalculateVATDifference
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterCalculateVATDifference(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; VATAmountLine: Record "VAT Amount Line"; var TempVATAmountLineReminder: Record "VAT Amount Line" temporary; QtyType: Option; var CurrentPurchaseLine: Record "Purchase Line"; LineAmountToInvoice: Decimal; InvDiscAmount: Decimal)
Parameters
OnUpdateVATOnLinesOnBeforeCalculateAmounts
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforeCalculateAmounts(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header")
Parameters
OnUpdateVATOnLinesOnBeforeInitOutstanding
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforeInitOutstanding(var PurchaseLine: Record "Purchase Line"; QtyType: Option)
Parameters
OnUpdateVATOnLinesOnBeforeTempVATAmountLineRemainderModify
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforeTempVATAmountLineRemainderModify(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line"; VATAmount: Decimal; NewVATBaseAmount: Decimal; var CurrentPurchaseLine: Record "Purchase Line")
Parameters
OnUpdateVATOnLinesOnBeforeCalcNotFullVATAmount
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforeCalcNotFullVATAmount(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var Currency: Record Currency; var VATAmountLine: Record "VAT Amount Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line"; NewVATBaseAmount: Decimal; VATAmount: Decimal; var IsHandled: Boolean)
Parameters
OnValidateJobNoOnBeforeGetJob
[IntegrationEvent(False,False)]
local procedure OnValidateJobNoOnBeforeGetJob(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateBinCodeOnBeforeTestFields
[IntegrationEvent(False,False)]
local procedure OnValidateBinCodeOnBeforeTestFields(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateDescriptionOnAfterCalcShouldErrorForFindDescription
[IntegrationEvent(False,False)]
local procedure OnValidateDescriptionOnAfterCalcShouldErrorForFindDescription(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var ShouldErrorForFindDescription: Boolean)
Parameters
OnValidateExpectedReceiptDateOnBeforeCheckDateConflict
[IntegrationEvent(False,False)]
local procedure OnValidateExpectedReceiptDateOnBeforeCheckDateConflict(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateLineAmountOnAfterCalcMaxLineAmount
[IntegrationEvent(False,False)]
local procedure OnValidateLineAmountOnAfterCalcMaxLineAmount(var PurchaseLine: Record "Purchase Line"; var MaxLineAmount: Decimal; var Currency: Record Currency)
Parameters
OnValidateLineDiscountPercentOnAfterTestStatusOpen
[IntegrationEvent(False,False)]
local procedure OnValidateLineDiscountPercentOnAfterTestStatusOpen(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnValidateLineDiscountPercentOnBeforeUpdateAmounts
[IntegrationEvent(False,False)]
local procedure OnValidateLineDiscountPercentOnBeforeUpdateAmounts(var PurchaseLine: Record "Purchase Line")
Parameters
OnValidateLocationCodeOnBeforeDropShipmentError
[IntegrationEvent(False,False)]
local procedure OnValidateLocationCodeOnBeforeDropShipmentError(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line")
Parameters
OnValidateLocationCodeOnBeforeSpecialOrderError
[IntegrationEvent(False,False)]
local procedure OnValidateLocationCodeOnBeforeSpecialOrderError(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; CurrFieldNo: Integer; xPurchaseLine: Record "Purchase Line")
Parameters
OnValidateTypeOnAfterCheckItem
[IntegrationEvent(False,False)]
local procedure OnValidateTypeOnAfterCheckItem(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnValidateTypeOnBeforeInitRec
[IntegrationEvent(False,False)]
local procedure OnValidateTypeOnBeforeInitRec(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer)
Parameters
OnValidateTypeOnCopyFromTempPurchLine
[IntegrationEvent(False,False)]
local procedure OnValidateTypeOnCopyFromTempPurchLine(var PurchLine: Record "Purchase Line"; TempPurchaseLine: Record "Purchase Line" temporary; xPurchaseLine: Record "Purchase Line")
Parameters
OnValidateNoOnCopyFromTempPurchLine
[IntegrationEvent(False,False)]
local procedure OnValidateNoOnCopyFromTempPurchLine(var PurchLine: Record "Purchase Line"; TempPurchaseLine: Record "Purchase Line" temporary; xPurchLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateNoOnAfterAssignQtyFromXRec
[IntegrationEvent(False,False)]
local procedure OnValidateNoOnAfterAssignQtyFromXRec(var PurchaseLine: Record "Purchase Line"; TempPurchaseLine: Record "Purchase Line" temporary)
Parameters
OnValidateNoOnAfterChecks
[IntegrationEvent(False,False)]
local procedure OnValidateNoOnAfterChecks(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer)
Parameters
OnValidateNoOnAfterVerifyChange
[IntegrationEvent(False,False)]
local procedure OnValidateNoOnAfterVerifyChange(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnValidateNoOnBeforeInitRec
[IntegrationEvent(False,False)]
local procedure OnValidateNoOnBeforeInitRec(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer)
Parameters
OnValidatePurchasingCodeOnAfterAssignFields
[IntegrationEvent(False,False)]
local procedure OnValidatePurchasingCodeOnAfterAssignFields(var PurchaseLine: Record "Purchase Line"; Purchasing: Record Purchasing)
Parameters
OnValidateQtyToReceiveOnAfterCheck
[IntegrationEvent(False,False)]
local procedure OnValidateQtyToReceiveOnAfterCheck(var PurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnValidateQtyToReceiveOnAfterInitQty
[IntegrationEvent(False,False)]
local procedure OnValidateQtyToReceiveOnAfterInitQty(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnValidateQtyToReceiveOnBeforeInitQtyToReceive
[IntegrationEvent(False,False)]
local procedure OnValidateQtyToReceiveOnBeforeInitQtyToReceive(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnValidateQtyToReceiveOnAfterCalcQtyToReceiveBase
[IntegrationEvent(False,False)]
local procedure OnValidateQtyToReceiveOnAfterCalcQtyToReceiveBase(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnValidateQtyToReceiveOnAfterCalcShouldCheckLocationRequireReceive
[IntegrationEvent(False,False)]
local procedure OnValidateQtyToReceiveOnAfterCalcShouldCheckLocationRequireReceive(var PurchaseLine: Record "Purchase Line"; var ShouldCheckLocationRequireReceive: Boolean)
Parameters
OnValidateQuantityOnBeforeDropShptCheck
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforeDropShptCheck(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnValidateQuantityOnBeforeInitQtyToReceive
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforeInitQtyToReceive(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnValidateQuantityOnBeforePurchaseLineVerifyChange
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforePurchaseLineVerifyChange(var PurchaseLine: Record "Purchase Line"; StatusCheckSuspended: Boolean; var IsHandled: Boolean; var xPurchaseLine: Record "Purchase Line")
Parameters
OnValidateReturnQtyToShipOnAfterCheck
[IntegrationEvent(False,False)]
local procedure OnValidateReturnQtyToShipOnAfterCheck(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnValidateReturnQtyToShipOnAfterInitQty
[IntegrationEvent(False,False)]
local procedure OnValidateReturnQtyToShipOnAfterInitQty(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnValidateUnitCostLCYOnAfterUpdateUnitCostCurrency
[IntegrationEvent(False,False)]
local procedure OnValidateUnitCostLCYOnAfterUpdateUnitCostCurrency(var PurchaseLine: Record "Purchase Line"; var UnitCostCurrency: Decimal)
Parameters
OnValidateUnitOfMeasureCodeOnBeforeDropShipmentError
[IntegrationEvent(False,False)]
local procedure OnValidateUnitOfMeasureCodeOnBeforeDropShipmentError(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnValidateUnitOfMeasureCodeOnAfterCalcShouldUpdateItemReference
[IntegrationEvent(False,False)]
local procedure OnValidateUnitOfMeasureCodeOnAfterCalcShouldUpdateItemReference(var PurchaseLine: Record "Purchase Line"; var ShouldUpdateItemReference: Boolean; var ShouldUpdateNonSubcontractingDocument: Boolean)
Parameters
OnValidateVariantCodeOnAfterValidationChecks
[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnAfterValidationChecks(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer)
Parameters
OnValidateVariantCodeOnBeforeDropShipmentError
[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnBeforeDropShipmentError(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateVATProdPostingGroupOnAfterVATPostingSetupGet
[IntegrationEvent(False,False)]
local procedure OnValidateVATProdPostingGroupOnAfterVATPostingSetupGet(var VATPostingSetup: Record "VAT Posting Setup")
Parameters
OnValidateVATProdPostingGroupOnAfterCalcShouldUpdateUnitCost
[IntegrationEvent(False,False)]
local procedure OnValidateVATProdPostingGroupOnAfterCalcShouldUpdateUnitCost(var PurchaseLine: Record "Purchase Line"; VATPostingSetup: Record "VAT Posting Setup"; var ShouldUpdateUnitCost: Boolean)
Parameters
OnValidateVATProdPostingGroupOnBeforeCheckVATCalcType
[IntegrationEvent(False,False)]
local procedure OnValidateVATProdPostingGroupOnBeforeCheckVATCalcType(var PurchaseLine: Record "Purchase Line"; var VATPostingSetup: Record "VAT Posting Setup"; var IsHandled: Boolean; CurrentFieldNo: Integer)
Parameters
OnValidateOverReceiptQuantity
[IntegrationEvent(False,False)]
local procedure OnValidateOverReceiptQuantity(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CalledByFieldNo: Integer; var Handled: Boolean)
Parameters
OnAfterAssignResourceValues
[IntegrationEvent(False,False)]
local procedure OnAfterAssignResourceValues(var PurchaseLine: Record "Purchase Line"; Resource: Record Resource)
Parameters
OnAfterAssignResourceUOM
[IntegrationEvent(False,False)]
local procedure OnAfterAssignResourceUOM(var PurchaseLine: Record "Purchase Line"; Resource: Record Resource; CurrentFieldNo: Integer)
Parameters
OnAfterUpdateVendorItemNoFromItemReference
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateVendorItemNoFromItemReference(var Rec: Record "Purchase Line"; xRec: Record "Purchase Line")
Parameters
OnValidateBlanketOrderNoOnAfterCheck
[IntegrationEvent(False,False)]
local procedure OnValidateBlanketOrderNoOnAfterCheck(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeCheckBuyFromVendorNo
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckBuyFromVendorNo(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
OnAfterInternalLeadTimeDays
[IntegrationEvent(False,False)]
local procedure OnAfterInternalLeadTimeDays(PurchaseLine: Record "Purchase Line"; PurchDate: Date; var TotalDays: DateFormula)
Parameters
OnBeforeGetPurchHeader
Raised before getting the purchase header for the purchase line.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchHeader(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var Currency: Record Currency; var HasPurchHeader: Boolean)
Parameters
OnBeforeUpdateLineAmount
[IntegrationEvent(True,False)]
local procedure OnBeforeUpdateLineAmount(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; Currency: Record Currency; var LineAmountChanged: Boolean; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobTaskNo
[IntegrationEvent(True,False)]
local procedure OnBeforeValidateJobTaskNo(xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; CurrentFieldNo: Integer; var TempJobJournalLine: Record "Job Journal Line" temporary)
Parameters
OnBeforeValidateNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateNo(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeCheckLocationRequireReceive
[IntegrationEvent(True,False)]
local procedure OnBeforeCheckLocationRequireReceive(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeCheckLineNotShippedOrReceived
[IntegrationEvent(True,False)]
local procedure OnBeforeCheckLineNotShippedOrReceived(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnAfterIsCreditDocType
[IntegrationEvent(False,False)]
local procedure OnAfterIsCreditDocType(PurchaseLine: Record "Purchase Line"; var Result: Boolean)
Parameters
OnAfterIsInvoiceDocType
[IntegrationEvent(False,False)]
local procedure OnAfterIsInvoiceDocType(var PurchaseLine: Record "Purchase Line"; var Result: Boolean)
Parameters
OnValidateQuantityOnBeforeCheckRcptRetShptRelation
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforeCheckRcptRetShptRelation(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnValidateQuantityOnAfterCalcBaseQty
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnAfterCalcBaseQty(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnValidateQuantityOnAfterCalcDoInitOutstanding
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnAfterCalcDoInitOutstanding(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var DoInitOutstanding: Boolean)
Parameters
OnValidateQuantityOnAfterPlanPriceCalcByField
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnAfterPlanPriceCalcByField(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeValidateQtyToInvoice
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateQuantityBase
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityBase(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnValidateVariantCodeOnBeforeUpdateItemReference
[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnBeforeUpdateItemReference(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateVariantCodeOnAfterUpdateItemReference
[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnAfterUpdateItemReference(var PurchaseLine: Record "Purchase Line"; CallingFeildNo: Integer)
Parameters
OnBeforeValidateRequestedReceiptDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateRequestedReceiptDate(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var CustomCalendarChange: array[2] of Record "Customized Calendar Change"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeCheckApplToItemLedgEntry
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckApplToItemLedgEntry(var PurchaseLine: Record "Purchase Line"; ItemLedgEntry: Record "Item Ledger Entry"; var Result: Code[10]; var IsHandled: Boolean)
Parameters
OnBeforeCheckReceiptRelation
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckReceiptRelation(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeCheckRetShptRelation
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckRetShptRelation(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeGetOverheadRateFCY
[IntegrationEvent(False,False)]
local procedure OnBeforeGetOverheadRateFCY(var PurchaseLine: Record "Purchase Line"; var QtyPerUOM: Decimal; var Result: Decimal; var IsHandled: Boolean)
Parameters
OnDeleteOnBeforePurchaseLineDelete
[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforePurchaseLineDelete(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnDeleteOnBeforeCheckQtyNotInvoiced
[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeCheckQtyNotInvoiced(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnCopyFromItemOnBeforeAssignUnitPriceLCY
[IntegrationEvent(False,False)]
local procedure OnCopyFromItemOnBeforeAssignUnitPriceLCY(var PurchaseLine: Record "Purchase Line"; var GLSetup: Record "General Ledger Setup"; var VATPostingSetup: Record "VAT Posting Setup"; var IsHandled: Boolean)
Parameters
OnSelectItemEntryOnBeforeSetRangeLocationCode
[IntegrationEvent(False,False)]
local procedure OnSelectItemEntryOnBeforeSetRangeLocationCode(var PurchaseLine: Record "Purchase Line"; var ItemLedgEntry: Record "Item Ledger Entry")
Parameters
OnSelectItemEntryOnAfterItemLedgEntrySetFilters
[IntegrationEvent(False,False)]
local procedure OnSelectItemEntryOnAfterItemLedgEntrySetFilters(var PurchaseLine: Record "Purchase Line"; var ItemLedgEntry: Record "Item Ledger Entry")
Parameters
OnUpdateDirectUnitCostByFieldOnBeforeUpdateItemReference
[IntegrationEvent(False,False)]
local procedure OnUpdateDirectUnitCostByFieldOnBeforeUpdateItemReference(var PurchaseLine: Record "Purchase Line"; var CalledByFieldNo: Integer)
Parameters
OnUpdateVATAmountsOnAfterCalcNormalVATAmountsForPricesIncludingVAT
[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsOnAfterCalcNormalVATAmountsForPricesIncludingVAT(var PurchaseLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; Currency: Record Currency; TotalAmount: Decimal; TotalAmountInclVAT: Decimal; var PurchaseLine2: Record "Purchase Line")
Parameters
OnUpdateVATAmountsOnAfterCalcNormalVATAmountsForPricesExcludingVAT
[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsOnAfterCalcNormalVATAmountsForPricesExcludingVAT(var PurchaseLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; Currency: Record Currency; TotalAmount: Decimal; TotalAmountInclVAT: Decimal; var PurchaseLine2: Record "Purchase Line")
Parameters
OnUpdateVATAmountsOnAfterSetFilters
[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; var PurchaseLine2: Record "Purchase Line")
Parameters
OnUpdateVATAmountsOnBeforePurchLineModify
[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsOnBeforePurchLineModify(var PurchaseLine: Record "Purchase Line"; var PurchLine2: Record "Purchase Line")
Parameters
OnUpdateVATOnLinesOnBeforeProcessPurchLines
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforeProcessPurchLines(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var VATAmountLine: Record "VAT Amount Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var LineWasModified: Boolean; var IsHandled: Boolean; QtyType: Option)
Parameters
OnUpdateVATOnLinesOnBeforeProcessPurchLine
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforeProcessPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var VATAmountLine: Record "VAT Amount Line"; QtyType: Option)
Parameters
OnBeforeInitType
[IntegrationEvent(False,False)]
local procedure OnBeforeInitType(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
OnBeforeOverReceiptProcessing
[IntegrationEvent(False,False)]
local procedure OnBeforeOverReceiptProcessing(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer; var Result: Boolean; var IsHandled: Boolean)
Parameters
OnBeforeTestFieldQuantity
[IntegrationEvent(False,False)]
local procedure OnBeforeTestFieldQuantity(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeValidateVATProdPostingGroup
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVATProdPostingGroup(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateLineDiscountPercent
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateLineDiscountPercent(var PurchaseLine: Record "Purchase Line"; DropInvoiceDiscountAmount: Boolean; var IsHandled: Boolean)
Parameters
OnValidateLocationCodeOnAfterTestStatusOpen
[IntegrationEvent(False,False)]
local procedure OnValidateLocationCodeOnAfterTestStatusOpen(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var ShouldExit: Boolean)
Parameters
OnBeforeUpdateDimensionsFromJobTask
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateDimensionsFromJobTask(var PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnInitHeaderDefaultsOnBeforeSetVATBusPostingGroup
[IntegrationEvent(False,False)]
local procedure OnInitHeaderDefaultsOnBeforeSetVATBusPostingGroup(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateNoOnBeforeAssignQtyFromXRec
[IntegrationEvent(False,False)]
local procedure OnValidateNoOnBeforeAssignQtyFromXRec(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnAddItemOnBeforeInsert
[IntegrationEvent(False,False)]
local procedure OnAddItemOnBeforeInsert(var PurchaseLine: Record "Purchase Line")
Parameters
OnValidateVATProdPostingGroupOnAfterTestStatusOpen
[IntegrationEvent(False,False)]
local procedure OnValidateVATProdPostingGroupOnAfterTestStatusOpen(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var xPurchaseLine: Record "Purchase Line")
Parameters
OnAfterSetReservationEntry
[IntegrationEvent(False,False)]
local procedure OnAfterSetReservationEntry(var ReservEntry: Record "Reservation Entry"; var PurchaseLine: Record "Purchase Line")
Parameters
OnBeforeSetDefaultQuantity
[IntegrationEvent(False,False)]
local procedure OnBeforeSetDefaultQuantity(var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateICPartner
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateICPartner(var PurchLine: Record "Purchase Line"; GLAcc: Record "G/L Account"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
OnBeforeValidatePurchasingCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePurchasingCode(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateLineAmountBeforeValidateLineDiscountAmount
[IntegrationEvent(False,False)]
local procedure OnValidateLineAmountBeforeValidateLineDiscountAmount(var PurchLine: Record "Purchase Line"; Currency: Record Currency; var IsHandled: Boolean; CurrFieldNo: Integer)
Parameters
OnBeforeInitOutstanding
[IntegrationEvent(False,False)]
local procedure OnBeforeInitOutstanding(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateQuantity
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantity(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnAfterValidateOrderDate
[IntegrationEvent(False,False)]
local procedure OnAfterValidateOrderDate(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnValidateAmountOnAfterCalculateNormalVAT
[IntegrationEvent(False,False)]
local procedure OnValidateAmountOnAfterCalculateNormalVAT(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var Currency: Record Currency)
Parameters
OnValidateAmountIncludingVATOnAfterCalculateNormalVAT
[IntegrationEvent(False,False)]
local procedure OnValidateAmountIncludingVATOnAfterCalculateNormalVAT(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var Currency: Record Currency)
Parameters
OnValidateQuantityOnBeforeCheckWithQuantityReceived
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforeCheckWithQuantityReceived(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateQuantityOnAfterShouldCheckWithReturnQtyShipped
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnAfterShouldCheckWithReturnQtyShipped(var PurchaseLine: Record "Purchase Line"; var ShouldCalcWithReturnQtyShipped: Boolean)
Parameters
OnValidateQuantityOnBeforeCheckWMS
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforeCheckWMS(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateQuantityOnAfterInitQty
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnAfterInitQty(var PurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer)
Parameters
OnUpdateVATAmountsOnBeforeValidateLineDiscountPercent
[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsOnBeforeValidateLineDiscountPercent(PurchaseLine: Record "Purchase Line"; var PurchLine2: Record "Purchase Line")
Parameters
OnValidateUnitOfMeasureCodeOnBeforeValidateQuantity
[IntegrationEvent(False,False)]
local procedure OnValidateUnitOfMeasureCodeOnBeforeValidateQuantity(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; Item: Record Item)
Parameters
OnDeleteOnAfterCalcShouldModifySalesOrderLine
[IntegrationEvent(False,False)]
local procedure OnDeleteOnAfterCalcShouldModifySalesOrderLine(var PurchaseLine: Record "Purchase Line"; var ShouldModifySalesOrderLine: Boolean)
Parameters
OnBeforeGetLineAmountToHandle
[IntegrationEvent(False,False)]
local procedure OnBeforeGetLineAmountToHandle(PurchaseLine: Record "Purchase Line"; var Currency: Record Currency; QtyToHandle: Decimal; var LineAmount: Decimal; var LineDiscAmount: Decimal; var IsHandled: Boolean)
Parameters
OnUpdateUnitCostOnAfterCalcDiscountAmountPerQty
[IntegrationEvent(False,False)]
local procedure OnUpdateUnitCostOnAfterCalcDiscountAmountPerQty(var PurchaseLine: Record "Purchase Line"; var DiscountAmountPerQty: Decimal)
Parameters
OnDeleteOnAfterPurchLineDeleteAll
[IntegrationEvent(False,False)]
local procedure OnDeleteOnAfterPurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; var PurchLine2: Record "Purchase Line")
Parameters
OnUpdateUnitCostOnAfterCalcStandardUnitCostLCY
[IntegrationEvent(False,False)]
local procedure OnUpdateUnitCostOnAfterCalcStandardUnitCostLCY(var PurchaseLine: Record "Purchase Line")
Parameters
OnValidateQtyToReceiveOnAfterCheckQty
[IntegrationEvent(False,False)]
local procedure OnValidateQtyToReceiveOnAfterCheckQty(var PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer)
Parameters
OnValidateVATProdPostingGroupOnBeforeGetVATPostingSetup
[IntegrationEvent(False,False)]
local procedure OnValidateVATProdPostingGroupOnBeforeGetVATPostingSetup(var PurchaseLine: Record "Purchase Line"; var VATPostingSetup: Record "VAT Posting Setup"; var IsHandled: Boolean; var xPurchaseLine: Record "Purchase Line")
Parameters
OnValidateQuantityOnBeforeResetAmounts
[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnBeforeResetAmounts(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
OnBeforeValidateJobLineDiscAmountLCY
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobLineDiscAmountLCY(var PurchaseLine: Record "Purchase Line"; var TempJobJnlLine: Record "Job Journal Line" temporary; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobLineType
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobLineType(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobUnitPrice
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobUnitPrice(var PurchaseLine: Record "Purchase Line"; var TempJobJnlLine: Record "Job Journal Line" temporary; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobNo(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobLineDiscountPercent
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobLineDiscountPercent(var PurchaseLine: Record "Purchase Line"; var TempJobJnlLine: Record "Job Journal Line" temporary; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobLineDiscountAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobLineDiscountAmount(var PurchaseLine: Record "Purchase Line"; var TempJobJnlLine: Record "Job Journal Line" temporary; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobUnitPriceLCY
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobUnitPriceLCY(var PurchaseLine: Record "Purchase Line"; var TempJobJnlLine: Record "Job Journal Line" temporary; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobLineAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobLineAmount(var PurchaseLine: Record "Purchase Line"; var TempJobJnlLine: Record "Job Journal Line" temporary; var IsHandled: Boolean)
Parameters
OnBeforeValidateJobLineAmountLCY
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobLineAmountLCY(var PurchaseLine: Record "Purchase Line"; var TempJobJnlLine: Record "Job Journal Line" temporary; var IsHandled: Boolean)
Parameters
OnLineDiscountAmountOnValidateOnBeforeUpdateAmounts
[IntegrationEvent(False,False)]
local procedure OnLineDiscountAmountOnValidateOnBeforeUpdateAmounts(var PurchaseLine: Record "Purchase Line")
Parameters
OnModifyOnAfterSetFilters
[IntegrationEvent(False,False)]
local procedure OnModifyOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; var PurchaseLine2: Record "Purchase Line")
Parameters
OnUpdateVATOnLinesOnAfterUpdateBaseAmounts
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterUpdateBaseAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var VATAmountLine: Record "VAT Amount Line"; Currency: Record Currency)
Parameters
OnValidateNoOnBeforeCheckReceiptNo
[IntegrationEvent(False,False)]
local procedure OnValidateNoOnBeforeCheckReceiptNo(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnDeleteOnAfterUpdateAmounts
[IntegrationEvent(False,False)]
local procedure OnDeleteOnAfterUpdateAmounts(var PurchaseLine: Record "Purchase Line")
Parameters
OnDeleteOnBeforeUpdateAmounts
[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeUpdateAmounts(var PurchaseLine: Record "Purchase Line")
Parameters
OnBeforeInitTableValuePair
[IntegrationEvent(False,False)]
local procedure OnBeforeInitTableValuePair(var TableValuePair: Dictionary of [Integer, Code[20]]; FieldNo: Integer; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterInitTableValuePair
[IntegrationEvent(False,False)]
local procedure OnAfterInitTableValuePair(var TableValuePair: Dictionary of [Integer, Code[20]]; FieldNo: Integer; var PurchaseLine: Record "Purchase Line")
Parameters
OnCheckWarehouseOnAfterSetLocation2
[IntegrationEvent(False,False)]
local procedure OnCheckWarehouseOnAfterSetLocation2(var PurchaseLine: Record "Purchase Line"; var Location2: Record Location)
Parameters
OnBeforeValidateLineAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateLineAmount(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrentFieldNo: Integer; var IsHandled: Boolean; Currency: Record Currency)
Parameters
OnBeforeZeroAmountLine
[IntegrationEvent(False,False)]
local procedure OnBeforeZeroAmountLine(var PurchaseLine: Record "Purchase Line"; QtyType: Option; var Result: Boolean; var IsHandled: Boolean)
Parameters
OnCalcVATAmountLinesOnBeforeAssignQuantities
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeAssignQuantities(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; var QtyToHandle: Decimal; var IsHandled: Boolean)
Parameters
OnCreateDimFromDefaultDimOnBeforeCreateDim
[IntegrationEvent(False,False)]
local procedure OnCreateDimFromDefaultDimOnBeforeCreateDim(PurchaseLine: Record "Purchase Line"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; FieldNo: Integer; var IsHandled: Boolean)
Parameters
OnAfterCreateDimFromDefaultDim
[IntegrationEvent(False,False)]
local procedure OnAfterCreateDimFromDefaultDim(var PurchaseLine: Record "Purchase Line"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; FieldNo: Integer)
Parameters
OnAfterGetDefaultBin
[IntegrationEvent(False,False)]
local procedure OnAfterGetDefaultBin(var PurchaseLine: Record "Purchase Line")
Parameters
OnUpdateVATAmountsOnBeforeCalcAmounts
[IntegrationEvent(False,False)]
local procedure OnUpdateVATAmountsOnBeforeCalcAmounts(var PurchaseLine: Record "Purchase Line"; var PurchaseLine2: Record "Purchase Line"; var TotalAmount: Decimal; TotalAmountInclVAT: Decimal; var TotalLineAmount: Decimal; var TotalInvDiscAmount: Decimal; var TotalQuantityBase: Decimal; TotalVATDifference: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeGetDate
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDate(var PurchaseLine: Record "Purchase Line"; var ResultDate: Date; var IsHandled: Boolean)
Parameters
OnGetSignedValue
[IntegrationEvent(False,False)]
local procedure OnGetSignedValue(var PurchaseLine: Record "Purchase Line"; Value: Decimal; var Result: Decimal)
Parameters
OnAfterValidateTypePurchaseLine
[IntegrationEvent(False,False)]
local procedure OnAfterValidateTypePurchaseLine(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary)
Parameters
OnAfterValidateNoPurchaseLine
[IntegrationEvent(False,False)]
local procedure OnAfterValidateNoPurchaseLine(var PurchaseLine: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header")
Parameters
OnBeforeAttachToInventoryItemLine
[IntegrationEvent(False,False)]
local procedure OnBeforeAttachToInventoryItemLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateJobPlanningLineNoOnBeforeGLAccountTest
[IntegrationEvent(False,False)]
local procedure OnValidateJobPlanningLineNoOnBeforeGLAccountTest(var PurchaseLine: Record "Purchase Line"; var JobPlanningLine: Record "Job Planning Line"; var IsHandled: Boolean)
Parameters
OnValidateJobPlanningLineNoOnBeforeTestFields
[IntegrationEvent(False,False)]
local procedure OnValidateJobPlanningLineNoOnBeforeTestFields(var PurchaseLine: Record "Purchase Line"; var JobPlanningLine: Record "Job Planning Line"; var IsHandled: Boolean)
Parameters
OnAfterIsInbound
[IntegrationEvent(False,False)]
local procedure OnAfterIsInbound(PurchaseLine: Record "Purchase Line"; var IsInboundDocument: Boolean)
Parameters
OnBeforeBlanketOrderIsRelated
[IntegrationEvent(False,False)]
local procedure OnBeforeBlanketOrderIsRelated(var CurrentPurchaseLine: Record "Purchase Line"; var BlanketOrderPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var Result: Boolean)
Parameters
OnBlanketOrderIsRelatedOnAfterSetLoadFields
[IntegrationEvent(False,False)]
local procedure OnBlanketOrderIsRelatedOnAfterSetLoadFields(var BlanketOrderPurchaseLine: Record "Purchase Line")
Parameters
OnUpdateDirectUnitCostByFieldOnAfterSetBlanketOrderPriceFields
[IntegrationEvent(False,False)]
local procedure OnUpdateDirectUnitCostByFieldOnAfterSetBlanketOrderPriceFields(PurchaseHeader: Record "Purchase Header"; BlanketOrderPurchaseLine: Record "Purchase Line"; var CurrentPurchaseLine: Record "Purchase Line"; CalledByFieldNo: Integer; CurrentFieldNo: Integer)
Parameters
OnAfterUpdatePrePaymentAmounts
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePrePaymentAmounts(var PurchaseLine: Record "Purchase Line")
Parameters
OnValidateNoOnBeforeJobTaskIsSet
[IntegrationEvent(True,False)]
local procedure OnValidateNoOnBeforeJobTaskIsSet(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean)
Parameters
OnValidateVariantCodeBeforeCheckBlocked
[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeBeforeCheckBlocked(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnAfterValidateBlanketOrderLineNo
[IntegrationEvent(False,False)]
local procedure OnAfterValidateBlanketOrderLineNo(var PurchaseLine: Record "Purchase Line"; BlanketOrderPurchLine: Record "Purchase Line")
Parameters
OnCheckIfPurchaseLineMeetsReservedFromStockSetting
[IntegrationEvent(False,False)]
local procedure OnCheckIfPurchaseLineMeetsReservedFromStockSetting(QtyToPost: Decimal; ReservedFromStock: Enum "Reservation From Stock"; var Result: Boolean)
Parameters
OnCalcVATAmountLinesOnAfterCalcShouldProcessRounding
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnAfterCalcShouldProcessRounding(var PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; var TotalVATAmount: Decimal; Currency: Record Currency; var ShouldProcessRounding: Boolean)
Parameters
OnCalcVATAmountLinesOnBeforeVATAmountLineUpdateLines
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeVATAmountLineUpdateLines(var PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; var TotalVATAmount: Decimal)
Parameters
OnAfterSetVendorItemNo
[IntegrationEvent(False,False)]
local procedure OnAfterSetVendorItemNo(var PurchaseLine: Record "Purchase Line"; ItemVendor: Record "Item Vendor"; Item: Record Item)
Parameters
OnShowDimensionsOnAfterEditDimensionSet
[IntegrationEvent(False,False)]
local procedure OnShowDimensionsOnAfterEditDimensionSet(var PurchaseLine: Record "Purchase Line"; OldDimensionSetId: Integer)
Parameters
OnCopyFromItemOnAfterGetItemTranslation
[IntegrationEvent(False,False)]
local procedure OnCopyFromItemOnAfterGetItemTranslation(var PurchaseLine: Record "Purchase Line"; var Item: Record Item)
Parameters
OnValidateDirectUnitCostOnBeforeValidateLineDiscPct
[IntegrationEvent(False,False)]
local procedure OnValidateDirectUnitCostOnBeforeValidateLineDiscPct(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnBeforeConfirmReceivedShippedItemDimChange
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmReceivedShippedItemDimChange(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var Result: Boolean)
Parameters
OnAfterGetVatBaseDiscountPct
[IntegrationEvent(False,False)]
local procedure OnAfterGetVatBaseDiscountPct(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var Result: Decimal)
Parameters
OnUpdateDirectUnitCostByFieldOnAfterCalcShouldExit
[IntegrationEvent(False,False)]
local procedure OnUpdateDirectUnitCostByFieldOnAfterCalcShouldExit(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CalledByFieldNo: Integer; CurrFieldNo: Integer; var ShouldExit: Boolean)
Parameters
OnAfterUpdateDimensionsFromJobTask
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDimensionsFromJobTask(var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterClearQtyIfBlank
[IntegrationEvent(False,False)]
local procedure OnAfterClearQtyIfBlank(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; PurchasePayablesSetup: Record "Purchases & Payables Setup")
Parameters
OnTestProdOrderNo
[IntegrationEvent(False,False)]
local procedure OnTestProdOrderNo(var PurchaseLine: Record "Purchase Line")
Parameters
OnTestWorkCenterNo
[IntegrationEvent(False,False)]
local procedure OnTestWorkCenterNo(var PurchaseLine: Record "Purchase Line")
Parameters
OnSumVATAmountLineOnBeforeModify
[IntegrationEvent(False,False)]
local procedure OnSumVATAmountLineOnBeforeModify(var PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line")
Parameters
OnIsProdOrder
[IntegrationEvent(False,False)]
local procedure OnIsProdOrder(var PurchaseLine: Record "Purchase Line"; var Result: Boolean)
Parameters
OnIsWorkCenter
[IntegrationEvent(False,False)]
local procedure OnIsWorkCenter(var PurchaseLine: Record "Purchase Line"; var Result: Boolean)
Parameters
OnInsertVATAmountOnBeforeInsert
[IntegrationEvent(False,False)]
local procedure OnInsertVATAmountOnBeforeInsert(var PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line")
Parameters
OnIsSubcontractingCreditMemo
[IntegrationEvent(False,False)]
local procedure OnIsSubcontractingCreditMemo(var PurchaseLine: Record "Purchase Line"; var Result: Boolean)
Parameters
OnOpenItemTrackingLinesOnAfterCheck
[IntegrationEvent(False,False)]
local procedure OnOpenItemTrackingLinesOnAfterCheck(var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterCheckAssosiatedProdOrder
[IntegrationEvent(False,False)]
local procedure OnAfterCheckAssosiatedProdOrder(var PurchaseLine: Record "Purchase Line")
Parameters
OnFindVATAmountLineOnAfterSetFilters
[IntegrationEvent(False,False)]
local procedure OnFindVATAmountLineOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line")
Parameters
OnAfterReversedInternalLeadTimeDays
[IntegrationEvent(False,False)]
local procedure OnAfterReversedInternalLeadTimeDays(PurchaseLine: Record "Purchase Line"; PurchDate: Date; ReversedWhseHandlingTime: DateFormula; var TotalDays: DateFormula)
Parameters
OnAfterGetPostingSetup
[IntegrationEvent(False,False)]
local procedure OnAfterGetPostingSetup(var PurchaseLine: Record "Purchase Line"; var VATPostingSetup: Record "VAT Posting Setup")
Parameters
OnAfterClearVATPct
[IntegrationEvent(False,False)]
local procedure OnAfterClearVATPct(var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterClearPrepaymentVATPct
[IntegrationEvent(False,False)]
local procedure OnAfterClearPrepaymentVATPct(var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterClearVATDifference
[IntegrationEvent(False,False)]
local procedure OnAfterClearVATDifference(var PurchaseLine: Record "Purchase Line")
Parameters
OnAfterGetVATPct
[IntegrationEvent(False,False)]
local procedure OnAfterGetVATPct(var PurchaseLine: Record "Purchase Line"; var VATPct: Decimal)
Parameters
OnAfterGetPrepaymentVATPct
[IntegrationEvent(False,False)]
local procedure OnAfterGetPrepaymentVATPct(var PurchaseLine: Record "Purchase Line"; var PrepaymentVATPct: Decimal)
Parameters
OnAfterCopyFromVATPostingSetup
[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromVATPostingSetup(var PurchaseLine: Record "Purchase Line"; var VATPostingSetupFrom: Record "VAT Posting Setup")
Parameters
OnAfterCopyPrepaymentFromVATPostingSetup
[IntegrationEvent(False,False)]
local procedure OnAfterCopyPrepaymentFromVATPostingSetup(var PurchaseLine: Record "Purchase Line"; var VATPostingSetupFrom: Record "VAT Posting Setup")
Parameters
OnGetFAPostingGroupOnBeforeCheckGLAcc
[IntegrationEvent(False,False)]
local procedure OnGetFAPostingGroupOnBeforeCheckGLAcc(var PurchaseLine: Record "Purchase Line"; var GLAccount: Record "G/L Account"; FADeprBook: Record "FA Depreciation Book"; var IsHandled: Boolean)
Parameters
OnAfterUpdateLineAmount
[IntegrationEvent(True,False)]
local procedure OnAfterUpdateLineAmount(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; Currency: Record Currency; var LineAmountChanged: Boolean)
Parameters
OnValidateLocationCodeOnBeforeSetInboundWhseHandlingTime
[IntegrationEvent(False,False)]
local procedure OnValidateLocationCodeOnBeforeSetInboundWhseHandlingTime(CurrFieldNo: Integer; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnValidateOrderDateOnBeforeCheckDateConflict
[IntegrationEvent(True,False)]
local procedure OnValidateOrderDateOnBeforeCheckDateConflict(var PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
OnUpdateUnitCostOnBeforeCalcStandardUnitCostLCY
[IntegrationEvent(False,False)]
local procedure OnUpdateUnitCostOnBeforeCalcStandardUnitCostLCY(var PurchaseLine: Record "Purchase Line"; var ShouldCalcStandardUnitCostLCY: Boolean)
Parameters
OnValidateIndirectCostOnAfterCalcShouldCheckCostingMethod
[IntegrationEvent(False,False)]
local procedure OnValidateIndirectCostOnAfterCalcShouldCheckCostingMethod(var PurchaseLine: Record "Purchase Line"; var ShouldCheckCostingMethod: Boolean)
Parameters
OnUpdateVATOnLinesOnBeforeModifyPurchLine
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforeModifyPurchLine(var PurchaseLine: Record "Purchase Line"; VATAmount: Decimal)
Parameters
OnBeforeTestPurchaseJobFields
[IntegrationEvent(False,False)]
local procedure OnBeforeTestPurchaseJobFields(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnInsertOnAfterLockTable
[IntegrationEvent(False,False)]
local procedure OnInsertOnAfterLockTable(var PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer)
Parameters
OnAfterModifyOnAfterVerifyChange
[IntegrationEvent(False,False)]
local procedure OnAfterModifyOnAfterVerifyChange(var PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer)
Parameters
OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify
[IntegrationEvent(False,False)]
local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var PurchaseLine: Record "Purchase Line"; var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)")
Parameters
OnBeforeCheckAcquisitionCost
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckAcquisitionCost(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
OnAfterCheckIsLineAmountToInvoiceSimple
[IntegrationEvent(False,False)]
local procedure OnAfterCheckIsLineAmountToInvoiceSimple(PurchHeader: Record "Purchase Header"; var IsLineAmountToInvoiceSimple: Boolean)
Parameters
OnCalcVATAmountLinesOnBeforeAssignShippingQuantities
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnBeforeAssignShippingQuantities(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; var QtyToHandle: Decimal; var IsHandled: Boolean)
Parameters
OnCalcVATAmountLinesOnQtyTypeShippingOnBeforeCalcAmtToHandle
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLinesOnQtyTypeShippingOnBeforeCalcAmtToHandle(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var QtyToHandle: Decimal; var VATAmountLine: Record "VAT Amount Line")
Parameters
OnAfterIsServiceCharge
[IntegrationEvent(False,False)]
local procedure OnAfterIsServiceCharge(var PurchaseLine: Record "Purchase Line"; var ServiceCharged: Boolean)
Parameters
OnValidateGenBusPostingGroupOnBeforeValidateVATBusPostingGroup
[IntegrationEvent(False,False)]
local procedure OnValidateGenBusPostingGroupOnBeforeValidateVATBusPostingGroup(var PurchaseLine: Record "Purchase Line"; var ValidateVATBusPostingGroup: Boolean)
Parameters
OnAfterSetHideValidationDialog
Raised after setting the hide validation dialog flag on the purchase line.
[IntegrationEvent(False,False)]
local procedure OnAfterSetHideValidationDialog(var PurchaseLine: Record "Purchase Line"; NewHideValidationDialog: Boolean)
Parameters
See also