{"title":"Codeunit 30161 Shpfy Import Order, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30161-shpfy-import-order/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":"codeunit","id":30161,"name":"Shpfy Import Order","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30161-shpfy-import-order/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30161-shpfy-import-order/source/","path":"src/Apps/W1/Shopify/App/src/Order handling/Codeunits/ShpfyImportOrder.Codeunit.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:30103":{"name":"Shpfy Communication Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/30103-shpfy-communication-mgt/"},"table:30102":{"name":"Shpfy Shop","url":"https://jonas-paprotka.de/ref/table/30102-shpfy-shop/"},"codeunit:30163":{"name":"Shpfy Order Mapping","url":"https://jonas-paprotka.de/ref/codeunit/30163-shpfy-order-mapping/"},"table:30118":{"name":"Shpfy Order Header","url":"https://jonas-paprotka.de/ref/table/30118-shpfy-order-header/"},"table:30119":{"name":"Shpfy Order Line","url":"https://jonas-paprotka.de/ref/table/30119-shpfy-order-line/"},"codeunit:30162":{"name":"Shpfy Order Events","url":"https://jonas-paprotka.de/ref/codeunit/30162-shpfy-order-events/"},"codeunit:30160":{"name":"Shpfy Order Fulfillments","url":"https://jonas-paprotka.de/ref/codeunit/30160-shpfy-order-fulfillments/"},"table:30122":{"name":"Shpfy Order Tax Line","url":"https://jonas-paprotka.de/ref/table/30122-shpfy-order-tax-line/"},"codeunit:30157":{"name":"Shpfy Json Helper","url":"https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/"},"table:30114":{"name":"Shpfy Data Capture","url":"https://jonas-paprotka.de/ref/table/30114-shpfy-data-capture/"},"codeunit:30156":{"name":"Shpfy Hash","url":"https://jonas-paprotka.de/ref/codeunit/30156-shpfy-hash/"},"codeunit:30238":{"name":"Shpfy Fulfillment Orders API","url":"https://jonas-paprotka.de/ref/codeunit/30238-shpfy-fulfillment-orders-api/"},"codeunit:30191":{"name":"Shpfy Shipping Charges","url":"https://jonas-paprotka.de/ref/codeunit/30191-shpfy-shipping-charges/"},"codeunit:30194":{"name":"Shpfy Transactions","url":"https://jonas-paprotka.de/ref/codeunit/30194-shpfy-transactions/"},"codeunit:30250":{"name":"Shpfy Returns API","url":"https://jonas-paprotka.de/ref/codeunit/30250-shpfy-returns-api/"},"codeunit:30228":{"name":"Shpfy Refunds API","url":"https://jonas-paprotka.de/ref/codeunit/30228-shpfy-refunds-api/"},"table:30116":{"name":"Shpfy Order Attribute","url":"https://jonas-paprotka.de/ref/table/30116-shpfy-order-attribute/"},"table:30149":{"name":"Shpfy Order Line Attribute","url":"https://jonas-paprotka.de/ref/table/30149-shpfy-order-line-attribute/"},"codeunit:30170":{"name":"Shpfy Order Risks","url":"https://jonas-paprotka.de/ref/codeunit/30170-shpfy-order-risks/"}},"procs":[{"name":"OnRun","line":21,"kind":"trigger","steps":[[23,"call","ImportOrderAndCreateOrUpdate",2]]},{"name":"SetShop","line":26,"kind":"procedure","access":"internal","params":1,"steps":[[32,"ext","codeunit",30103,"SetShop",1]]},{"name":"ReimportExistingOrderConfirmIfConflicting","line":36,"kind":"procedure","access":"internal","params":1,"steps":[[43,"ext","table",30102,"GetShopSettings",0],[45,"write",30102,"Modify"],[48,"call","ImportOrderAndCreateOrUpdate",2],[50,"ext","codeunit",30163,"DoMapping",1]]},{"name":"ImportCreateAndUpdateOrderHeaderFromMock","line":53,"kind":"procedure","access":"internal","params":3,"steps":[[58,"call","EnsureOrderHeaderExists",3],[59,"call","SetOrderHeaderValuesFromJson",3],[61,"call","SetAndCreateRelatedRecords",2],[62,"write",30118,"Modify"]]},{"name":"ImportCreateAndUpdateOrderLinesFromMock","line":65,"kind":"procedure","access":"internal","params":2,"steps":[[71,"call","SetAndInsertOrderLines",4],[76,"write",30119,"Insert"]]},{"name":"ImportOrderAndCreateOrUpdate","line":91,"kind":"procedure","access":"local","params":2,"steps":[[104,"call","SetShop",1],[107,"call","EnsureOrderHeaderExists",3],[109,"call","RetrieveOrderHeaderJson",3],[112,"call","RetrieveAndSetOrderLines",3],[113,"call","GetExchangeItemLineIds",2],[115,"ext","table",30118,"IsProcessed",0],[117,"call","IsImportedOrderConflictingExistingOrder",4],[118,"call","SetOrderAsConflicting",1],[120,"call","SetOrderHeaderValuesFromJson",3],[123,"call","SetAndCreateRelatedRecords",2],[124,"write",30118,"Modify"],[125,"ext","codeunit",30162,"OnAfterImportShopifyOrderHeader",2],[126,"call","InsertOrderLinesAndRelatedRecords",4],[128,"write",30118,"Modify"],[129,"ext","codeunit",30160,"GetFulfillments",2],[131,"call","MarkExchangeItemOrderLines",2],[132,"call","ConsiderRefundsInQuantityAndAmounts",1],[133,"call","DeleteZeroQuantityLines",1],[135,"call","CheckToCloseOrder",1],[136,"call","CloseOrder",1],[138,"call","ShopifyInvoiceExists",1],[139,"call","MarkAsProcessed",1],[141,"ext","codeunit",30162,"OnAfterCreateShopifyOrderAndLines",2]]},{"name":"MarkAsProcessed","line":151,"kind":"procedure","access":"local","params":1,"steps":[[153,"validate",30118,"Processed"],[154,"write",30118,"Modify"]]},{"name":"InsertOrderLinesAndRelatedRecords","line":157,"kind":"procedure","access":"local","params":4,"steps":[[177,"call","UpdateLocationIdAndDeliveryMethodOnOrderLine",1],[178,"write",30119,"Modify"],[182,"call","UpdateLocationIdAndDeliveryMethodOnOrderLine",1],[183,"write",30119,"Insert"],[184,"ext","table",30122,"ImportFromJson",2],[184,"ext","codeunit",30157,"GetJsonArray",2],[185,"call","ImportCustomAttributtes",3],[185,"ext","codeunit",30157,"GetJsonArray",2],[187,"ext","table",30114,"Add",3],[189,"ext","codeunit",30156,"CalcHash",1]]},{"name":"EnsureOrderHeaderExists","line":192,"kind":"procedure","access":"local","params":3,"steps":[[198,"write",30118,"Insert"]]},{"name":"DeleteZeroQuantityLines","line":202,"kind":"procedure","access":"local","params":1,"steps":[[208,"write",30119,"DeleteAll"]]},{"name":"ConsiderRefundsInQuantityAndAmounts","line":211,"kind":"procedure","access":"internal","params":1,"steps":[[230,"ext","table",30118,"IsProcessed",0],[231,"call","SetOrderAsConflicting",1],[236,"ext","table",30118,"IsProcessed",0],[237,"call","SetOrderAsConflicting",1],[243,"write",30119,"Modify"],[250,"ext","codeunit",30162,"OnAfterConsiderRefundsInQuantityAndAmounts",3],[252,"write",30118,"Modify"]]},{"name":"MarkExchangeItemOrderLines","line":255,"kind":"procedure","access":"internal","params":2,"steps":[[268,"write",30119,"Modify"]]},{"name":"GetExchangeItemLineIds","line":273,"kind":"procedure","access":"local","params":2,"steps":[[293,"call","ConvertToOrderReturnStatus",1],[293,"ext","codeunit",30157,"GetValueAsText",2],[300,"ext","codeunit",30103,"ExecuteGraphQL",2],[302,"ext","codeunit",30157,"GetJsonArray",2],[304,"ext","codeunit",30157,"GetValueAsText",2],[306,"ext","codeunit",30157,"GetValueAsText",2],[309,"ext","codeunit",30157,"GetJsonArray",2],[311,"ext","codeunit",30157,"GetJsonArray",2],[313,"ext","codeunit",30103,"GetIdOfGId",1],[313,"ext","codeunit",30157,"GetValueAsText",2],[319,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"IsImportedOrderConflictingExistingOrder","line":322,"kind":"procedure","access":"internal","params":4,"steps":[[341,"ext","codeunit",30157,"GetValueAsDecimal",2],[347,"ext","codeunit",30156,"CalcHash",1],[352,"ext","codeunit",30157,"GetValueAsDecimal",2]]},{"name":"SetAndCreateRelatedRecords","line":356,"kind":"procedure","access":"local","params":2,"steps":[[366,"ext","table",30122,"ImportFromJson",2],[366,"ext","codeunit",30157,"GetJsonArray",2],[367,"ext","table",30118,"SetWorkDescription",1],[367,"ext","codeunit",30157,"GetValueAsText",2],[368,"call","ImportCustomAttributtes",2],[368,"ext","codeunit",30157,"GetJsonArray",2],[369,"ext","table",30118,"UpdateTags",1],[369,"ext","codeunit",30157,"GetArrayAsText",2],[370,"call","ImportRisks",2],[370,"ext","codeunit",30157,"GetJsonArray",2],[371,"ext","codeunit",30238,"GetShopifyFulfillmentOrdersFromShopifyOrder",2],[372,"ext","codeunit",30191,"UpdateShippingCostInfos",1],[373,"ext","codeunit",30194,"UpdateTransactionInfos",1],[376,"ext","codeunit",30250,"GetReturns",2],[376,"ext","codeunit",30157,"GetJsonObject",2],[378,"ext","codeunit",30228,"GetRefunds",1],[378,"ext","codeunit",30157,"GetJsonArray",2]]},{"name":"RetrieveOrderHeaderJson","line":395,"kind":"procedure","access":"local","params":3,"steps":[[402,"ext","table",30114,"Add",3]]},{"name":"RetrieveOrderHeaderJson","line":406,"kind":"procedure","access":"local","params":2,"steps":[[416,"ext","codeunit",30103,"ExecuteGraphQL",2],[417,"ext","codeunit",30157,"GetJsonObject",3]]},{"name":"RetrieveOrderLinesJson","line":420,"kind":"procedure","access":"local","params":5,"steps":[[434,"ext","codeunit",30103,"ExecuteGraphQL",2],[435,"ext","codeunit",30157,"GetJsonObject",3],[436,"ext","codeunit",30157,"GetValueAsText",2],[437,"ext","codeunit",30157,"GetValueAsBoolean",2],[439,"ext","codeunit",30157,"GetJsonArray",3]]},{"name":"SetNewOrderHeaderValuesFromJson","line":442,"kind":"procedure","access":"local","params":2,"steps":[[460,"ext","codeunit",30157,"GetValueAsBigInteger",2],[469,"ext","codeunit",30157,"GetValueIntoField",4],[470,"ext","codeunit",30157,"GetValueIntoField",4],[471,"ext","codeunit",30157,"GetValueIntoField",4],[472,"ext","codeunit",30157,"GetValueAsText",2],[475,"ext","codeunit",30157,"GetValueIntoField",4],[476,"ext","codeunit",30157,"GetValueAsText",2],[479,"ext","codeunit",30157,"GetValueIntoField",4],[480,"ext","codeunit",30157,"GetValueIntoField",4],[481,"ext","codeunit",30157,"GetValueIntoField",4],[482,"ext","codeunit",30157,"GetValueIntoField",4],[483,"ext","codeunit",30157,"GetValueIntoField",4],[484,"ext","codeunit",30157,"GetValueIntoField",4],[485,"ext","codeunit",30157,"GetValueIntoField",4],[487,"ext","codeunit",30103,"GetIdOfGId",1],[487,"ext","codeunit",30157,"GetValueAsText",2],[488,"call","SetSalespersonOnOrderHeader",3],[491,"ext","codeunit",30157,"GetValueAsText",2],[492,"ext","codeunit",30157,"GetValueAsText",2],[493,"ext","codeunit",30157,"GetValueAsText",2],[495,"ext","codeunit",30157,"GetValueAsText",2],[497,"ext","codeunit",30157,"GetValueAsText",2],[500,"call","GetName",3],[501,"call","GetName2",3],[502,"call","GetContactName",3],[503,"ext","codeunit",30157,"GetValueIntoField",4],[504,"ext","codeunit",30157,"GetValueIntoField",4],[505,"ext","codeunit",30157,"GetValueIntoField",4],[506,"ext","codeunit",30157,"GetValueIntoField",4],[507,"ext","codeunit",30157,"GetValueIntoField",4],[508,"ext","codeunit",30157,"GetJsonObject",2],[509,"ext","codeunit",30157,"GetValueIntoField",4],[511,"ext","codeunit",30157,"GetValueAsText",2],[516,"ext","codeunit",30157,"GetValueAsText",2],[518,"ext","codeunit",30157,"GetValueAsText",2],[520,"ext","codeunit",30157,"GetValueAsText",2],[526,"ext","codeunit",30157,"GetValueAsText",2],[527,"ext","codeunit",30157,"GetValueAsText",2],[528,"ext","codeunit",30157,"GetValueAsText",2],[530,"ext","codeunit",30157,"GetValueAsText",2],[532,"ext","codeunit",30157,"GetValueAsText",2],[535,"call","GetName",3],[536,"call","GetName2",3],[537,"call","GetContactName",3],[538,"ext","codeunit",30157,"GetValueIntoField",4],[539,"ext","codeunit",30157,"GetValueIntoField",4],[540,"ext","codeunit",30157,"GetValueIntoField",4],[541,"ext","codeunit",30157,"GetValueIntoField",4],[542,"ext","codeunit",30157,"GetValueIntoField",4],[543,"ext","codeunit",30157,"GetJsonObject",2],[544,"ext","codeunit",30157,"GetValueIntoField",4],[545,"ext","codeunit",30157,"GetValueIntoField",4],[546,"ext","codeunit",30157,"GetValueIntoField",4],[548,"ext","codeunit",30157,"GetValueAsText",2],[554,"ext","codeunit",30157,"GetValueAsText",2],[555,"ext","codeunit",30157,"GetValueAsText",2],[556,"ext","codeunit",30157,"GetValueAsText",2],[558,"ext","codeunit",30157,"GetValueAsText",2],[560,"ext","codeunit",30157,"GetValueAsText",2],[563,"call","GetName",3],[564,"call","GetName2",3],[565,"call","GetContactName",3],[566,"ext","codeunit",30157,"GetValueIntoField",4],[567,"ext","codeunit",30157,"GetValueIntoField",4],[568,"ext","codeunit",30157,"GetValueIntoField",4],[569,"ext","codeunit",30157,"GetValueIntoField",4],[570,"ext","codeunit",30157,"GetValueIntoField",4],[571,"ext","codeunit",30157,"GetJsonObject",2],[572,"ext","codeunit",30157,"GetValueIntoField",4],[574,"ext","codeunit",30157,"GetValueAsText",2],[580,"ext","codeunit",30157,"GetJsonObject",3],[581,"ext","codeunit",30157,"GetJsonObject",3],[582,"ext","codeunit",30103,"GetIdOfGId",1],[582,"ext","codeunit",30157,"GetValueAsText",2],[584,"ext","codeunit",30103,"GetIdOfGId",1],[584,"ext","codeunit",30157,"GetValueAsText",2],[586,"ext","codeunit",30157,"GetValueIntoField",4],[587,"ext","codeunit",30157,"GetValueIntoField",4],[588,"ext","codeunit",30157,"GetValueIntoField",4],[590,"ext","codeunit",30157,"GetValueIntoField",4],[592,"ext","codeunit",30157,"GetJsonObject",3],[593,"ext","codeunit",30103,"GetIdOfGId",1],[593,"ext","codeunit",30157,"GetValueAsText",2],[599,"ext","codeunit",30157,"GetJsonObject",3],[600,"ext","codeunit",30103,"GetIdOfGId",1],[600,"ext","codeunit",30157,"GetValueAsText",2],[602,"ext","codeunit",30157,"GetValueIntoField",4],[606,"call","TranslateCurrencyCode",1],[607,"call","TranslateCurrencyCode",1]]},{"name":"SetEditableOrderHeaderValuesFromJson","line":618,"kind":"procedure","access":"local","params":2,"steps":[[624,"ext","codeunit",30157,"GetValueIntoField",4],[625,"ext","codeunit",30157,"GetValueIntoField",4],[626,"ext","codeunit",30157,"GetValueIntoField",4],[627,"ext","codeunit",30157,"GetValueIntoField",4],[628,"ext","codeunit",30157,"GetValueIntoField",4],[629,"ext","codeunit",30157,"GetValueIntoField",4],[630,"ext","codeunit",30157,"GetValueIntoField",4],[631,"ext","codeunit",30157,"GetValueIntoField",4],[632,"ext","codeunit",30157,"GetValueIntoField",4],[633,"ext","codeunit",30157,"GetValueIntoField",4],[634,"ext","codeunit",30157,"GetValueIntoField",4],[635,"ext","codeunit",30157,"GetValueIntoField",4],[636,"ext","codeunit",30157,"GetValueIntoField",4],[637,"ext","codeunit",30157,"GetValueIntoField",4],[638,"ext","codeunit",30157,"GetValueIntoField",4],[639,"ext","codeunit",30157,"GetValueIntoField",4],[640,"ext","codeunit",30157,"GetValueIntoField",4],[641,"ext","codeunit",30157,"GetValueIntoField",4],[642,"ext","codeunit",30157,"GetValueIntoField",4],[643,"ext","codeunit",30157,"GetValueIntoField",4],[644,"ext","codeunit",30157,"GetValueIntoField",4],[645,"ext","codeunit",30157,"GetValueIntoField",4],[646,"ext","codeunit",30157,"GetValueIntoField",4],[647,"ext","codeunit",30157,"GetValueIntoField",4],[648,"ext","codeunit",30157,"GetValueIntoField",4],[649,"ext","codeunit",30157,"GetValueIntoField",4],[650,"ext","codeunit",30157,"GetValueIntoField",4],[651,"ext","codeunit",30157,"GetValueIntoField",4],[652,"ext","codeunit",30157,"GetValueIntoField",4],[653,"ext","codeunit",30157,"GetValueIntoField",4],[654,"ext","codeunit",30157,"GetValueIntoField",4],[655,"ext","codeunit",30157,"GetValueIntoField",4],[656,"ext","codeunit",30157,"GetValueIntoField",4],[657,"ext","codeunit",30157,"GetValueIntoField",4],[658,"ext","codeunit",30157,"GetValueIntoField",4],[660,"ext","codeunit",30157,"GetJsonObject",3],[661,"ext","codeunit",30157,"GetJsonObject",3],[667,"ext","codeunit",30157,"GetJsonObject",3],[668,"ext","codeunit",30157,"GetJsonObject",3],[669,"call","GetOrderDueDate",1],[669,"ext","codeunit",30157,"GetJsonArray",2],[670,"call","ConvertToCancelReason",1],[670,"ext","codeunit",30157,"GetValueAsText",2],[671,"call","ConvertToFinancialStatus",1],[671,"ext","codeunit",30157,"GetValueAsText",2],[672,"call","ConvertToFulfillmentStatus",1],[672,"ext","codeunit",30157,"GetValueAsText",2],[673,"call","ConvertToOrderReturnStatus",1],[673,"ext","codeunit",30157,"GetValueAsText",2]]},{"name":"SetOrderHeaderValuesFromJson","line":676,"kind":"procedure","access":"local","params":3,"steps":[[679,"call","SetNewOrderHeaderValuesFromJson",2],[681,"call","SetEditableOrderHeaderValuesFromJson",2]]},{"name":"SetOrderLineValuesFromJson","line":685,"kind":"procedure","access":"local","params":3,"steps":[[691,"ext","codeunit",30103,"GetIdOfGId",1],[691,"ext","codeunit",30157,"GetValueAsText",2],[697,"ext","codeunit",30157,"GetValueAsText",2],[697,"ext","codeunit",30157,"IsNull",2],[699,"ext","codeunit",30157,"GetValueIntoField",4],[700,"ext","codeunit",30157,"GetValueIntoField",4],[701,"ext","codeunit",30157,"GetValueIntoField",4],[702,"ext","codeunit",30157,"GetValueIntoField",4],[703,"ext","codeunit",30157,"GetValueIntoField",4],[704,"ext","codeunit",30157,"GetValueIntoField",4],[705,"ext","codeunit",30157,"GetValueIntoField",4],[706,"ext","codeunit",30157,"GetValueIntoField",4],[707,"ext","codeunit",30157,"GetValueIntoField",4],[708,"ext","codeunit",30157,"GetValueIntoField",4],[709,"ext","codeunit",30157,"GetValueIntoField",4],[710,"ext","codeunit",30157,"GetValueIntoField",4],[712,"call","GetTotalLineDiscountAmount",2],[712,"ext","codeunit",30157,"GetJsonArray",2],[713,"call","GetTotalLineDiscountAmount",2],[713,"ext","codeunit",30157,"GetJsonArray",2]]},{"name":"RetrieveAndSetOrderLines","line":717,"kind":"procedure","access":"local","params":3,"steps":[[725,"call","RetrieveOrderLinesJson",5],[726,"call","SetAndInsertOrderLines",4]]},{"name":"SetAndInsertOrderLines","line":731,"kind":"procedure","access":"local","params":4,"steps":[[737,"call","SetOrderLineValuesFromJson",3],[738,"write",30119,"Insert"]]},{"name":"ImportCustomAttributtes","line":783,"kind":"procedure","access":"local","params":2,"steps":[[790,"write",30116,"DeleteAll"],[795,"ext","codeunit",30157,"GetValueAsText",3],[796,"ext","codeunit",30157,"GetValueAsText",3],[798,"write",30116,"Insert"],[799,"write",30116,"Modify"]]},{"name":"ImportCustomAttributtes","line":803,"kind":"procedure","access":"local","params":3,"steps":[[811,"write",30149,"DeleteAll"],[816,"ext","codeunit",30157,"GetValueAsText",2],[817,"ext","codeunit",30157,"GetValueAsText",2],[818,"write",30149,"Insert"]]},{"name":"ImportRisks","line":822,"kind":"procedure","access":"local","params":2,"steps":[[826,"ext","codeunit",30170,"UpdateOrderRisks",2]]},{"name":"GetTotalLineDiscountAmount","line":835,"kind":"procedure","access":"local","params":2,"steps":[[840,"ext","codeunit",30157,"GetValueAsDecimal",2]]},{"name":"CloseOrder","line":870,"kind":"procedure","access":"internal","params":1,"steps":[[876,"ext","codeunit",30103,"SetShop",1],[878,"ext","codeunit",30103,"ExecuteGraphQL",2],[879,"ext","codeunit",30157,"GetValueAsBigInteger",2],[881,"ext","codeunit",30157,"GetValueIntoField",4],[883,"ext","codeunit",30157,"GetValueIntoField",4],[888,"validate",30118,"Closed"],[889,"write",30118,"Modify"]]},{"name":"GetName2","line":934,"kind":"procedure","access":"local","params":3,"steps":[[940,"call","GetName",3]]},{"name":"ConvertToFinancialStatus","line":953,"kind":"procedure","access":"local","params":1,"steps":[[957,"ext","codeunit",30162,"OnBeforeConvertToFinancialStatus",3],[961,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"ConvertToFulfillmentStatus","line":968,"kind":"procedure","access":"local","params":1,"steps":[[972,"ext","codeunit",30162,"OnBeforeConvertToFulfillmentStatus",3],[976,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"GetOrderDueDate","line":983,"kind":"procedure","access":"local","params":1,"steps":[[989,"ext","codeunit",30157,"GetValueAsDate",2]]},{"name":"ConvertToCancelReason","line":992,"kind":"procedure","access":"local","params":1,"steps":[[994,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"UpdateLocationIdAndDeliveryMethodOnOrderLine","line":1001,"kind":"procedure","access":"local","params":1,"steps":[[1010,"call","UpdateLocationIdAndDeliveryMethodOnOrderLines",2],[1013,"call","UpdateLocationIdAndDeliveryMethodOnOrderLines",2]]},{"name":"ConvertToOrderReturnStatus","line":1033,"kind":"procedure","access":"local","params":1,"steps":[[1037,"ext","codeunit",30162,"OnBeforeConvertToOrderReturnStatus",3],[1041,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]}]}