---
title: "Codeunit 30182 Shpfy Product Price Calc., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/points/
object: https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/
app: "Shopify Connector"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 30182 Shpfy Product Price Calc., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/points/

4 procedures and triggers with a step in src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfyProductPriceCalc.Codeunit.al, in source order, read from the text, not from a run.

## CalcPrice

[Line 58](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L58), internal.

- [66](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L66) calls `IsValidUoM`
- [67](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L67) calls [Codeunit 30313 Shpfy Skipped Record](https://jonas-paprotka.de/ref/codeunit/30313-shpfy-skipped-record/) `LogSkippedRecord`
- [70](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L70) calls [Codeunit 30177 Shpfy Product Events](https://jonas-paprotka.de/ref/codeunit/30177-shpfy-product-events/) `OnBeforeCalculateUnitPrice`
- [78](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L78) calls [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `SetSalesHeader`
- [79](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L79) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Type`
- [80](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L80) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `No.`
- [81](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L81) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Variant Code`
- [82](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L82) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Quantity`
- [84](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L84) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Unit of Measure Code`
- [101](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L101) calls [Codeunit 30177 Shpfy Product Events](https://jonas-paprotka.de/ref/codeunit/30177-shpfy-product-events/) `OnAfterCalculateUnitPrice`

## CreateTempSalesHeader

[Line 107](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L107), local.

- [137](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L137) validates [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `Document Date`
- [138](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L138) validates [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `Order Date`
- [139](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L139) validates [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `Currency Code`
- [140](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L140) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) Insert

## SetShop

[Line 167](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L167), internal.

- [171](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L171) calls `SetParameters`
- [173](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L173) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) DeleteAll
- [174](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L174) calls `CreateTempSalesHeader`

## SetShopAndCatalog

[Line 178](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L178), internal.

- [186](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L186) calls `SetParameters`
- [188](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L188) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) DeleteAll
- [189](https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/source/#L189) calls `CreateTempSalesHeader`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
