diff --git a/dev-itpro/developer/devenv-extending-shopify.md b/dev-itpro/developer/devenv-extending-shopify.md index 64c8f91add..f28d2fcacb 100644 --- a/dev-itpro/developer/devenv-extending-shopify.md +++ b/dev-itpro/developer/devenv-extending-shopify.md @@ -195,7 +195,7 @@ The following example shows how to check whether a Shopify order is ready to be codeunit 50107 "Shpfy Order Check Pay. Method" { [EventSubscriber(ObjectType::Codeunit, Codeunit::"Shpfy Order Events", OnBeforeCreateSalesHeader, '', false, false)] - internal procedure OnBeforeCreateSalesHeader(ShopifyOrderHeader: Record "Shpfy Order Header"; var SalesHeader: Record "Sales Header"; var Handled: Boolean) + internal procedure OnBeforeCreateSalesHeader(ShopifyOrderHeader: Record "Shpfy Order Header"; var SalesHeader: Record "Sales Header"; var LastCreatedDocumentId: Guid; var Handled: Boolean) begin ShopifyOrderHeader.Testfield("Payment Method Code"); end; @@ -527,7 +527,7 @@ The following example shows how to implement logic for defining prices. codeunit 50105 "Shpfy Custom Price" { [EventSubscriber(ObjectType::Codeunit, Codeunit::"Shpfy Product Events", OnBeforeCalculateUnitPrice, '', false, false)] - procedure BeforeCalculateUnitPrice(Item: Record Item; VariantCode: Code[20]; UnitOfMeasure: Code[20]; ShopifyShop: Record "Shpfy Shop"; var UnitCost: Decimal; var Price: Decimal; var ComparePrice: Decimal; var Handled: Boolean) + procedure BeforeCalculateUnitPrice(Item: Record Item; VariantCode: Code[20]; UnitOfMeasure: Code[20]; ShopifyShop: Record "Shpfy Shop"; Catalog: Record "Shpfy Catalog"; var UnitCost: Decimal; var Price: Decimal; var ComparePrice: Decimal; var Handled: Boolean) var CurrExchRate: Record "Currency Exchange Rate"; ItemUOM: Record "Item Unit of Measure"; @@ -556,7 +556,7 @@ The following example shows how to implement logic for defining compare-at price codeunit 50110 "Shpfy Custom Compare Price" { [EventSubscriber(ObjectType::Codeunit, Codeunit::"Shpfy Product Events", OnAfterCalculateUnitPrice, '', false, false)] - procedure AfterCalculateUnitPrice(Item: Record Item; VariantCode: Code[20]; UnitOfMeasure: Code[20]; ShopifyShop: Record "Shpfy Shop"; var UnitCost: Decimal; var Price: Decimal; var ComparePrice: Decimal) + procedure AfterCalculateUnitPrice(Item: Record Item; VariantCode: Code[20]; UnitOfMeasure: Code[20]; ShopifyShop: Record "Shpfy Shop"; Catalog: Record "Shpfy Catalog"; var UnitCost: Decimal; var Price: Decimal; var ComparePrice: Decimal) begin ComparePrice := Round(Price * 1.3, 1); Price := Round(Price, 1) - 0.05;