{"title":"Table 38 Purchase Header, extension points 29","url":"https://jonas-paprotka.de/ref/table/38-purchase-header/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":38,"name":"Purchase Header","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/38-purchase-header/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/38-purchase-header/source/","path":"src/Layers/W1/BaseApp/Purchases/Document/PurchaseHeader.Table.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:9178":{"name":"Application Area Mgmt.","url":"https://jonas-paprotka.de/ref/codeunit/9178-application-area-mgmt/"},"table:38":{"name":"Purchase Header","url":"https://jonas-paprotka.de/ref/table/38-purchase-header/"},"codeunit:5700":{"name":"User Setup Management","url":"https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/"},"codeunit:170":{"name":"Standard Codes Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/170-standard-codes-mgt/"},"codeunit:5826":{"name":"Matched Order Line Mgmt.","url":"https://jonas-paprotka.de/ref/codeunit/5826-matched-order-line-mgmt/"},"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"codeunit:48":{"name":"PostingSetupManagement","url":"https://jonas-paprotka.de/ref/codeunit/48-postingsetupmanagement/"},"table:23":{"name":"Vendor","url":"https://jonas-paprotka.de/ref/table/23-vendor/"},"table:225":{"name":"Post Code","url":"https://jonas-paprotka.de/ref/table/225-post-code/"},"table:98":{"name":"General Ledger Setup","url":"https://jonas-paprotka.de/ref/table/98-general-ledger-setup/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"table:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"},"table:4":{"name":"Currency","url":"https://jonas-paprotka.de/ref/table/4-currency/"},"codeunit:500":{"name":"Enum Assignment Management","url":"https://jonas-paprotka.de/ref/codeunit/500-enum-assignment-management/"},"page:233":{"name":"Apply Vendor Entries","url":"https://jonas-paprotka.de/ref/page/233-apply-vendor-entries/"},"codeunit:225":{"name":"Gen. Jnl.-Apply","url":"https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/"},"table:15":{"name":"G/L Account","url":"https://jonas-paprotka.de/ref/table/15-g-l-account/"},"codeunit:5772":{"name":"Whse.-Purch. Release","url":"https://jonas-paprotka.de/ref/codeunit/5772-whse-purch-release/"},"table:250":{"name":"Gen. Business Posting Group","url":"https://jonas-paprotka.de/ref/table/250-gen-business-posting-group/"},"codeunit:109":{"name":"Lookup State Manager","url":"https://jonas-paprotka.de/ref/codeunit/109-lookup-state-manager/"},"codeunit:365":{"name":"Format Address","url":"https://jonas-paprotka.de/ref/codeunit/365-format-address/"},"codeunit:111":{"name":"Vend. Entry-SetAppl.ID","url":"https://jonas-paprotka.de/ref/codeunit/111-vend-entry-setappl-id/"},"table:6840":{"name":"Spend Request","url":"https://jonas-paprotka.de/ref/table/6840-spend-request/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"},"table:472":{"name":"Job Queue Entry","url":"https://jonas-paprotka.de/ref/table/472-job-queue-entry/"},"table:130":{"name":"Incoming Document","url":"https://jonas-paprotka.de/ref/table/130-incoming-document/"},"table:5050":{"name":"Contact","url":"https://jonas-paprotka.de/ref/table/5050-contact/"},"table:5054":{"name":"Contact Business Relation","url":"https://jonas-paprotka.de/ref/table/5054-contact-business-relation/"},"codeunit:5404":{"name":"Lead-Time Management","url":"https://jonas-paprotka.de/ref/codeunit/5404-lead-time-management/"},"codeunit:57":{"name":"Document Totals","url":"https://jonas-paprotka.de/ref/codeunit/57-document-totals/"},"codeunit:5063":{"name":"ArchiveManagement","url":"https://jonas-paprotka.de/ref/codeunit/5063-archivemanagement/"},"codeunit:364":{"name":"PostPurch-Delete","url":"https://jonas-paprotka.de/ref/codeunit/364-postpurch-delete/"},"table:43":{"name":"Purch. Comment Line","url":"https://jonas-paprotka.de/ref/table/43-purch-comment-line/"},"table:312":{"name":"Purchases & Payables Setup","url":"https://jonas-paprotka.de/ref/table/312-purchases-payables-setup/"},"codeunit:1380":{"name":"Batch Processing Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1380-batch-processing-mgt/"},"codeunit:415":{"name":"Release Purchase Document","url":"https://jonas-paprotka.de/ref/codeunit/415-release-purchase-document/"},"table:2000000026":{"name":"Integer","url":"https://jonas-paprotka.de/ref/table/2000000026-integer/"},"codeunit:378":{"name":"Transfer Extended Text","url":"https://jonas-paprotka.de/ref/codeunit/378-transfer-extended-text/"},"table:5805":{"name":"Item Charge Assignment (Purch)","url":"https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/"},"codeunit:6620":{"name":"Copy Document Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/6620-copy-document-mgt/"},"table:37":{"name":"Sales Line","url":"https://jonas-paprotka.de/ref/table/37-sales-line/"},"codeunit:1281":{"name":"Update Currency Exchange Rates","url":"https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"codeunit:99000834":{"name":"Purch. Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000834-purch-line-reserve/"},"codeunit:99000831":{"name":"Reservation Engine Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/99000831-reservation-engine-mgt/"},"codeunit:99000845":{"name":"Reservation Management","url":"https://jonas-paprotka.de/ref/codeunit/99000845-reservation-management/"},"codeunit:1535":{"name":"Approvals Mgmt.","url":"https://jonas-paprotka.de/ref/codeunit/1535-approvals-mgmt/"},"codeunit:1630":{"name":"Office Management","url":"https://jonas-paprotka.de/ref/codeunit/1630-office-management/"},"report:7323":{"name":"Create Invt Put-away/Pick/Mvmt","url":"https://jonas-paprotka.de/ref/report/7323-create-invt-put-away-pick-mvmt/"},"codeunit:113":{"name":"Vend. Entry-Edit","url":"https://jonas-paprotka.de/ref/codeunit/113-vend-entry-edit/"},"page:5855":{"name":"Posted Purchase Document Lines","url":"https://jonas-paprotka.de/ref/page/5855-posted-purchase-document-lines/"},"codeunit:70":{"name":"Purch.-Calc.Discount","url":"https://jonas-paprotka.de/ref/codeunit/70-purch-calc-discount/"},"codeunit:441":{"name":"Prepayment Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/441-prepayment-mgt/"},"codeunit:28":{"name":"Error Message Management","url":"https://jonas-paprotka.de/ref/codeunit/28-error-message-management/"},"codeunit:29":{"name":"Error Message Handler","url":"https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/"},"table:5765":{"name":"Warehouse Request","url":"https://jonas-paprotka.de/ref/table/5765-warehouse-request/"},"codeunit:98":{"name":"Purchase Post via Job Queue","url":"https://jonas-paprotka.de/ref/codeunit/98-purchase-post-via-job-queue/"},"codeunit:452":{"name":"Report Distribution Management","url":"https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/"},"codeunit:90":{"name":"Purch.-Post","url":"https://jonas-paprotka.de/ref/codeunit/90-purch-post/"},"codeunit:1330":{"name":"Instruction Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/"},"table:60":{"name":"Document Sending Profile","url":"https://jonas-paprotka.de/ref/table/60-document-sending-profile/"},"table:13":{"name":"Salesperson/Purchaser","url":"https://jonas-paprotka.de/ref/table/13-salesperson-purchaser/"},"table:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"},"codeunit:1511":{"name":"Notification Lifecycle Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/"},"codeunit:1312":{"name":"Vendor Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1312-vendor-mgt/"},"table:156":{"name":"Resource","url":"https://jonas-paprotka.de/ref/table/156-resource/"},"report:492":{"name":"Copy Purchase Document","url":"https://jonas-paprotka.de/ref/report/492-copy-purchase-document/"},"codeunit:427":{"name":"ICInboxOutboxMgt","url":"https://jonas-paprotka.de/ref/codeunit/427-icinboxoutboxmgt/"},"codeunit:1313":{"name":"Correct Posted Purch. Invoice","url":"https://jonas-paprotka.de/ref/codeunit/1313-correct-posted-purch-invoice/"}},"procs":[{"name":"Buy-from Vendor No..OnValidate","line":87,"kind":"trigger","steps":[[93,"event","OnBeforeValidateBuyFromVendorNo",1],[98,"call","InitRecord",0],[99,"call","TestStatusOpen",0],[104,"call","CheckDropShipmentLineExists",0],[105,"call","ConfirmUpdateField",1],[106,"call","InitFromVendor",2],[109,"call","CheckReceiptInfo",2],[110,"call","CheckPrepmtInfo",1],[111,"call","CheckReturnInfo",2],[120,"call","GetVend",1],[121,"call","CheckBlockedVendOnDocs",1],[122,"ext","codeunit",9178,"IsSalesTaxEnabled",0],[124,"event","OnAfterCheckBuyFromVendor",0],[128,"call","CopyBuyFromVendorAddressFieldsFromVendor",2],[137,"validate",38,"Lead Time Calculation"],[142,"event","OnValidateBuyFromVendorNoOnBeforeAssignResponsibilityCenter",1],[144,"ext","codeunit",5700,"GetRespCenter",2],[145,"call","ValidateEmptySellToCustomerAndLocation",0],[146,"event","OnAfterCopyBuyFromVendorFieldsFromVendor",0],[149,"call","ReceivedPurchLinesExist",0],[149,"call","ReturnShipmentExist",0],[157,"event","OnValidateBuyFromVendorNoOnValidateBuyFromVendorNoOnBeforeValidatePayToVendor",0],[159,"validate",38,"Pay-to Vendor No."],[163,"validate",38,"Pay-to Vendor No."],[168,"event","OnValidateBuyFromVendorNoOnAfterValidatePayToVendor",0],[170,"call","CopyPayToVendorAddressFieldsFromVendor",2],[171,"call","IsCreditDocType",0],[174,"call","CopyShipToVendorAddressFieldsFromVendor",2],[178,"validate",38,"Location Code"],[181,"event","OnValidateBuyFromVendorNoBeforeRecreateLines",0],[188,"call","RecreatePurchLines",1],[191,"ext","codeunit",170,"CheckCreatePurchRecurringLines",1],[193,"event","OnValidateBuyFromVendorNoOnAfterRecreateLines",0],[196,"call","UpdateBuyFromCont",1],[198,"event","OnValidateBuyFromVendorNoOnAfterUpdateBuyFromCont",0],[201,"call","RecallModifyAddressNotification",1],[201,"call","GetModifyVendorAddressNotificationId",0],[203,"validate",38,"Remit-to Code"],[205,"call","SelectDefaultRemitAddress",1],[207,"ext","codeunit",5826,"ApplyVendorsReceiptOnInvoicePolicy",1]]},{"name":"No..OnValidate","line":215,"kind":"trigger","steps":[[218,"call","GetPurchSetup",0],[219,"ext","codeunit",310,"TestManual",1],[219,"call","GetNoSeriesCode",0]]},{"name":"Pay-to Vendor No..OnValidate","line":231,"kind":"trigger","steps":[[236,"event","OnBeforeValidatePayToVendorNo",1],[240,"call","TestStatusOpen",0],[244,"call","ConfirmUpdateField",1],[245,"event","OnValidatePayToVendorNoOnAfterConfirmed",0],[249,"call","CheckReceiptInfo",2],[250,"call","CheckPrepmtInfo",1],[251,"call","CheckReturnInfo",2],[257,"event","OnValidatePayToVendorNoOnBeforeGetPayToVend",0],[258,"call","GetVend",1],[259,"call","CheckBlockedVendOnDocs",1],[261,"ext","codeunit",48,"CheckVendPostingGroupPayablesAccount",1],[262,"event","OnAfterCheckPayToVendor",0],[266,"call","CopyPayToVendorAddressFieldsFromVendor",2],[272,"ext","table",23,"GetPriceCalculationMethod",0],[276,"event","OnAfterCopyPayToVendorFieldsFromVendor",0],[290,"call","SetPurchaserCode",2],[291,"validate",38,"Payment Terms Code"],[292,"validate",38,"Prepmt. Payment Terms Code"],[293,"validate",38,"Payment Method Code"],[294,"validate",38,"Currency Code"],[295,"validate",38,"Creditor No."],[296,"event","OnValidatePurchaseHeaderPayToVendorNoOnBeforeCheckDocType",0],[299,"validate",38,"Prepayment %"],[302,"call","ReceivedPurchLinesExist",0],[305,"call","CreateDimensionsFromValidatePayToVendorNo",0],[307,"event","OnValidatePaytoVendorNoBeforeRecreateLines",0],[313,"event","OnValidatePayToVendorNoOnBeforeRecreatePurchLines",1],[315,"call","RecreatePurchLines",1],[319,"call","UpdatePayToCont",1],[323,"event","OnValidatePayToVendorNoOnBeforeRecallModifyAddressNotification",0],[325,"call","RecallModifyAddressNotification",1],[325,"call","GetModifyPayToVendorAddressNotificationId",0]]},{"name":"Pay-to Name.OnValidate","line":335,"kind":"trigger","steps":[[340,"call","ShouldSearchForVendorByName",1],[341,"validate",38,"Pay-to Vendor No."],[341,"ext","table",23,"GetVendorNo",1]]},{"name":"Pay-to Address.OnValidate","line":354,"kind":"trigger","steps":[[356,"call","ModifyPayToVendorAddress",0]]},{"name":"Pay-to Address 2.OnValidate","line":364,"kind":"trigger","steps":[[366,"call","ModifyPayToVendorAddress",0]]},{"name":"Pay-to City.OnLookup","line":378,"kind":"trigger","steps":[[380,"call","LookupPostCode",5]]},{"name":"Pay-to City.OnValidate","line":383,"kind":"trigger","steps":[[388,"event","OnBeforeValidatePayToCity",1],[390,"ext","table",225,"ValidateCity",5],[392,"call","ModifyPayToVendorAddress",0]]},{"name":"Pay-to Contact.OnLookup","line":400,"kind":"trigger","steps":[[405,"call","LookupContact",3],[407,"validate",38,"Pay-to Contact No."]]},{"name":"Pay-to Contact.OnValidate","line":411,"kind":"trigger","steps":[[413,"call","ModifyPayToVendorAddress",0]]},{"name":"Ship-to Code.OnValidate","line":427,"kind":"trigger","steps":[[433,"event","OnBeforeValidateShipToCode",1],[437,"call","CheckShipToCodeChange",2],[441,"call","SetShipToAddress",8],[453,"validate",38,"Location Code"],[454,"event","OnValidateShipToCodeOnAfterCopyFromShipToAddr",0],[458,"call","SetShipToAddress",8],[465,"validate",38,"Location Code"],[466,"event","OnValidateShipToCodeOnAfterCopyFromSellToCust",0],[469,"event","OnAfterValidateShipToCode",0]]},{"name":"Ship-to City.OnLookup","line":501,"kind":"trigger","steps":[[503,"call","LookupPostCode",5]]},{"name":"Ship-to City.OnValidate","line":506,"kind":"trigger","steps":[[511,"event","OnBeforeValidateShipToCity",1],[513,"ext","table",225,"ValidateCity",5]]},{"name":"Order Date.OnValidate","line":528,"kind":"trigger","steps":[[533,"event","OnBeforeValidateOrderDate",1],[540,"call","PriceMessageIfPurchLinesExist",1]]},{"name":"Posting Date.OnValidate","line":548,"kind":"trigger","steps":[[556,"event","OnBeforeValidatePostingDate",1],[561,"call","TestNoSeriesDate",4],[564,"call","TestNoSeriesDate",4],[567,"call","TestNoSeriesDate",4],[572,"ext","table",98,"UpdateVATDate",3],[573,"validate",38,"VAT Reporting Date"],[579,"call","ValidateDocumentDateWithPostingDate",0],[584,"call","PriceMessageIfPurchLinesExist",1],[586,"event","OnValidatePostingDateOnBeforeResetInvoiceDiscountValue",0],[587,"call","ResetInvoiceDiscountValue",0],[590,"event","OnValidatePostingDateOnBeforeCheckNeedUpdateCurrencyFactor",0],[592,"call","UpdateCurrencyFactor",0],[593,"call","GetCalledFromWhseDoc",0],[594,"call","ConfirmCurrencyFactorUpdate",0],[596,"event","OnValidatePostingDateOnAfterCheckNeedUpdateCurrencyFactor",0],[599,"call","DeferralHeadersExist",0],[600,"call","ConfirmUpdateDeferralDate",0],[602,"call","PurchLinesExist",0],[603,"call","JobUpdatePurchLines",1]]},{"name":"Expected Receipt Date.OnValidate","line":611,"kind":"trigger","steps":[[616,"event","OnBeforeValidateExpectedReceiptDate",1],[621,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Payment Terms Code.OnValidate","line":635,"kind":"trigger","steps":[[641,"call","IsCreditDocType",0],[643,"event","OnValidatePaymentTermsCodeOnBeforeValidateDueDate",1],[645,"validate",38,"Due Date"],[646,"validate",38,"Pmt. Discount Date"],[647,"validate",38,"Payment Discount %"],[650,"event","OnValidatePaymentTermsCodeOnBeforeCalcDueDate",1],[654,"event","OnValidatePaymentTermsCodeOnBeforeCalcPmtDiscDate",1],[658,"validate",38,"Payment Discount %"],[662,"event","OnValidatePaymentTermsCodeOnBeforeValidateDueDateWhenBlank",1],[664,"validate",38,"Due Date"],[666,"event","OnValidatePaymentTermsCodeOnBeforeValidatePmtDiscountWhenBlank",0],[667,"validate",38,"Pmt. Discount Date"],[668,"validate",38,"Payment Discount %"],[672,"validate",38,"Prepmt. Payment Terms Code"]]},{"name":"Payment Discount %.OnValidate","line":689,"kind":"trigger","steps":[[694,"event","OnBeforeValidatePaymentDiscountPercent",1],[699,"call","TestStatusOpen",0],[705,"validate",38,"VAT Base Discount %"]]},{"name":"Shipment Method Code.OnValidate","line":719,"kind":"trigger","steps":[[724,"event","OnBeforeValidateShipmentMethodCode",1],[728,"call","TestStatusOpen",0]]},{"name":"Location Code.OnValidate","line":737,"kind":"trigger","steps":[[741,"event","OnBeforeValidateLocationCode",1],[745,"call","TestStatusOpen",0],[749,"call","MessageIfPurchLinesExist",1],[751,"call","UpdateShipToAddress",0],[752,"call","UpdateInboundWhseHandlingTime",0],[754,"call","CreateDimFromDefaultDim",1]]},{"name":"Shortcut Dimension 1 Code.OnValidate","line":765,"kind":"trigger","steps":[[767,"call","ValidateShortcutDimCode",2]]},{"name":"Shortcut Dimension 2 Code.OnValidate","line":778,"kind":"trigger","steps":[[780,"call","ValidateShortcutDimCode",2]]},{"name":"Vendor Posting Group.OnValidate","line":789,"kind":"trigger","steps":[[791,"call","CheckVendorPostingGroupChange",0]]},{"name":"Currency Code.OnValidate","line":800,"kind":"trigger","steps":[[807,"event","OnBeforeValidateCurrencyCode",1],[814,"call","TestStatusOpen",0],[816,"call","ResetInvoiceDiscountValue",0],[819,"call","UpdateCurrencyFactor",1],[822,"call","UpdateCurrencyFactor",1],[825,"call","UpdateCurrencyFactor",1],[827,"call","ConfirmCurrencyFactorUpdate",0],[830,"call","ShouldCheckShowRecurringSalesLines",2],[831,"ext","codeunit",170,"CheckShowPurchRecurringLinesNotification",1]]},{"name":"Currency Factor.OnValidate","line":842,"kind":"trigger","steps":[[844,"call","ResetInvoiceDiscountValue",0],[847,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Prices Including VAT.OnValidate","line":855,"kind":"trigger","steps":[[867,"event","OnBeforeValidatePricesIncludingVAT",1],[871,"call","TestStatusOpen",0],[879,"call","GetHideValidationDialog",0],[883,"ext","codeunit",27,"GetResponseOrDefault",2],[889,"event","OnAfterConfirmPurchPrice",0],[890,"ext","table",39,"SetPurchHeader",1],[892,"ext","table",4,"Initialize",1],[897,"ext","table",39,"CalcLineAmount",0],[898,"ext","table",39,"CalcLineAmount",0],[899,"write",39,"Modify"],[909,"ext","table",39,"UpdateAmounts",0],[934,"call","UpdatePrepmtAmounts",1],[936,"event","OnValidatePricesIncludingVATOnBeforePurchLineModify",0],[937,"write",39,"Modify"],[940,"event","OnAfterChangePricesIncludingVAT",0]]},{"name":"Invoice Disc. Code.OnValidate","line":948,"kind":"trigger","steps":[[950,"call","TestStatusOpen",0],[951,"call","MessageIfPurchLinesExist",1]]},{"name":"Language Code.OnValidate","line":960,"kind":"trigger","steps":[[962,"call","MessageIfPurchLinesExist",1]]},{"name":"Purchaser Code.OnValidate","line":977,"kind":"trigger","steps":[[982,"call","ValidatePurchaserOnPurchHeader",3],[985,"ext","codeunit",500,"GetPurchApprovalDocumentType",1],[991,"call","CreateDimFromDefaultDim",1]]},{"name":"Applies-to Doc. No..OnLookup","line":1027,"kind":"trigger","steps":[[1035,"event","OnBeforeLookupAppliesToDocNo",1],[1060,"ext","page",233,"SetPurch",3],[1065,"ext","page",233,"GetVendLedgEntry",1],[1066,"ext","codeunit",225,"CheckAgainstApplnCurrency",4],[1070,"event","OnAfterAppliesToDocNoOnLookup",0]]},{"name":"Applies-to Doc. No..OnValidate","line":1075,"kind":"trigger","steps":[[1080,"event","OnBeforeValidateAppliesToDocNo",1],[1090,"call","SetAmountToApply",2],[1091,"call","SetAmountToApply",2],[1094,"call","SetAmountToApply",2],[1097,"call","SetAmountToApply",2]]},{"name":"Bal. Account No..OnValidate","line":1107,"kind":"trigger","steps":[[1114,"ext","table",15,"CheckGLAcc",0]]},{"name":"Vendor Shipment No..OnValidate","line":1199,"kind":"trigger","steps":[[1206,"ext","codeunit",5772,"UpdateExternalDocNoForReleasedOrder",1]]},{"name":"Vendor Invoice No..OnValidate","line":1214,"kind":"trigger","steps":[[1220,"event","OnBeforeValidateVendorInvoiceNo",1],[1225,"call","FindPostedDocumentWithSameExternalDocNo",2],[1226,"call","ShowExternalDocAlreadyExistNotification",1],[1228,"call","RecallExternalDocAlreadyExistsNotification",0]]},{"name":"Vendor Cr. Memo No..OnValidate","line":1236,"kind":"trigger","steps":[[1242,"event","OnBeforeValidateVendorCrMemoNo",1],[1247,"call","FindPostedDocumentWithSameExternalDocNo",2],[1248,"call","ShowExternalDocAlreadyExistNotification",1],[1250,"call","RecallExternalDocAlreadyExistsNotification",0]]},{"name":"Sell-to Customer No..OnValidate","line":1263,"kind":"trigger","steps":[[1268,"event","OnBeforeValidateSellToCustomerNo",1],[1283,"call","CheckSpecialOrderSalesLineLink",0],[1288,"call","UpdateLocationCode",0],[1290,"call","SetShipToCodeEmpty",0]]},{"name":"Gen. Bus. Posting Group.OnValidate","line":1304,"kind":"trigger","steps":[[1306,"call","TestStatusOpen",0],[1310,"ext","table",250,"ValidateVatBusPostingGroup",2],[1312,"event","OnValidateGenBusPostingGroupOnAfterSetVATBusPostingGroup",0],[1314,"call","RecreatePurchLines",1]]},{"name":"Transaction Type.OnValidate","line":1324,"kind":"trigger","steps":[[1326,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Transport Method.OnValidate","line":1335,"kind":"trigger","steps":[[1337,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Buy-from Vendor Name.OnValidate","line":1352,"kind":"trigger","steps":[[1359,"event","OnBeforeValidateBuyFromVendorName",1],[1361,"ext","codeunit",109,"IsRecordSaved",0],[1362,"ext","codeunit",109,"ClearSavedRecord",0],[1366,"ext","codeunit",109,"IsRecordSaved",0],[1367,"ext","codeunit",109,"GetSavedRecord",0],[1369,"ext","codeunit",109,"ClearSavedRecord",0],[1370,"validate",38,"Buy-from Vendor No."],[1371,"event","OnLookupBuyfromVendorNameOnAfterSuccessfulLookup",0],[1375,"call","ShouldSearchForVendorByName",1],[1376,"validate",38,"Buy-from Vendor No."],[1376,"ext","table",23,"GetVendorNo",1]]},{"name":"Buy-from Address.OnValidate","line":1389,"kind":"trigger","steps":[[1391,"call","UpdatePayToAddressFromBuyFromAddress",1],[1392,"call","ModifyVendorAddress",0]]},{"name":"Buy-from Address 2.OnValidate","line":1400,"kind":"trigger","steps":[[1402,"call","UpdatePayToAddressFromBuyFromAddress",1],[1403,"call","ModifyVendorAddress",0]]},{"name":"Buy-from City.OnLookup","line":1415,"kind":"trigger","steps":[[1420,"event","OnBuyFromCityOnBeforeOnLookup",1],[1423,"call","LookupPostCode",5]]},{"name":"Buy-from City.OnValidate","line":1426,"kind":"trigger","steps":[[1431,"event","OnBeforeValidateBuyFromCity",1],[1433,"ext","table",225,"ValidateCity",5],[1435,"call","UpdatePayToAddressFromBuyFromAddress",1],[1436,"call","ModifyVendorAddress",0]]},{"name":"Buy-from Contact.OnLookup","line":1444,"kind":"trigger","steps":[[1446,"call","LookupBuyFromContact",0]]},{"name":"Buy-from Contact.OnValidate","line":1449,"kind":"trigger","steps":[[1451,"call","ModifyVendorAddress",0]]},{"name":"Pay-to Post Code.OnLookup","line":1463,"kind":"trigger","steps":[[1465,"call","LookupPostCode",5]]},{"name":"Pay-to Post Code.OnValidate","line":1468,"kind":"trigger","steps":[[1473,"event","OnBeforeValidatePayToPostCode",1],[1475,"ext","table",225,"ValidatePostCode",5],[1477,"call","ModifyPayToVendorAddress",0]]},{"name":"Pay-to County.OnValidate","line":1486,"kind":"trigger","steps":[[1488,"call","ModifyPayToVendorAddress",0]]},{"name":"Pay-to Country/Region Code.OnValidate","line":1497,"kind":"trigger","steps":[[1501,"ext","codeunit",365,"UseCounty",1],[1503,"call","ModifyPayToVendorAddress",0]]},{"name":"Buy-from Post Code.OnLookup","line":1515,"kind":"trigger","steps":[[1517,"call","BuyFromPostCodeOnBeforeLookupHandled",0],[1520,"call","LookupPostCode",5]]},{"name":"Buy-from Post Code.OnValidate","line":1523,"kind":"trigger","steps":[[1528,"event","OnBeforeValidateBuyFromPostCode",1],[1530,"ext","table",225,"ValidatePostCode",5],[1532,"call","UpdatePayToAddressFromBuyFromAddress",1],[1533,"call","ModifyVendorAddress",0]]},{"name":"Buy-from County.OnValidate","line":1542,"kind":"trigger","steps":[[1544,"call","UpdatePayToAddressFromBuyFromAddress",1],[1545,"call","ModifyVendorAddress",0]]},{"name":"Buy-from Country/Region Code.OnValidate","line":1554,"kind":"trigger","steps":[[1558,"ext","codeunit",365,"UseCounty",1],[1560,"call","UpdatePayToAddressFromBuyFromAddress",1],[1561,"call","ModifyVendorAddress",0]]},{"name":"Ship-to Post Code.OnLookup","line":1573,"kind":"trigger","steps":[[1578,"event","OnShipToPostCodeOnBeforeOnLookup",1],[1582,"call","LookupPostCode",5]]},{"name":"Ship-to Post Code.OnValidate","line":1585,"kind":"trigger","steps":[[1590,"event","OnBeforeValidateShipToPostCode",1],[1592,"ext","table",225,"ValidatePostCode",5]]},{"name":"Order Address Code.OnValidate","line":1618,"kind":"trigger","steps":[[1623,"call","CopyAddressInfoFromOrderAddress",0],[1625,"call","GetVend",1],[1627,"event","OnValidateOrderAddressCodeOnBeforeCopyBuyFromVendorAddressFieldsFromVendor",1],[1631,"call","CopyBuyFromVendorAddressFieldsFromVendor",2],[1634,"event","OnValidateOrderAddressCodeOnAfterCopyBuyFromVendorAddressFieldsFromVendor",0],[1636,"call","IsCreditDocType",0],[1639,"call","CopyShipToVendorAddressFieldsFromVendor",2],[1643,"event","OnValidateOrderAddressCodeOnBeforeUpdateLocationCode",1],[1646,"validate",38,"Location Code"]]},{"name":"Entry Point.OnValidate","line":1657,"kind":"trigger","steps":[[1659,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Document Date.OnValidate","line":1672,"kind":"trigger","steps":[[1675,"ext","table",98,"UpdateVATDate",3],[1676,"validate",38,"VAT Reporting Date"],[1680,"validate",38,"Payment Terms Code"],[1681,"validate",38,"Prepmt. Payment Terms Code"]]},{"name":"Area.OnValidate","line":1691,"kind":"trigger","steps":[[1693,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Transaction Specification.OnValidate","line":1702,"kind":"trigger","steps":[[1704,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Posting No. Series.OnLookup","line":1737,"kind":"trigger","steps":[[1740,"call","GetPurchSetup",0],[1741,"ext","table",38,"TestNoSeries",0],[1742,"ext","codeunit",310,"LookupRelatedNoSeries",2],[1742,"call","GetPostingNoSeriesCode",0],[1743,"validate",38,"Posting No. Series"]]},{"name":"Posting No. Series.OnValidate","line":1747,"kind":"trigger","steps":[[1750,"call","GetPurchSetup",0],[1751,"call","TestNoSeries",0],[1752,"ext","codeunit",310,"TestAreRelated",2],[1752,"call","GetPostingNoSeriesCode",0]]},{"name":"Receiving No. Series.OnLookup","line":1762,"kind":"trigger","steps":[[1767,"event","OnBeforeLookupReceivingNoSeries",1],[1772,"call","GetPurchSetup",0],[1774,"ext","codeunit",310,"LookupRelatedNoSeries",2],[1775,"validate",38,"Receiving No. Series"]]},{"name":"Receiving No. Series.OnValidate","line":1779,"kind":"trigger","steps":[[1784,"event","OnBeforeValidateReceivingNoSeries",1],[1789,"call","GetPurchSetup",0],[1791,"ext","codeunit",310,"TestAreRelated",2]]},{"name":"Tax Area Code.OnValidate","line":1802,"kind":"trigger","steps":[[1804,"call","TestStatusOpen",0],[1805,"call","MessageIfPurchLinesExist",1]]},{"name":"Tax Liable.OnValidate","line":1813,"kind":"trigger","steps":[[1815,"call","TestStatusOpen",0],[1816,"call","MessageIfPurchLinesExist",1]]},{"name":"VAT Bus. Posting Group.OnValidate","line":1825,"kind":"trigger","steps":[[1827,"call","TestStatusOpen",0],[1831,"call","RecreatePurchLines",1]]},{"name":"Applies-to ID.OnValidate","line":1839,"kind":"trigger","steps":[[1852,"ext","codeunit",111,"SetApplId",3]]},{"name":"VAT Base Discount %.OnValidate","line":1865,"kind":"trigger","steps":[[1871,"call","GetHideValidationDialog",0],[1875,"event","OnValidateVATBaseDiscountOnBeforeConfirm",1],[1894,"event","OnValidateVATBaseAmountPercOnBeforeUpdatePurchAmountLines",1],[1896,"call","UpdatePurchAmountLines",0]]},{"name":"Send IC Document.OnValidate","line":1923,"kind":"trigger","steps":[[1928,"event","OnBeforeValidateSendICDocument",1]]},{"name":"Prepayment %.OnValidate","line":1996,"kind":"trigger","steps":[[2001,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Prepayment No. Series.OnLookup","line":2009,"kind":"trigger","steps":[[2014,"event","OnBeforeLookupPrepmtNoSeries",1],[2019,"call","GetPurchSetup",0],[2021,"ext","codeunit",310,"LookupRelatedNoSeries",2],[2021,"call","GetPostingPrepaymentNoSeriesCode",0],[2022,"validate",38,"Prepayment No. Series"]]},{"name":"Prepayment No. Series.OnValidate","line":2026,"kind":"trigger","steps":[[2031,"event","OnBeforeValidatePrepmtNoSeries",1],[2036,"call","GetPurchSetup",0],[2038,"ext","codeunit",310,"TestAreRelated",2],[2038,"call","GetPostingPrepaymentNoSeriesCode",0]]},{"name":"Prepmt. Cr. Memo No. Series.OnLookup","line":2059,"kind":"trigger","steps":[[2064,"event","OnBeforeLookupPrepmtCrMemoNoSeries",1],[2069,"call","GetPurchSetup",0],[2071,"ext","codeunit",310,"LookupRelatedNoSeries",2],[2071,"call","GetPostingPrepaymentNoSeriesCode",0],[2072,"validate",38,"Prepmt. Cr. Memo No. Series"]]},{"name":"Prepmt. Cr. Memo No. Series.OnValidate","line":2076,"kind":"trigger","steps":[[2081,"event","OnBeforeValidatePrepmtCrMemoNoSeries",1],[2086,"call","GetPurchSetup",0],[2088,"ext","codeunit",310,"TestAreRelated",2],[2088,"call","GetPostingPrepaymentNoSeriesCode",0]]},{"name":"Prepmt. Payment Terms Code.OnValidate","line":2108,"kind":"trigger","steps":[[2115,"call","IsCreditDocType",0],[2117,"event","OnValidatePrepmtPaymentTermsCodeOnCaseIfOnBeforeValidatePrepaymentDueDate",1],[2119,"validate",38,"Prepayment Due Date"],[2120,"validate",38,"Prepmt. Pmt. Discount Date"],[2121,"validate",38,"Prepmt. Payment Discount %"],[2124,"event","OnValidatePaymentTermsCodeOnBeforeCalcDueDate",1],[2128,"event","OnValidatePaymentTermsCodeOnBeforeCalcPmtDiscDate",1],[2132,"validate",38,"Prepmt. Payment Discount %"],[2136,"event","OnValidatePrepmtPaymentTermsCodeOnCaseElseOnBeforeValidatePrepaymentDueDate",1],[2138,"validate",38,"Prepayment Due Date"],[2140,"validate",38,"Prepmt. Pmt. Discount Date"],[2141,"validate",38,"Prepmt. Payment Discount %"]]},{"name":"Prepmt. Payment Discount %.OnValidate","line":2155,"kind":"trigger","steps":[[2160,"event","OnBeforeValidatePrepmtPaymentDiscountPercent",1],[2165,"call","TestStatusOpen",0],[2171,"validate",38,"VAT Base Discount %"]]},{"name":"Spend Request No..OnValidate","line":2181,"kind":"trigger","steps":[[2190,"ext","table",6840,"ValidateSpendRequest",2],[2194,"ext","codeunit",408,"GetCombinedDimensionSetID",3]]},{"name":"Job Queue Status.OnLookup","line":2216,"kind":"trigger","steps":[[2222,"ext","table",472,"ShowStatusMsg",1]]},{"name":"Incoming Document Entry No..OnValidate","line":2236,"kind":"trigger","steps":[[2243,"ext","table",130,"RemoveReferenceToWorkingDocument",1],[2245,"ext","table",130,"SetPurchDoc",1]]},{"name":"Journal Templ. Name.OnValidate","line":2269,"kind":"trigger","steps":[[2272,"call","TestNoSeries",0],[2273,"validate",38,"Posting No. Series"]]},{"name":"VAT Reporting Date.OnValidate","line":2282,"kind":"trigger","steps":[[2285,"call","InitVATDate",0]]},{"name":"Dimension Set ID.OnLookup","line":2324,"kind":"trigger","steps":[[2326,"call","ShowDocDim",0]]},{"name":"Dimension Set ID.OnValidate","line":2329,"kind":"trigger","steps":[[2331,"ext","codeunit",408,"UpdateGlobalDimFromDimSetID",3]]},{"name":"Campaign No..OnValidate","line":2370,"kind":"trigger","steps":[[2372,"call","UpdatePurchLinesByFieldNo",2],[2373,"call","CreateDimFromDefaultDim",1]]},{"name":"Buy-from Contact No..OnLookup","line":2382,"kind":"trigger","steps":[[2384,"call","BuyfromContactLookup",0]]},{"name":"Buy-from Contact No..OnValidate","line":2387,"kind":"trigger","steps":[[2391,"call","TestStatusOpen",0],[2395,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[2400,"call","ConfirmUpdateField",1],[2401,"call","InitFromContact",3],[2409,"call","CheckContactRelatedToVendorCompany",3],[2412,"call","UpdateBuyFromVend",1],[2414,"call","UpdateBuyFromVendorTemplateCode",0]]},{"name":"Pay-to Contact No..OnLookup","line":2423,"kind":"trigger","steps":[[2430,"event","OnBeforeLookupPayToContactNo",1],[2438,"ext","table",5054,"FindByRelation",2],[2447,"validate",38,"Pay-to Contact No."]]},{"name":"Pay-to Contact No..OnValidate","line":2451,"kind":"trigger","steps":[[2455,"call","TestStatusOpen",0],[2459,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[2464,"call","ConfirmUpdateField",1],[2465,"call","InitFromContact",3],[2474,"call","CheckContactRelatedToVendorCompany",3],[2477,"call","UpdatePayToVend",1]]},{"name":"Buy-from Vendor Templ. Code.OnValidate","line":2486,"kind":"trigger","steps":[[2490,"call","EnsureDocumentTypeIsQuote",0],[2491,"call","TestStatusOpen",0],[2497,"call","GetHideValidationDialog",0],[2503,"call","InitFromTemplate",2],[2512,"call","CopyFromNewBuyFromVendorTemplate",1],[2518,"call","RecreatePurchLines",1]]},{"name":"Pay-to Vendor Templ. Code.OnValidate","line":2526,"kind":"trigger","steps":[[2531,"call","TestStatusOpen",0],[2537,"call","GetHideValidationDialog",0],[2543,"call","InitFromTemplate",2],[2552,"call","InitFromPayToVendorTemplate",1],[2554,"call","CreateDimFromDefaultDim",1],[2560,"call","RecreatePurchLines",1]]},{"name":"Responsibility Center.OnValidate","line":2569,"kind":"trigger","steps":[[2571,"call","TestStatusOpen",0],[2572,"ext","codeunit",5700,"CheckRespCenter",2],[2575,"ext","codeunit",5700,"GetPurchasesFilter",0],[2577,"call","UpdateLocationCode",0],[2578,"call","UpdateInboundWhseHandlingTime",0],[2580,"call","UpdateShipToAddress",0],[2582,"call","CreateDimFromDefaultDim",1],[2585,"call","RecreatePurchLines",1]]},{"name":"Requested Receipt Date.OnValidate","line":2639,"kind":"trigger","steps":[[2644,"event","OnBeforeValidateRequestedReceiptDate",1],[2655,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Promised Receipt Date.OnValidate","line":2663,"kind":"trigger","steps":[[2668,"event","OnBeforeValidatePromisedReceiptDate",1],[2672,"call","TestStatusOpen",0],[2674,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Lead Time Calculation.OnValidate","line":2683,"kind":"trigger","steps":[[2685,"ext","codeunit",5404,"CheckLeadTimeIsNotNegative",1],[2688,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Inbound Whse. Handling Time.OnValidate","line":2697,"kind":"trigger","steps":[[2700,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"Return Shipment No. Series.OnLookup","line":2722,"kind":"trigger","steps":[[2727,"event","OnBeforeLookupReturnShipmentNoSeries",1],[2732,"call","GetPurchSetup",0],[2734,"ext","codeunit",310,"LookupRelatedNoSeries",2],[2735,"validate",38,"Return Shipment No. Series"]]},{"name":"Return Shipment No. Series.OnValidate","line":2739,"kind":"trigger","steps":[[2744,"event","OnBeforeValidateReturnShipmentNoSeries",1],[2749,"call","GetPurchSetup",0],[2751,"ext","codeunit",310,"TestAreRelated",2]]},{"name":"Receipt on Invoice.OnValidate","line":2771,"kind":"trigger","steps":[[2775,"ext","codeunit",5826,"ApplyReceiptOnInvoiceToLines",1]]},{"name":"Assigned User ID.OnValidate","line":2789,"kind":"trigger","steps":[[2791,"ext","codeunit",5700,"CheckRespCenter",3],[2794,"ext","codeunit",5700,"GetPurchasesFilter",1]]},{"name":"Doc. Amount Incl. VAT.OnValidate","line":2813,"kind":"trigger","steps":[[2824,"call","FindSuggestedPurchLine",1],[2827,"ext","table",4,"Initialize",1],[2829,"ext","codeunit",57,"CalculatePurchaseTotals",3],[2830,"call","UpdateDocAmountVAT",4]]},{"name":"Doc. Amount VAT.OnValidate","line":2840,"kind":"trigger","steps":[[2851,"call","FindSuggestedPurchLine",1],[2852,"ext","table",4,"Initialize",1],[2854,"ext","codeunit",57,"CalculatePurchaseTotals",3],[2855,"call","CalcDocAmountVAT",4],[2858,"call","CheckDifferenceInclVAT",3]]},{"name":"OnDelete","line":2917,"kind":"trigger","steps":[[2926,"event","OnBeforeOnDelete",1],[2930,"ext","codeunit",5700,"CheckRespCenter",2],[2933,"ext","codeunit",5700,"GetPurchasesFilter",0],[2935,"ext","codeunit",5063,"AutoArchivePurchDocument",1],[2936,"ext","codeunit",364,"DeleteHeader",7],[2939,"validate",38,"Applies-to ID"],[2940,"validate",38,"Incoming Document Entry No."],[2942,"call","DeleteRecordInApprovalRequest",0],[2945,"call","DeleteWarehouseRequest",0],[2950,"call","DeletePurchaseLines",0],[2952,"call","DeletePurchaseLines",0],[2956,"write",43,"DeleteAll"],[2961,"event","OnBeforeShowPostedDocsToPrintCreatedMsg",0]]},{"name":"OnInsert","line":2966,"kind":"trigger","steps":[[2970,"event","OnBeforeOnInsert",1],[2974,"call","InitInsert",0],[2977,"call","SetBuyFromVendorFromFilter",0],[2979,"call","GetFilterContNo",0],[2980,"validate",38,"Buy-from Contact No."],[2980,"call","GetFilterContNo",0],[2983,"call","SetDefaultPurchaser",0],[2986,"ext","codeunit",170,"CheckCreatePurchRecurringLines",1]]},{"name":"OnRename","line":2989,"kind":"trigger","steps":[[2994,"event","OnBeforeOnRename",1]]},{"name":"InitInsert","line":3167,"kind":"procedure","params":0,"steps":[[3174,"event","OnBeforeInitInsert",1],[3177,"call","TestNoSeries",0],[3178,"call","GetNoSeriesCode",0],[3180,"ext","codeunit",310,"AreRelated",2],[3182,"ext","codeunit",310,"GetNextNo",2],[3186,"ext","codeunit",310,"GetNextNo",2],[3189,"event","OnInitInsertOnBeforeInitRecord",0],[3190,"call","InitRecord",0]]},{"name":"InitRecord","line":3196,"kind":"procedure","params":0,"steps":[[3200,"call","GetPurchSetup",0],[3202,"event","OnBeforeInitRecord",1],[3206,"call","InitPostingNoSeries",0],[3222,"call","InitVATDate",0],[3224,"event","OnInitRecordOnAfterAssignDates",0],[3226,"call","ValidateEmptySellToCustomerAndLocation",0],[3228,"call","IsCreditDocType",0],[3233,"call","InitPostingDescription",0],[3235,"call","UpdateInboundWhseHandlingTime",0],[3238,"event","OnInitRecordOnBeforeAssignResponsibilityCenter",1],[3240,"ext","codeunit",5700,"GetRespCenter",2],[3241,"call","GetNextArchiveDocOccurrenceNo",0],[3243,"event","OnAfterInitRecord",0]]},{"name":"InitNoSeries","line":3246,"kind":"procedure","access":"local","params":0,"steps":[[3269,"event","OnAfterInitNoSeries",0]]},{"name":"InitPostingDescription","line":3275,"kind":"procedure","params":0,"steps":[[3280,"event","OnBeforeInitPostingDescription",1]]},{"name":"InitVATDate","line":3287,"kind":"procedure","access":"local","params":0,"steps":[[3289,"ext","table",98,"GetVATDate",2]]},{"name":"AssistEdit","line":3308,"kind":"procedure","params":1,"steps":[[3313,"event","OnBeforeAssistEdit",1],[3317,"call","GetPurchSetup",0],[3318,"call","TestNoSeries",0],[3319,"ext","codeunit",310,"LookupRelatedNoSeries",3],[3319,"call","GetNoSeriesCode",0],[3320,"ext","codeunit",310,"GetNextNo",1]]},{"name":"TestNoSeries","line":3328,"kind":"procedure","params":0,"steps":[[3332,"call","GetPurchSetup",0],[3334,"event","OnBeforeTestNoSeries",1],[3350,"ext","table",98,"GetRecordOnce",0],[3359,"ext","table",312,"GetRecordOnce",0],[3360,"call","IsCreditDocType",0],[3379,"event","OnAfterTestNoSeries",0]]},{"name":"GetNoSeriesCode","line":3386,"kind":"procedure","params":0,"steps":[[3391,"call","GetPurchSetup",0],[3393,"event","OnBeforeGetNoSeriesCode",1],[3411,"event","OnAfterGetNoSeriesCode",0],[3416,"ext","codeunit",310,"IsAutomatic",1],[3419,"ext","codeunit",310,"HasRelatedSeries",1],[3420,"ext","codeunit",310,"LookupRelatedNoSeries",2]]},{"name":"GetNextArchiveDocOccurrenceNo","line":3426,"kind":"procedure","access":"local","params":0,"steps":[[3432,"event","OnBeforeGetNextArchiveDocOccurrenceNo",1],[3437,"ext","codeunit",5063,"GetNextOccurrenceNo",3]]},{"name":"GetPostingNoSeriesCode","line":3440,"kind":"procedure","access":"local","params":0,"steps":[[3444,"call","GetPurchSetup",0],[3446,"event","OnBeforeGetPostingNoSeriesCode",1],[3450,"ext","table",98,"GetRecordOnce",0],[3452,"call","IsCreditDocType",0],[3461,"event","OnAfterGetPostingNoSeriesCode",0]]},{"name":"GetPostingPrepaymentNoSeriesCode","line":3464,"kind":"procedure","access":"local","params":0,"steps":[[3466,"call","IsCreditDocType",0],[3471,"event","OnAfterGetPrepaymentPostingNoSeriesCode",0]]},{"name":"ConfirmDeletion","line":3499,"kind":"procedure","params":0,"steps":[[3508,"event","OnBeforeConfirmDeletion",1],[3516,"ext","codeunit",364,"InitDeleteHeader",8],[3521,"ext","codeunit",27,"GetResponseOrDefault",2],[3524,"ext","codeunit",27,"GetResponseOrDefault",2],[3527,"ext","codeunit",27,"GetResponseOrDefault",2],[3530,"ext","codeunit",27,"GetResponseOrDefault",2],[3533,"ext","codeunit",27,"GetResponseOrDefault",2],[3536,"ext","codeunit",27,"GetResponseOrDefault",2]]},{"name":"GetPurchSetup","line":3541,"kind":"procedure","access":"local","params":0,"steps":[[3544,"event","OnAfterGetPurchSetup",0]]},{"name":"GetVend","line":3551,"kind":"procedure","params":1,"steps":[[3556,"event","OnBeforeGetVend",0]]},{"name":"GetStatusStyleText","line":3565,"kind":"procedure","params":0,"steps":[[3572,"event","OnAfterGetStatusStyleText",0]]},{"name":"PurchLinesExist","line":3579,"kind":"procedure","params":0,"steps":[[3585,"event","OnBeforePurchLinesExist",1]]},{"name":"LookupBuyFromContact","line":3605,"kind":"procedure","params":0,"steps":[[3613,"call","LookupContact",3],[3615,"validate",38,"Buy-from Contact No."],[3616,"event","OnLookupBuyFromContactOnAfterValidateBuyFromContactNo",0]]},{"name":"PerformManualRelease","line":3621,"kind":"procedure","params":1,"steps":[[3633,"ext","codeunit",1380,"BatchProcess",5]]},{"name":"PerformManualRelease","line":3638,"kind":"procedure","params":0,"steps":[[3643,"event","OnBeforePerformManualRelease",1],[3646,"ext","codeunit",415,"PerformManualRelease",1]]},{"name":"PerformManualReopen","line":3651,"kind":"procedure","params":1,"steps":[[3660,"ext","codeunit",1380,"BatchProcess",5]]},{"name":"RecreatePurchLines","line":3672,"kind":"procedure","params":1,"steps":[[3687,"event","OnRecreatePurchLinesOnBeforePurchLinesExists",1],[3691,"call","PurchLinesExist",0],[3695,"event","OnBeforeRecreatePurchLinesHandler",1],[3700,"event","OnRecreatePurchLinesOnBeforeConfirm",1],[3702,"call","GetHideValidationDialog",0],[3705,"call","HasItemChargeAssignment",0],[3709,"ext","codeunit",27,"GetResponseOrDefault",2],[3715,"write",38,"Modify"],[3716,"event","OnBeforeRecreatePurchLines",0],[3721,"event","OnRecreatePurchLinesOnAfterPurchLineSetFilters",0],[3723,"call","RecreateTempPurchLines",1],[3724,"call","StorePurchCommentLineToTemp",1],[3725,"call","DeletePurchCommentLines",0],[3727,"call","TransferItemChargeAssgntPurchToTemp",2],[3729,"call","DeletePurchLines",1],[3733,"event","OnRecreatePurchLinesOnBeforeTempPurchLineFindSet",0],[3737,"ext","table",39,"IsExtendedText",0],[3738,"event","OnRecreatePurchLinesOnAfterCalcShouldCreatePurchLines",0],[3743,"validate",39,"Type"],[3744,"event","OnRecreatePurchLinesOnAfterValidateType",0],[3749,"validate",39,"No."],[3751,"event","OnRecreatePurchLinesOnBeforeTransferSavedFields",1],[3756,"call","TransferSavedFieldsDropShipment",2],[3758,"call","TransferSavedFieldsSpecialOrder",2],[3760,"call","TransferSavedFields",2],[3764,"event","OnRecreatePurchLinesOnBeforeInsertPurchLine",0],[3765,"write",39,"Insert"],[3768,"event","OnAfterRecreatePurchLine",0],[3771,"call","RecreatePurchLinesFillItemChargeAssignment",3],[3776,"write",2000000026,"Insert"],[3780,"ext","codeunit",378,"PurchCheckIfAnyExtText",2],[3781,"ext","codeunit",378,"InsertPurchExtText",1],[3782,"event","OnAfterTransferExtendedTextForPurchaseLineRecreation",0],[3786,"call","RestorePurchCommentLine",3],[3787,"event","OnRecreatePurchLineOnAfterProcessAttachedToLineNo",0],[3790,"event","OnRecreatePurchLinesOnAfterProcessTempPurchLines",0],[3792,"call","RestorePurchCommentLine",3],[3794,"call","RecreateItemChargeAssgntPurch",3],[3797,"write",39,"DeleteAll"],[3798,"event","OnAfterDeleteAllTempPurchLines",0],[3803,"event","OnAfterRecreatePurchLines",0]]},{"name":"StorePurchCommentLineToTemp","line":3810,"kind":"procedure","params":1,"steps":[[3816,"event","OnBeforeStorePurchCommentLineToTemp",1],[3825,"write",43,"Insert"]]},{"name":"RestorePurchCommentLine","line":3835,"kind":"procedure","params":3,"steps":[[3846,"write",43,"Insert"]]},{"name":"RecreatePurchLinesFillItemChargeAssignment","line":3850,"kind":"procedure","access":"local","params":3,"steps":[[3852,"call","ClearItemAssgntPurchFilter",1],[3861,"write",5805,"Modify"]]},{"name":"RecreateItemChargeAssgntPurch","line":3867,"kind":"procedure","access":"local","params":3,"steps":[[3871,"call","ClearItemAssgntPurchFilter",1],[3882,"validate",5805,"Qty. to Assign"],[3883,"write",5805,"Insert"],[3885,"write",2000000026,"Delete"],[3889,"call","ClearItemAssgntPurchFilter",1],[3890,"write",5805,"DeleteAll"]]},{"name":"TransferSavedFields","line":3893,"kind":"procedure","access":"local","params":2,"steps":[[3895,"event","OnBeforeTransferSavedFields",0],[3897,"validate",39,"Unit of Measure Code"],[3898,"validate",39,"Variant Code"],[3899,"event","OnTransferSavedFieldsOnAfterSetVariantCode",0],[3900,"ext","table",39,"IsProdOrder",0],[3902,"validate",39,"VAT Prod. Posting Group"],[3903,"validate",39,"Gen. Prod. Posting Group"],[3904,"validate",39,"Expected Receipt Date"],[3905,"validate",39,"Requested Receipt Date"],[3906,"validate",39,"Qty. per Unit of Measure"],[3908,"call","TransferSavedJobFields",2],[3910,"validate",39,"Quantity"],[3912,"validate",39,"Direct Unit Cost"],[3914,"event","OnAfterTransferSavedFields",0]]},{"name":"TransferSavedJobFields","line":3917,"kind":"procedure","access":"local","params":2,"steps":[[3922,"event","OnBeforeTransferSavedJobFields",1],[3927,"validate",39,"Job No."],[3928,"validate",39,"Job Task No."]]},{"name":"TransferSavedFieldsDropShipment","line":3939,"kind":"procedure","params":2,"steps":[[3946,"event","OnBeforeTransferSavedFieldsDropShipment",1],[3954,"ext","codeunit",6620,"TransfldsFromSalesToPurchLine",2],[3960,"validate",39,"Inbound Whse. Handling Time"],[3961,"validate",37,"Unit Cost (LCY)"],[3964,"write",37,"Modify"]]},{"name":"TransferSavedFieldsSpecialOrder","line":3967,"kind":"procedure","access":"local","params":2,"steps":[[3974,"event","OnBeforeTransferSavedFieldsSpecialOrder",1],[3982,"ext","codeunit",6620,"TransfldsFromSalesToPurchLine",2],[3987,"validate",39,"Unit of Measure Code"],[3989,"validate",39,"Quantity"],[3991,"validate",37,"Unit Cost (LCY)"],[3994,"event","OnTransferSavedFieldsSpecialOrderOnBeforeSalesLineModify",0],[3995,"write",37,"Modify"]]},{"name":"MessageIfPurchLinesExist","line":4005,"kind":"procedure","params":1,"steps":[[4011,"event","OnBeforeMessageIfPurchLinesExist",1],[4015,"call","PurchLinesExist",0],[4015,"call","GetHideValidationDialog",0]]},{"name":"PriceMessageIfPurchLinesExist","line":4031,"kind":"procedure","params":1,"steps":[[4038,"event","OnBeforePriceMessageIfPurchLinesExist",1],[4042,"call","PurchLinesExist",0],[4042,"call","GetHideValidationDialog",0],[4048,"ext","codeunit",27,"GetResponseOrDefault",2],[4050,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"UpdateCurrencyFactor","line":4064,"kind":"procedure","access":"local","params":1,"steps":[[4069,"event","OnBeforeUpdateCurrencyFactor",0],[4078,"event","OnUpdateCurrencyFactorOnAfterCurrencyDateSet",0],[4080,"ext","codeunit",1281,"ExchangeRatesForCurrencyExist",2],[4081,"ext","table",330,"ExchangeRate",2],[4083,"call","RecreatePurchLines",1],[4085,"ext","codeunit",1281,"ShowMissingExchangeRatesNotification",1],[4089,"call","RecreatePurchLines",1],[4092,"event","OnAfterUpdateCurrencyFactor",0],[4092,"call","GetHideValidationDialog",0]]},{"name":"ConfirmCurrencyFactorUpdate","line":4099,"kind":"procedure","params":0,"steps":[[4104,"event","OnBeforeConfirmUpdateCurrencyFactor",0],[4105,"call","GetHideValidationDialog",0],[4109,"event","OnConfirmCurrencyFactorUpdateOnBeforeConfirm",1],[4114,"validate",38,"Currency Factor"],[4117,"event","OnAfterConfirmUpdateCurrencyFactor",0]]},{"name":"UpdateLocationCode","line":4147,"kind":"procedure","params":1,"steps":[[4152,"event","OnBeforeUpdateLocationCode",1],[4154,"validate",38,"Location Code"],[4154,"ext","codeunit",5700,"GetLocation",3]]},{"name":"UpdatePurchLines","line":4164,"kind":"procedure","params":2,"steps":[[4174,"call","UpdatePurchLinesByFieldNo",2],[4176,"event","OnAfterUpdatePurchLines",0]]},{"name":"UpdatePurchAmountLines","line":4179,"kind":"procedure","access":"local","params":0,"steps":[[4185,"event","OnBeforeUpdatePurchLineAmounts",1],[4196,"write",38,"Modify"],[4198,"ext","table",39,"UpdateAmounts",0],[4199,"write",39,"Modify"]]},{"name":"UpdatePurchLinesByFieldNo","line":4211,"kind":"procedure","params":2,"steps":[[4220,"event","OnBeforeUpdatePurchLinesByFieldNo",1],[4224,"call","PurchLinesExist",0],[4239,"event","OnUpdatePurchLinesByFieldNoOnAfterCalcShouldConfirmReservationDateConflict",0],[4241,"call","ConfirmReservationDateConflict",1],[4248,"event","OnUpdatePurchLinesByFieldNoOnBeforeModifyRec",0],[4249,"write",38,"Modify"],[4254,"event","OnUpdatePurchLinesByFieldNoOnAfterPurchLineSetFilters",0],[4259,"event","OnUpdatePurchLinesByFieldNoOnBeforeValidateFields",1],[4264,"validate",39,"Expected Receipt Date"],[4267,"validate",39,"Direct Unit Cost"],[4269,"validate",39,"Transaction Type"],[4271,"validate",39,"Transport Method"],[4273,"validate",39,"Entry Point"],[4275,"validate",39,"Area"],[4277,"validate",39,"Transaction Specification"],[4280,"validate",39,"Requested Receipt Date"],[4283,"validate",39,"Prepayment %"],[4286,"validate",39,"Promised Receipt Date"],[4289,"validate",39,"Lead Time Calculation"],[4292,"validate",39,"Inbound Whse. Handling Time"],[4295,"validate",39,"Deferral Code"],[4298,"validate",39,"Order Date"],[4299,"ext","table",39,"UpdateDirectUnitCost",1],[4303,"ext","table",39,"UpdateDirectUnitCost",1],[4305,"event","OnUpdatePurchLinesByChangedFieldName",0],[4307,"event","OnUpdatePurchLinesByFieldNoOnBeforeLineModify",0],[4308,"write",39,"Modify",1],[4309,"ext","codeunit",99000834,"VerifyChange",2],[4312,"event","OnAfterUpdatePurchLinesByFieldNo",0]]},{"name":"ConfirmReservationDateConflict","line":4330,"kind":"procedure","params":1,"steps":[[4337,"event","OnBeforeConfirmResvDateConflict",1],[4341,"ext","codeunit",99000831,"ResvExistsForPurchHeader",1],[4342,"ext","codeunit",27,"GetResponseOrDefault",2]]},{"name":"CreateDim","line":4353,"kind":"procedure","params":1,"steps":[[4360,"event","OnBeforeCreateDim",1],[4370,"ext","codeunit",408,"GetRecDefaultDimID",8],[4373,"event","OnCreateDimOnBeforeUpdateLines",0],[4375,"call","GetHideValidationDialog",0],[4376,"call","CouldDimensionsBeKept",0],[4377,"call","ConfirmKeepExistingDimensions",1],[4379,"ext","codeunit",408,"UpdateGlobalDimFromDimSetID",3],[4382,"event","OnCreateDimOnAfterConfirmKeepExisting",0],[4384,"call","PurchLinesExist",0],[4385,"write",38,"Modify"],[4386,"call","UpdateAllLineDim",2]]},{"name":"ConfirmKeepExistingDimensions","line":4391,"kind":"procedure","access":"local","params":1,"steps":[[4396,"event","OnBeforeConfirmKeepExistingDimensions",1]]},{"name":"CouldDimensionsBeKept","line":4407,"kind":"procedure","params":0,"steps":[[4412,"event","OnBeforeCouldDimensionsBeKept",1],[4430,"event","OnAfterCouldDimensionsBeKept",0]]},{"name":"ValidateShortcutDimCode","line":4441,"kind":"procedure","params":2,"steps":[[4447,"event","OnBeforeValidateShortcutDimCode",1],[4452,"ext","codeunit",408,"ValidateShortcutDimValues",3],[4454,"write",38,"Modify"],[4457,"event","OnValidateShortcutDimCodeOnBeforeUpdateAllLineDim",0],[4459,"write",38,"Modify"],[4460,"call","PurchLinesExist",0],[4461,"call","UpdateAllLineDim",2],[4464,"event","OnAfterValidateShortcutDimCode",0]]},{"name":"ValidateDocumentDateWithPostingDate","line":4467,"kind":"procedure","access":"local","params":0,"steps":[[4472,"event","OnBeforeValidateDocumentDateWithPostingDate",1],[4476,"validate",38,"Document Date"]]},{"name":"UpdateShipToAddress","line":4513,"kind":"procedure","params":0,"steps":[[4518,"event","OnBeforeUpdateShipToAddress",1],[4522,"call","IsCreditDocType",0],[4523,"event","OnAfterUpdateShipToAddress",0],[4528,"call","SetShipToAddress",8],[4533,"event","OnUpdateShipToAddressOnAfterCopyFromLocation",0],[4539,"call","SetShipToAddress",8],[4545,"event","OnUpdateShipToAddressOnAfterCopyFromCompany",0],[4548,"event","OnAfterUpdateShipToAddress",0]]},{"name":"DeletePurchaseLines","line":4551,"kind":"procedure","access":"local","params":0,"steps":[[4557,"event","OnBeforeDeletePurchaseLines",1],[4562,"ext","codeunit",99000845,"DeleteDocumentReservation",4],[4563,"call","GetHideValidationDialog",0],[4565,"ext","table",39,"SuspendStatusCheck",1],[4566,"write",39,"Delete",1]]},{"name":"DeleteRecordInApprovalRequest","line":4571,"kind":"procedure","access":"local","params":0,"steps":[[4576,"event","OnBeforeDeleteRecordInApprovalRequest",1],[4580,"ext","codeunit",1535,"OnDeleteRecordInApprovalRequest",1]]},{"name":"CheckReceiptInfo","line":4591,"kind":"procedure","access":"local","params":2,"steps":[[4596,"event","OnBeforeCheckReceiptInfo",1]]},{"name":"CheckShipToCodeChange","line":4656,"kind":"procedure","access":"local","params":2,"steps":[[4661,"event","OnBeforeCheckShipToCodeChange",1]]},{"name":"CheckSpecialOrderSalesLineLink","line":4674,"kind":"procedure","access":"local","params":0,"steps":[[4679,"event","OnBeforeCheckSpecialOrderSalesLineLink",1]]},{"name":"CheckShipToCode","line":4691,"kind":"procedure","access":"local","params":1,"steps":[[4696,"event","OnBeforeCheckShipToCode",1]]},{"name":"UpdateBuyFromCont","line":4710,"kind":"procedure","params":1,"steps":[[4717,"ext","codeunit",1630,"GetContact",2],[4718,"call","SetHideValidationDialog",1],[4719,"call","UpdateBuyFromVend",1],[4720,"call","SetHideValidationDialog",1],[4726,"ext","table",5054,"GetContactNo",2],[4732,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[4734,"event","OnAfterUpdateBuyFromCont",0]]},{"name":"UpdatePayToCont","line":4752,"kind":"procedure","access":"local","params":1,"steps":[[4762,"ext","table",5054,"GetContactNo",2],[4768,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[4770,"event","OnAfterUpdatePayToCont",0]]},{"name":"UpdateBuyFromVend","line":4773,"kind":"procedure","access":"local","params":1,"steps":[[4784,"event","OnUpdateBuyFromVendOnAfterGetContact",0],[4800,"ext","table",5054,"FindByContact",2],[4803,"ext","table",5054,"FindByContact",2],[4812,"validate",38,"Buy-from Vendor No."],[4817,"call","GetContactAsCompany",2],[4822,"call","SetShipToAddress",8],[4827,"validate",38,"Buy-from Vendor Templ. Code"],[4827,"ext","table",5050,"FindNewVendorTemplate",0],[4829,"call","ContactIsNotRelatedToVendorError",2],[4833,"event","OnCheckBuyFromContactOnAfterFindByContact",0],[4835,"call","UpdateBuyFromVendContact",2],[4840,"call","GetContactAsCompany",2],[4842,"call","GetContactAsCompany",2],[4855,"validate",38,"Pay-to Contact No."],[4857,"event","OnAfterUpdateBuyFromVend",0]]},{"name":"UpdatePayToVend","line":4860,"kind":"procedure","access":"local","params":1,"steps":[[4871,"event","OnUpdatePayToVendOnAfterGetContact",0],[4886,"event","OnUpdatePayToVendOnBeforeFindByContact",0],[4888,"ext","table",5054,"FindByContact",2],[4891,"ext","table",5054,"FindByContact",2],[4896,"validate",38,"Pay-to Vendor No."],[4903,"call","GetContactAsCompany",2],[4915,"validate",38,"Currency Code"],[4920,"validate",38,"Pay-to Vendor Templ. Code"],[4920,"ext","table",5050,"FindNewVendorTemplate",0],[4922,"call","ContactIsNotRelatedToVendorError",2],[4924,"event","OnAfterUpdatePayToVend",0]]},{"name":"ContactIsNotRelatedToVendorError","line":4927,"kind":"procedure","access":"local","params":2,"steps":[[4932,"event","OnBeforeContactIsNotRelatedToVendorError",1]]},{"name":"CreateInvtPutAwayPick","line":4942,"kind":"procedure","params":0,"steps":[[4957,"run","report",7323]]},{"name":"ShowDocDim","line":4964,"kind":"procedure","params":0,"steps":[[4970,"event","OnBeforeShowDocDim",1],[4976,"ext","codeunit",408,"EditDimensionSet",5],[4979,"event","OnShowDocDimOnAfterSetDimensionSetID",0],[4982,"event","OnShowDocDimOnBeforePurchHeaderModify",0],[4983,"write",38,"Modify"],[4984,"call","PurchLinesExist",0],[4985,"call","UpdateAllLineDim",2]]},{"name":"UpdateAllLineDim","line":4994,"kind":"procedure","params":2,"steps":[[5004,"event","OnBeforeUpdateAllLineDim",1],[5010,"call","GetHideValidationDialog",0],[5012,"event","OnUpdateAllLineDimOnBeforeConfirmUpdateAllLineDim",0],[5013,"ext","codeunit",27,"GetResponseOrDefault",2],[5020,"event","OnUpdateAllLineDimOnAfterPurchLineSetFilters",0],[5024,"event","OnUpdateAllLineDimOnBeforeGetPurchLineNewDimsetID",0],[5025,"ext","codeunit",408,"GetDeltaDimSetID",3],[5026,"event","OnUpdateAllLineDimOnAfterGetPurchLineNewDimsetID",0],[5031,"call","GetHideValidationDialog",0],[5032,"call","VerifyReceivedShippedItemLineDimChange",1],[5034,"ext","codeunit",408,"UpdateGlobalDimFromDimSetID",3],[5037,"event","OnUpdateAllLineDimOnBeforePurchLineModify",0],[5038,"write",39,"Modify"]]},{"name":"VerifyReceivedShippedItemLineDimChange","line":5043,"kind":"procedure","access":"local","params":1,"steps":[[5045,"ext","table",39,"IsReceivedShippedItemDimChanged",0],[5047,"ext","table",39,"ConfirmReceivedShippedItemDimChange",0]]},{"name":"SetAmountToApply","line":5059,"kind":"procedure","params":2,"steps":[[5063,"event","OnBeforeSetAmountToApply",0],[5072,"event","OnSetAmountToApplyAfterOnCalcRemainingAmount",0],[5078,"run","codeunit",113]]},{"name":"SetShipToForSpecOrder","line":5086,"kind":"procedure","params":0,"steps":[[5090,"call","SetShipToAddress",8],[5099,"call","SetShipToAddress",8],[5108,"event","OnAfterSetShipToForSpecOrder",0]]},{"name":"JobUpdatePurchLines","line":5111,"kind":"procedure","access":"local","params":1,"steps":[[5117,"ext","table",39,"SetPurchHeader",1],[5119,"call","JobUpdatePurchaseLine",1]]},{"name":"JobUpdatePurchaseLine","line":5124,"kind":"procedure","access":"local","params":1,"steps":[[5129,"event","OnBeforeJobUpdatePurchaseLine",1],[5134,"ext","table",39,"JobSetCurrencyFactor",0],[5135,"ext","table",39,"CreateTempJobJnlLine",1],[5136,"ext","table",39,"UpdateJobPrices",0],[5137,"write",39,"Modify"]]},{"name":"GetPstdDocLinesToReverse","line":5144,"kind":"procedure","params":0,"steps":[[5150,"event","OnBeforeGetPstdDocLinesToReverse",1],[5154,"call","GetVend",1],[5155,"ext","page",5855,"SetToPurchHeader",1],[5159,"ext","page",5855,"CopyLineToDoc",0],[5163,"event","OnAfterGetPstdDocLinesToReverse",0]]},{"name":"SetSecurityFilterOnRespCenter","line":5174,"kind":"procedure","params":0,"steps":[[5179,"event","OnBeforeSetSecurityFilterOnRespCenter",1],[5180,"ext","codeunit",5700,"GetPurchasesFilter",0],[5182,"ext","codeunit",5700,"GetPurchasesFilter",0],[5187,"event","OnAfterSetSecurityFilterOnRespCenter",0]]},{"name":"CalcInvDiscForHeader","line":5193,"kind":"procedure","params":0,"steps":[[5199,"event","OnBeforeCalcInvDiscForHeader",1],[5203,"call","GetPurchSetup",0],[5205,"ext","codeunit",70,"CalculateIncDiscForHeader",1]]},{"name":"AddShipToAddress","line":5215,"kind":"procedure","params":2,"steps":[[5246,"call","SetShipToAddress",8],[5255,"event","OnAfterAddShipToAddress",0]]},{"name":"BuyFromPostCodeOnBeforeLookupHandled","line":5258,"kind":"procedure","access":"local","params":0,"steps":[[5260,"event","OnBeforeBuyFromPostCodeOnBeforeLookupHandled",1]]},{"name":"CopyAddressInfoFromOrderAddress","line":5263,"kind":"procedure","access":"local","params":0,"steps":[[5270,"event","OnCopyAddressInfoFromOrderAddressOnBeforeCopyBuyFromVendorAddressFieldsFromOrderAddress",1],[5283,"call","IsCreditDocType",0],[5284,"call","SetShipToAddress",8],[5290,"event","OnAfterCopyAddressInfoFromOrderAddress",0]]},{"name":"CheckDropShipmentLineExists","line":5326,"kind":"procedure","access":"local","params":0,"steps":[[5332,"event","OnBeforeCheckDropShipmentLineExists",1]]},{"name":"QtyToReceiveIsZero","line":5346,"kind":"procedure","params":0,"steps":[[5352,"event","OnQtyToReceiveIsZeroOnAfterSetFilters",0]]},{"name":"IsApprovedForPosting","line":5361,"kind":"procedure","params":0,"steps":[[5366,"ext","codeunit",1535,"PrePostApprovalCheckPurch",1],[5367,"call","TestPurchasePrepayment",0],[5370,"ext","codeunit",441,"TestPurchasePayment",1],[5372,"event","OnIsApprovedForPostingOnBeforeError",1],[5376,"event","OnAfterIsApprovedForPosting",0]]},{"name":"IsApprovedForPostingBatch","line":5385,"kind":"procedure","params":0,"steps":[[5387,"call","ApprovedForPostingBatch",0],[5388,"event","OnAfterIsApprovedForPostingBatch",0]]},{"name":"ApprovedForPostingBatch","line":5392,"kind":"procedure","access":"local","params":0,"steps":[[5396,"ext","codeunit",1535,"PrePostApprovalCheckPurch",1],[5397,"call","TestPurchasePrepayment",0],[5398,"ext","codeunit",441,"TestPurchasePayment",1]]},{"name":"IsTotalValid","line":5411,"kind":"procedure","params":0,"steps":[[5421,"event","OnBeforeIsTotalValid",1],[5444,"event","OnBeforeCheckIsTotalValid",1],[5449,"ext","codeunit",57,"PurchaseCalculateTotalsWithInvoiceRounding",3]]},{"name":"SendToPosting","line":5463,"kind":"procedure","params":1,"steps":[[5471,"event","OnBeforeSendToPosting",1],[5475,"call","IsApprovedForPosting",0],[5479,"ext","codeunit",28,"Activate",1],[5480,"ext","codeunit",28,"PushContext",4],[5484,"call","DeleteWarehouseRequest",0],[5485,"ext","codeunit",29,"ShowErrors",0]]},{"name":"DeleteWarehouseRequest","line":5489,"kind":"procedure","access":"local","params":0,"steps":[[5495,"write",5765,"DeleteAll",1]]},{"name":"CancelBackgroundPosting","line":5501,"kind":"procedure","params":0,"steps":[[5505,"ext","codeunit",98,"CancelQueueEntry",1]]},{"name":"GetDocTypeTxt","line":5512,"kind":"procedure","params":0,"steps":[[5516,"ext","codeunit",452,"GetFullDocumentTypeText",1]]},{"name":"AddSpecialOrderToAddress","line":5525,"kind":"procedure","params":2,"steps":[[5531,"event","OnBeforeAddSpecialOrderToAddress",1],[5536,"call","PurchLinesExist",0],[5538,"ext","table",38,"SetShipToForSpecOrder",0],[5556,"call","SetShipToForSpecOrder",0],[5558,"event","OnAfterAddSpecialOrderToAddress",0]]},{"name":"CreateDimSetForPrepmtAccDefaultDim","line":5579,"kind":"procedure","params":0,"steps":[[5587,"event","OnBeforeCreateDimSetForPrepmtAccDefaultDim",1],[5596,"call","CollectParamsInBufferForCreateDimSet",2],[5602,"call","InitPurchaseLineDefaultDimSource",2],[5603,"event","OnCreateDimSetForPrepmtAccDefaultDimOnBeforeTempPurchaseLineCreateDim",0],[5604,"ext","table",39,"CreateDim",1]]},{"name":"InitPurchaseLineDefaultDimSource","line":5608,"kind":"procedure","access":"local","params":2,"steps":[[5614,"event","OnBeforeInitPurchaseLineDefaultDimSource",1],[5618,"ext","codeunit",408,"AddDimSource",3],[5619,"ext","codeunit",408,"AddDimSource",3],[5620,"ext","codeunit",408,"AddDimSource",3],[5622,"event","OnAfterInitPurchaseLineDefaultDimSource",0]]},{"name":"CollectParamsInBufferForCreateDimSet","line":5625,"kind":"procedure","access":"local","params":2,"steps":[[5637,"event","CollectParamsInBufferForCreateDimSetOnBeforeInsertTempPurchaseLineInBuffer",0],[5638,"call","InsertTempPurchaseLineInBuffer",4],[5644,"event","OnCollectParamsInBufferForCreateDimSetOnAfterSetTempPurchLineFilters",0],[5646,"call","InsertTempPurchaseLineInBuffer",4]]},{"name":"InsertTempPurchaseLineInBuffer","line":5650,"kind":"procedure","access":"local","params":4,"steps":[[5662,"event","OnInsertTempPurchLineInBufferOnBeforeTempPurchLineInsert",0],[5663,"write",39,"Insert"]]},{"name":"TransferItemChargeAssgntPurchToTemp","line":5671,"kind":"procedure","params":2,"steps":[[5676,"event","OnBeforeTransferItemChargeAssgntPurchToTemp",1],[5685,"write",5805,"Insert"],[5687,"write",5805,"DeleteAll"]]},{"name":"PrepareOpeningDocumentStatistics","line":5695,"kind":"procedure","params":0,"steps":[[5705,"call","CalcInvDiscForHeader",0],[5706,"call","IsOrderDocument",0],[5707,"call","CreateDimSetForPrepmtAccDefaultDim",0],[5709,"event","OnAfterPrepareOpeningDocumentStatistics",0]]},{"name":"CheckPurchasePostRestrictions","line":5734,"kind":"procedure","params":0,"steps":[[5736,"event","OnCheckPurchasePostRestrictions",0]]},{"name":"CheckPurchaseReleaseRestrictions","line":5747,"kind":"procedure","params":0,"steps":[[5751,"event","OnCheckPurchaseReleaseRestrictions",0],[5752,"ext","codeunit",1535,"PrePostApprovalCheckPurch",1]]},{"name":"SetStatus","line":5759,"kind":"procedure","params":1,"steps":[[5762,"write",38,"Modify"]]},{"name":"TriggerOnAfterPostPurchaseDoc","line":5773,"kind":"procedure","params":5,"steps":[[5777,"ext","codeunit",90,"OnAfterPostPurchaseDoc",7]]},{"name":"ConfirmUpdateDeferralDate","line":5796,"kind":"procedure","access":"local","params":0,"steps":[[5798,"call","GetHideValidationDialog",0],[5803,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"ConfirmUpdateField","line":5806,"kind":"procedure","access":"local","params":1,"steps":[[5811,"event","OnBeforeConfirmUpdateField",1],[5815,"call","GetHideValidationDialog",0],[5818,"call","GetUpdatedFieldCaption",1]]},{"name":"IsCreditDocType","line":5847,"kind":"procedure","params":0,"steps":[[5852,"event","OnBeforeIsCreditDocType",0]]},{"name":"SetBuyFromVendorFromFilter","line":5863,"kind":"procedure","params":0,"steps":[[5867,"call","GetFilterVendNo",0],[5870,"call","GetFilterVendNo",0],[5875,"validate",38,"Buy-from Vendor No."],[5878,"event","OnAfterSetBuyFromVendorFromFilter",0]]},{"name":"HasBuyFromAddress","line":5907,"kind":"procedure","params":0,"steps":[[5912,"event","OnBeforeHasBuyFromAddress",1]]},{"name":"HasShipToAddress","line":5940,"kind":"procedure","params":0,"steps":[[5945,"event","OnBeforeHasShipToAddress",1]]},{"name":"HasPayToAddress","line":5975,"kind":"procedure","params":0,"steps":[[5980,"event","OnBeforeHasPayToAddress",1]]},{"name":"CopyBuyFromVendorAddressFieldsFromVendor","line":6018,"kind":"procedure","access":"local","params":2,"steps":[[6020,"call","BuyFromVendorIsReplaced",0],[6020,"call","ShouldCopyAddressFromBuyFromVendor",1],[6028,"event","OnAfterCopyBuyFromVendorAddressFieldsFromVendor",0]]},{"name":"CopyShipToVendorAddressFieldsFromVendor","line":6032,"kind":"procedure","access":"local","params":2,"steps":[[6034,"call","BuyFromVendorIsReplaced",0],[6034,"call","HasShipToAddress",0],[6040,"validate",38,"Ship-to Country/Region Code"],[6042,"event","OnAfterCopyShipToVendorAddressFieldsFromVendor",0]]},{"name":"CopyPayToVendorAddressFieldsFromVendor","line":6046,"kind":"procedure","access":"local","params":2,"steps":[[6048,"call","PayToVendorIsReplaced",0],[6048,"call","ShouldCopyAddressFromPayToVendor",1],[6056,"event","OnAfterCopyPayToVendorAddressFieldsFromVendor",0]]},{"name":"ShouldCopyAddressFromBuyFromVendor","line":6083,"kind":"procedure","access":"local","params":1,"steps":[[6085,"call","HasBuyFromAddress",0],[6085,"ext","table",23,"HasAddress",0]]},{"name":"ShouldCopyAddressFromPayToVendor","line":6088,"kind":"procedure","access":"local","params":1,"steps":[[6090,"call","HasPayToAddress",0],[6090,"ext","table",23,"HasAddress",0]]},{"name":"ShouldSearchForVendorByName","line":6098,"kind":"procedure","params":1,"steps":[[6104,"event","OnBeforeShouldSearchForVendorByName",1],[6111,"call","GetPurchSetup",0]]},{"name":"CopyBuyFromAddressToPayToAddress","line":6135,"kind":"procedure","params":0,"steps":[[6144,"event","OnAfterCopyBuyFromAddressToPayToAddress",0]]},{"name":"UpdatePayToAddressFromBuyFromAddress","line":6148,"kind":"procedure","access":"local","params":1,"steps":[[6150,"call","PayToAddressEqualsOldBuyFromAddress",0],[6176,"event","OnAfterUpdatePayToAddressFromBuyFromAddress",0]]},{"name":"PayToAddressEqualsOldBuyFromAddress","line":6179,"kind":"procedure","access":"local","params":0,"steps":[[6187,"event","OnAfterPayToAddressEqualsOldBuyFromAddress",0]]},{"name":"ConfirmCloseUnposted","line":6194,"kind":"procedure","params":0,"steps":[[6200,"event","OnBeforeConfirmCloseUnposted",1],[6204,"call","PurchLinesExist",0],[6205,"ext","codeunit",1330,"IsUnpostedEnabledForRecord",1],[6206,"ext","codeunit",1330,"ShowConfirm",2],[6206,"ext","codeunit",1330,"QueryPostOnCloseCode",0]]},{"name":"InitFromPurchHeader","line":6214,"kind":"procedure","params":1,"steps":[[6223,"call","SetShipToAddress",8],[6230,"event","OnInitFromPurchHeader",0]]},{"name":"InitFromVendor","line":6233,"kind":"procedure","access":"local","params":2,"steps":[[6240,"event","OnInitFromVendorOnBeforeInit",0],[6243,"event","OnInitFromVendorOnBeforeInitRecord",0],[6244,"call","InitRecord",0],[6245,"call","InitNoSeries",0],[6249,"event","OnAfterInitFromVendor",0]]},{"name":"InitFromContact","line":6252,"kind":"procedure","access":"local","params":3,"steps":[[6259,"event","OnInitFromContactOnBeforeInit",0],[6261,"call","GetPurchSetup",0],[6263,"event","OnInitFromContactOnBeforeInitRecord",0],[6264,"call","InitRecord",0],[6265,"call","InitNoSeries",0]]},{"name":"LookupContact","line":6270,"kind":"procedure","access":"local","params":3,"steps":[[6274,"ext","table",5054,"FindByRelation",2]]},{"name":"BuyfromContactLookup","line":6286,"kind":"procedure","params":0,"steps":[[6293,"event","OnBeforeLookupBuyFromContactNo",1],[6301,"ext","table",5054,"FindByRelation",2],[6311,"validate",38,"Buy-from Contact No."]]},{"name":"SendRecords","line":6325,"kind":"procedure","params":0,"steps":[[6333,"event","OnBeforeSendRecords",1],[6337,"call","CheckMixedDropShipment",0],[6338,"event","OnSendRecordsOnAfterCheckMixedDropShipment",0],[6340,"call","GetReportSelectionsUsageFromDocumentType",2],[6343,"event","OnSendRecordsOnBeforeSendVendorRecords",1],[6345,"ext","table",60,"SendVendorRecords",7]]},{"name":"PrintRecords","line":6357,"kind":"procedure","params":1,"steps":[[6364,"event","OnBeforePrintRecords",1],[6368,"call","CheckMixedDropShipment",0],[6369,"event","OnPrintRecordsOnAfterCheckMixedDropShipment",0],[6372,"event","OnPrintRecordsOnBeforeTrySendToPrinterVendor",1],[6374,"ext","table",60,"TrySendToPrinterVendor",4]]},{"name":"SendProfile","line":6387,"kind":"procedure","params":1,"steps":[[6394,"event","OnBeforeSendProfile",1],[6398,"call","CheckMixedDropShipment",0],[6399,"call","GetReportSelectionsUsageFromDocumentType",2],[6401,"event","OnSendProfileOnBeforeSendVendor",1],[6403,"ext","table",60,"SendVendor",7]]},{"name":"CheckMixedDropShipment","line":6408,"kind":"procedure","access":"local","params":0,"steps":[[6410,"call","HasMixedDropShipment",0]]},{"name":"HasMixedDropShipment","line":6414,"kind":"procedure","access":"local","params":0,"steps":[[6420,"event","OnBeforeHasMixedDropShipment",1],[6435,"ext","table",39,"IsInventoriableItem",0]]},{"name":"SetDefaultPurchaser","line":6442,"kind":"procedure","access":"local","params":0,"steps":[[6448,"event","OnBeforeSetDefaultPurchaser",1],[6452,"call","GetUserSetupPurchaserCode",0],[6455,"ext","table",13,"VerifySalesPersonPurchaserPrivacyBlocked",1],[6456,"validate",38,"Purchaser Code"]]},{"name":"GetUserSetupPurchaserCode","line":6463,"kind":"procedure","params":0,"steps":[[6469,"event","OnBeforeGetUserSetupPurchaserCode",1]]},{"name":"InitPostingNoSeries","line":6479,"kind":"procedure","params":0,"steps":[[6483,"ext","table",98,"GetRecordOnce",0],[6486,"call","IsCreditDocType",0],[6496,"call","IsCreditDocType",0],[6504,"ext","codeunit",310,"IsAutomatic",1],[6506,"ext","codeunit",310,"IsAutomatic",1],[6509,"ext","codeunit",310,"IsAutomatic",1],[6511,"ext","codeunit",310,"IsAutomatic",1],[6520,"ext","codeunit",310,"IsAutomatic",1],[6523,"ext","codeunit",310,"IsAutomatic",1],[6528,"ext","codeunit",310,"IsAutomatic",1],[6530,"ext","codeunit",310,"IsAutomatic",1],[6538,"ext","codeunit",310,"IsAutomatic",1],[6541,"ext","codeunit",310,"IsAutomatic",1],[6546,"event","OnAfterInitPostingNoSeries",0]]},{"name":"SetShipToCodeEmpty","line":6549,"kind":"procedure","access":"local","params":0,"steps":[[6554,"event","OnBeforeSetShipToCodeEmpty",1],[6558,"validate",38,"Ship-to Code"]]},{"name":"OnAfterValidateBuyFromVendorNo","line":6567,"kind":"procedure","params":2,"steps":[[6573,"call","SelectDefaultRemitAddress",1]]},{"name":"SelectDefaultRemitAddress","line":6580,"kind":"procedure","params":1,"steps":[[6588,"validate",38,"Remit-to Code"]]},{"name":"BatchConfirmUpdateDeferralDate","line":6601,"kind":"procedure","params":5,"steps":[[6607,"call","DeferralHeadersExist",0],[6618,"call","ConfirmUpdateDeferralDate",0],[6625,"call","UpdatePurchLinesByFieldNo",2]]},{"name":"BatchConfirmUpdatePostingDate","line":6630,"kind":"procedure","params":3,"steps":[[6636,"call","DeferralHeadersExist",0],[6641,"validate",38,"Currency Code"],[6645,"call","SetReplaceDocumentDate",0],[6646,"validate",38,"Document Date"]]},{"name":"ModifyPayToVendorAddress","line":6663,"kind":"procedure","access":"local","params":0,"steps":[[6669,"event","OnBeforeModifyPayToVendorAddress",1],[6673,"call","GetPurchSetup",0],[6676,"call","IsCreditDocType",0],[6679,"call","HasPayToAddress",0],[6679,"call","HasDifferentPayToAddress",1],[6680,"call","ShowModifyAddressNotification",7],[6680,"call","GetModifyPayToVendorAddressNotificationId",0]]},{"name":"ModifyVendorAddress","line":6686,"kind":"procedure","access":"local","params":0,"steps":[[6692,"event","OnBeforeModifyVendorAddress",1],[6696,"call","GetPurchSetup",0],[6699,"call","IsCreditDocType",0],[6701,"call","HasBuyFromAddress",0],[6701,"call","HasDifferentBuyFromAddress",1],[6702,"call","ShowModifyAddressNotification",7],[6702,"call","GetModifyVendorAddressNotificationId",0]]},{"name":"ShowModifyAddressNotification","line":6708,"kind":"procedure","access":"local","params":7,"steps":[[6714,"ext","table",1518,"IsEnabled",1],[6726,"ext","codeunit",1511,"SendNotification",2]]},{"name":"RecallModifyAddressNotification","line":6736,"kind":"procedure","params":1,"steps":[[6741,"call","IsCreditDocType",0],[6741,"ext","table",1518,"IsEnabled",1]]},{"name":"SetModifyVendorAddressNotificationDefaultState","line":6801,"kind":"procedure","params":0,"steps":[[6805,"ext","table",1518,"InsertDefault",4],[6805,"call","GetModifyVendorAddressNotificationId",0]]},{"name":"SetModifyPayToVendorAddressNotificationDefaultState","line":6816,"kind":"procedure","params":0,"steps":[[6820,"ext","table",1518,"InsertDefault",4],[6820,"call","GetModifyPayToVendorAddressNotificationId",0]]},{"name":"SetShowExternalDocAlreadyExistNotificationDefaultState","line":6828,"kind":"procedure","params":1,"steps":[[6832,"ext","table",1518,"InsertDefault",4],[6832,"call","GetShowExternalDocAlreadyExistNotificationId",0]]},{"name":"DontNotifyCurrentUserAgain","line":6840,"kind":"procedure","params":1,"steps":[[6844,"ext","table",1518,"Disable",1],[6846,"call","GetModifyVendorAddressNotificationId",0],[6847,"ext","table",1518,"InsertDefault",4],[6849,"call","GetModifyPayToVendorAddressNotificationId",0],[6850,"ext","table",1518,"InsertDefault",4]]},{"name":"HasDifferentBuyFromAddress","line":6855,"kind":"procedure","access":"local","params":1,"steps":[[6864,"event","OnAfterHasDifferentBuyFromAddress",0]]},{"name":"HasDifferentPayToAddress","line":6867,"kind":"procedure","access":"local","params":1,"steps":[[6876,"event","OnAfterHasDifferentPayToAddress",0]]},{"name":"SetWarnZeroQuantityPurchasePosting","line":6885,"kind":"procedure","params":0,"steps":[[6889,"ext","table",1518,"InsertDefault",4],[6889,"call","GetWarnWhenZeroQuantityPurchaseLinePosting",0]]},{"name":"FindPostedDocumentWithSameExternalDocNo","line":6899,"kind":"procedure","params":2,"steps":[[6903,"ext","codeunit",1312,"SetFilterForExternalDocNo",5],[6904,"call","GetGenJnlDocumentType",0]]},{"name":"FilterPartialReceived","line":6914,"kind":"procedure","params":0,"steps":[[6928,"call","HasReceivedLines",0]]},{"name":"FilterPartialInvoiced","line":6945,"kind":"procedure","params":0,"steps":[[6959,"call","HasInvoicedLines",0]]},{"name":"ShowExternalDocAlreadyExistNotification","line":6992,"kind":"procedure","access":"local","params":1,"steps":[[6999,"ext","table",1518,"IsEnabled",1],[6999,"call","GetShowExternalDocAlreadyExistNotificationId",0],[7002,"ext","codeunit",1330,"CreateMissingMyNotificationsWithDefaultState",1],[7002,"call","GetShowExternalDocAlreadyExistNotificationId",0],[7004,"call","IsDocAlreadyExistNotificationEnabled",0],[7007,"call","GetShowExternalDocAlreadyExistNotificationId",0],[7015,"ext","codeunit",1511,"SendNotificationWithAdditionalContext",3],[7016,"call","GetShowExternalDocAlreadyExistNotificationId",0]]},{"name":"RecallExternalDocAlreadyExistsNotification","line":7034,"kind":"procedure","access":"local","params":0,"steps":[[7038,"call","IsDocAlreadyExistNotificationEnabled",0],[7041,"ext","codeunit",1511,"RecallNotificationsForRecordWithAdditionalContext",3],[7042,"call","GetShowExternalDocAlreadyExistNotificationId",0]]},{"name":"IsDocAlreadyExistNotificationEnabled","line":7050,"kind":"procedure","params":0,"steps":[[7054,"ext","codeunit",1330,"IsMyNotificationEnabled",1],[7054,"call","GetShowExternalDocAlreadyExistNotificationId",0]]},{"name":"ShipToAddressEqualsCompanyShipToAddress","line":7062,"kind":"procedure","params":0,"steps":[[7067,"call","IsShipToAddressEqualToCompanyShipToAddress",2]]},{"name":"IsShipToAddressEqualToCompanyShipToAddress","line":7070,"kind":"procedure","access":"local","params":2,"steps":[[7082,"event","OnAfterIsShipToAddressEqualToCompanyShipToAddress",0]]},{"name":"BuyFromAddressEqualsShipToAddress","line":7089,"kind":"procedure","params":0,"steps":[[7100,"event","OnAfterBuyFromAddressEqualsShipToAddress",0]]},{"name":"BuyFromAddressEqualsPayToAddress","line":7107,"kind":"procedure","params":0,"steps":[[7119,"event","OnAfterBuyFromAddressEqualsPayToAddress",0]]},{"name":"SetPurchaserCode","line":7122,"kind":"procedure","access":"local","params":2,"steps":[[7127,"event","OnBeforeSetPurchaserCode",1],[7132,"call","GetUserSetupPurchaserCode",0],[7134,"ext","table",13,"VerifySalesPersonPurchaserPrivacyBlocked",1]]},{"name":"ValidatePurchaserOnPurchHeader","line":7148,"kind":"procedure","params":3,"steps":[[7152,"ext","table",13,"VerifySalesPersonPurchaserPrivacyBlocked",1],[7156,"ext","table",13,"GetPrivacyBlockedTransactionText",3],[7162,"ext","table",13,"GetPrivacyBlockedGenericText",2]]},{"name":"GetReportSelectionsUsageFromDocumentType","line":7168,"kind":"procedure","access":"local","params":2,"steps":[[7174,"ext","codeunit",452,"GetFullDocumentTypeText",1],[7192,"event","OnAfterGetReportSelectionsUsageFromDocumentType",0]]},{"name":"ValidateEmptySellToCustomerAndLocation","line":7221,"kind":"procedure","params":0,"steps":[[7226,"event","OnBeforeValidateEmptySellToCustomerAndLocation",1],[7228,"validate",38,"Sell-to Customer No."],[7231,"call","GetVend",1],[7232,"call","UpdateLocationCode",1],[7235,"event","OnAfterValidateEmptySellToCustomerAndLocation",0]]},{"name":"CheckForBlockedLines","line":7241,"kind":"procedure","params":0,"steps":[[7273,"ext","table",156,"CheckResourcePrivacyBlocked",1]]},{"name":"TestStatusIsNotPendingApproval","line":7284,"kind":"procedure","params":0,"steps":[[7288,"event","OnTestStatusIsNotPendingApproval",0]]},{"name":"TestStatusIsNotPendingPrepayment","line":7295,"kind":"procedure","params":0,"steps":[[7299,"event","OnTestStatusIsNotPendingPrepayment",0]]},{"name":"TestStatusIsNotReleased","line":7306,"kind":"procedure","params":0,"steps":[[7310,"event","OnTestStatusIsNotReleased",0]]},{"name":"TestStatusOpen","line":7319,"kind":"procedure","params":0,"steps":[[7321,"event","OnBeforeTestStatusOpen",0],[7328,"event","OnAfterTestStatusOpen",0]]},{"name":"UpdateInboundWhseHandlingTime","line":7350,"kind":"procedure","params":0,"steps":[[7360,"event","OnAfterUpdateInboundWhseHandlingTime",0]]},{"name":"GetFullDocTypeTxt","line":7367,"kind":"procedure","params":0,"steps":[[7371,"event","OnBeforeGetFullDocTypeTxt",1]]},{"name":"LookupPostCode","line":7379,"kind":"procedure","access":"local","params":5,"steps":[[7384,"ext","table",225,"LookupPostCode",4],[7385,"event","OnLookupPostCode",0]]},{"name":"CopyDocument","line":7394,"kind":"procedure","params":0,"steps":[[7400,"event","OnBeforeCopyDocument",1],[7404,"ext","report",492,"SetPurchHeader",1]]},{"name":"CheckContactRelatedToVendorCompany","line":7408,"kind":"procedure","access":"local","params":3,"steps":[[7415,"event","OnBeforeCheckContactRelatedToVendorCompany",1],[7420,"ext","table",5054,"FindByRelation",2]]},{"name":"CheckBlockedVendOnDocs","line":7425,"kind":"procedure","access":"local","params":1,"steps":[[7430,"event","OnBeforeCheckBlockedVendOnDocs",1],[7434,"ext","table",23,"CheckBlockedVendOnDocs",2]]},{"name":"LookupBuyFromVendorName","line":7442,"kind":"procedure","params":1,"steps":[[7454,"ext","table",23,"SelectVendor",1],[7460,"ext","codeunit",109,"SaveRecord",1]]},{"name":"LookupPayToVendorName","line":7470,"kind":"procedure","params":1,"steps":[[7482,"ext","table",23,"SelectVendor",1],[7488,"ext","codeunit",109,"SaveRecord",1]]},{"name":"CheckVendorPostingGroupChange","line":7493,"kind":"procedure","access":"local","params":0,"steps":[[7500,"event","OnBeforeCheckVendorPostingGroupChange",1],[7507,"call","GetPurchSetup",0]]},{"name":"RecreateTempPurchLines","line":7523,"kind":"procedure","params":1,"steps":[[7526,"call","TestPurchLineFieldsBeforeRecreate",0],[7530,"write",39,"Modify"],[7532,"event","OnRecreatePurchLinesOnBeforeTempPurchLineInsert",0],[7533,"call","IsServiceChargeLine",1],[7534,"write",39,"Insert"],[7535,"event","OnRecreateTempPurchLinesOnAfterTempPurchLineInsert",0]]},{"name":"IsServiceChargeLine","line":7539,"kind":"procedure","access":"local","params":1,"steps":[[7543,"ext","table",39,"IsServiceCharge",0]]},{"name":"TestPurchLineFieldsBeforeRecreate","line":7547,"kind":"procedure","access":"local","params":0,"steps":[[7554,"event","OnBeforeTestPurchLineFieldsBeforeRecreate",1],[7564,"ext","codeunit",5826,"IsLineMatched",2],[7569,"event","OnRecreatePurchLinesOnDropShipmentSpecialOrder",1],[7579,"call","CheckShipToCode",1]]},{"name":"DeletePurchCommentLines","line":7588,"kind":"procedure","params":0,"steps":[[7594,"event","OnBeforeDeletePurchCommentLines",1],[7598,"ext","table",43,"DeleteComments",2]]},{"name":"DeletePurchLines","line":7608,"kind":"procedure","params":1,"steps":[[7613,"event","OnBeforeDeletePurchLines",1],[7617,"write",39,"DeleteAll",1]]},{"name":"UpdatePrepmtAmounts","line":7646,"kind":"procedure","access":"local","params":1,"steps":[[7650,"ext","table",4,"Initialize",1]]},{"name":"CreateDimensionsFromValidatePayToVendorNo","line":7671,"kind":"procedure","access":"local","params":0,"steps":[[7676,"event","OnBeforeCreateDimensionsFromValidatePayToVendorNo",1],[7680,"call","CreateDimFromDefaultDim",1]]},{"name":"CreateDimFromDefaultDim","line":7687,"kind":"procedure","params":1,"steps":[[7691,"call","InitDefaultDimensionSources",2],[7692,"call","CreateDim",1]]},{"name":"InitDefaultDimensionSources","line":7695,"kind":"procedure","access":"local","params":2,"steps":[[7697,"ext","codeunit",408,"AddDimSource",4],[7698,"ext","codeunit",408,"AddDimSource",4],[7699,"ext","codeunit",408,"AddDimSource",4],[7700,"ext","codeunit",408,"AddDimSource",4],[7701,"ext","codeunit",408,"AddDimSource",4],[7702,"ext","codeunit",408,"AddDimSource",4],[7704,"event","OnAfterInitDefaultDimensionSources",0]]},{"name":"PurchaseLinesEditable","line":7721,"kind":"procedure","params":0,"steps":[[7728,"event","OnAfterPurchaseLinesEditable",0]]},{"name":"GetQtyReservedFromStockState","line":7731,"kind":"procedure","access":"internal","params":0,"steps":[[7736,"ext","codeunit",99000834,"GetReservedQtyFromInventory",1],[7740,"call","CalculateReservableOutstandingQuantityBase",0]]},{"name":"TestPurchasePrepayment","line":7760,"kind":"procedure","params":0,"steps":[[7764,"ext","codeunit",441,"TestPurchasePrepayment",1]]},{"name":"UpdateDocAmountVAT","line":7813,"kind":"procedure","access":"local","params":4,"steps":[[7815,"call","CalcDocAmountVAT",4]]},{"name":"SendICPurchaseDoc","line":7818,"kind":"procedure","params":1,"steps":[[7824,"ext","codeunit",1535,"PrePostApprovalCheckPurch",1],[7825,"ext","codeunit",427,"SendPurchDoc",2]]},{"name":"UpdatePurchaseOrderLineIfExist","line":7829,"kind":"procedure","params":0,"steps":[[7841,"event","OnBeforeUpdatePurchaseOrderLineIfExist",1],[7845,"ext","codeunit",1313,"UpdatePurchaseOrderLineIfExist",1]]},{"name":"CheckVendorCreated","line":7870,"kind":"procedure","access":"internal","params":1,"steps":[[7879,"ext","codeunit",27,"GetResponseOrDefault",2],[7885,"call","GetContact",2],[7887,"call","CreateVendorFromBuyFromVendorTemplate",1],[7895,"call","GetContact",2],[7897,"call","CreateVendorFromPayToVendorTemplate",1]]},{"name":"SelectPurchaseHeaderNewVendorTemplate","line":7914,"kind":"procedure","access":"internal","params":0,"steps":[[7923,"ext","table",5050,"ContactToVendBusinessRelationExist",0],[7924,"ext","codeunit",27,"GetResponse",2],[7927,"ext","table",5050,"LookupNewVendorTemplate",0]]},{"name":"CreateVendorFromBuyFromVendorTemplate","line":7931,"kind":"procedure","access":"local","params":1,"steps":[[7933,"ext","table",5050,"CreateVendorFromTemplate",1]]},{"name":"CreateVendorFromPayToVendorTemplate","line":7936,"kind":"procedure","access":"local","params":1,"steps":[[7938,"ext","table",5050,"CreateVendorFromTemplate",1]]},{"name":"InitFromTemplate","line":7952,"kind":"procedure","access":"local","params":2,"steps":[[7964,"call","GetPurchSetup",0],[7966,"call","InitRecord",0],[7967,"call","InitNoSeries",0]]},{"name":"CopyFromNewBuyFromVendorTemplate","line":7973,"kind":"procedure","access":"local","params":1,"steps":[[7975,"ext","codeunit",9178,"IsSalesTaxEnabled",0],[7981,"validate",38,"Pay-to Vendor Templ. Code"]]},{"name":"InitFromPayToVendorTemplate","line":7984,"kind":"procedure","access":"local","params":1,"steps":[[7989,"validate",38,"Payment Terms Code"],[7990,"validate",38,"Payment Method Code"]]},{"name":"UpdateBuyFromVendorTemplateCode","line":8007,"kind":"procedure","access":"local","params":0,"steps":[[8009,"call","GetFilterContNo",0],[8010,"validate",38,"Buy-from Vendor Templ. Code"],[8010,"call","SelectPurchaseHeaderNewVendorTemplate",0]]},{"name":"GetContactDetails","line":8020,"kind":"procedure","params":2,"steps":[[8022,"ext","table",5050,"GetOrClear",1],[8023,"ext","table",5050,"GetOrClear",1]]}]}