One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.
One row per current purchase-order line from your ERP or OMS (GoodDay and Pipe17), with vendor details, PO status, destination location, SKU, quantities, vendor cost inputs, derived landed cost per unit, and inbound shipment dates.
Grain: One row per (sm_store_id, source_system, purchase_order_line_id).
Date fields:purchase_order_date, planned_ready_date, expected_fulfillment_date, actual_fulfillment_date, shipment_expected_arrival_date, and shipment_actual_arrival_date.
Filters to start with:source_system (goodday or pipe17), especially if you keep the same purchase order in both systems.
Joins: Join obt_inventory_positions on lower(trim(po.sku)) = inv.sku (and sm_store_id), because obt_inventory_positions.sku is lowercased and trimmed while obt_purchase_order_lines.sku preserves source casing. Join dim_product_variants on sku (and sm_store_id) for catalog attributes.
When to use this table
Use obt_purchase_order_lines to track open purchase orders, inbound inventory arriving by SKU and location, vendor lead times, and unit landed cost breakdowns (vendor price, freight, fees, tariffs, and duties).
If you manage the same purchase order in both GoodDay and Pipe17, it appears once per system. Filter on source_system before summing ordered_units, received_units, open_units, or extended_landed_cost so you do not double-count.
Reading the columns
Open units:open_units is ordered_units minus received_units, clamped at zero so over-receipts never produce negative open units.
Landed cost:landed_cost_per_unit is vendor_price * (1 + tariff_rate + duty_rate) + freight_price + fees. It is NULL whenever any required input is missing, including on every Pipe17 line (Pipe17 records vendor price, not freight, duty, or fee inputs). extended_landed_cost is landed_cost_per_unit * ordered_units.
Currency: Prices and costs are denominated in currency_code. Group or filter by currency_code before summing costs across multi-currency purchase orders.
Example: open purchase-order units and value by SKU
SELECT sku, ANY_VALUE(item_title) AS item_title, currency_code, SUM(open_units) AS total_open_units, SUM(open_units * landed_cost_per_unit) AS open_landed_value, MIN(expected_fulfillment_date) AS next_expected_receiptFROM `your_project.sm_transformed_v2.obt_purchase_order_lines`WHERE sm_store_id = 'your-sm_store_id' AND source_system = 'goodday' AND purchase_order_status = 'open' AND open_units > 0GROUP BY sku, currency_codeORDER BY total_open_units DESC
Columns
Column
Type
Description
sm_store_id
STRING
SourceMedium store identifier.
actual_fulfillment_date
TIMESTAMP
When the line’s shipment group was received.
block_position
INT64
Position of the line’s shipment group (GoodDay block) within the purchase order.
currency_code
STRING
Currency of the line’s prices.
duty_rate
NUMERIC
Import duty rate as a fraction of vendor price.
expected_fulfillment_date
TIMESTAMP
When the line is expected to be received.
extended_landed_cost
NUMERIC
Landed cost per unit times ordered units.
fees
NUMERIC
Other fees per unit (for example brokerage or inspection).
freight_price
NUMERIC
Freight allocated per unit.
item_id
STRING
Item identifier in the source system.
item_title
STRING
Item title.
landed_cost_per_unit
NUMERIC
Vendor price times (1 + tariff rate + duty rate), plus freight and fees per unit.
line_item_number
INT64
Line position within the purchase order.
line_status
STRING
Line status as the source reports it.
open_units
NUMERIC
Units still to arrive, ordered minus received, never below zero.
ordered_units
NUMERIC
Units currently on order (after any revision or partial cancellation).
original_units
NUMERIC
Units originally ordered.
original_vendor_cost
NUMERIC
Vendor price when the line was opened, to compare against revisions.
planned_ready_date
TIMESTAMP
When the vendor expects the goods to be ready to ship.
purchase_order_date
TIMESTAMP
Date the merchant placed the order with the vendor.
purchase_order_id
STRING
Purchase order identifier in the source system.
purchase_order_line_id
STRING
Line identifier in the source system.
purchase_order_number
STRING
Purchase order number the merchant sees (for example PO-0042).
purchase_order_status
STRING
Purchase order status as the source reports it (GoodDay: draft, open, closed, cancelled).
purchase_order_type
STRING
Purchase order type (GoodDay: standard or work_order).
received_units
NUMERIC
Units received into inventory so far.
ship_to_location_id
STRING
Destination location identifier.
ship_to_location_name
STRING
Destination location name.
shipment_actual_arrival_date
TIMESTAMP
Inbound shipment actual arrival.
shipment_expected_arrival_date
TIMESTAMP
Inbound shipment expected arrival.
shipment_id
STRING
Inbound shipment carrying the line, once booked.
shipment_status
STRING
Inbound shipment status.
sku
STRING
Item SKU.
source_synced_at
TIMESTAMP
When SourceMedium last read the line from the source.
source_system
STRING
Purchasing system the line comes from (goodday or pipe17).
tariff_rate
NUMERIC
Tariff rate as a fraction of vendor price (0.05 is 5%).
unit_of_measure
STRING
Unit the quantities are counted in.
vendor_id
STRING
Vendor identifier in the source system.
vendor_name
STRING
Vendor display name.
vendor_price
NUMERIC
Price paid to the vendor per unit, excluding freight, duty and fees.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SourceMedium","colors":{"primary":"#A084FC","light":"#BAA6FC","dark":"#A084FC"},"logo":{"light":"https://mintcdn.com/sourcemedium/OjSPvBj0a9ize7d2/logo/light.png?fit=max\u0026auto=format\u0026n=OjSPvBj0a9ize7d2\u0026q=85\u0026s=ba06a2e9bd59b5f68b0d9a5293f04a59","dark":"https://mintcdn.com/sourcemedium/OjSPvBj0a9ize7d2/logo/dark.png?fit=max\u0026auto=format\u0026n=OjSPvBj0a9ize7d2\u0026q=85\u0026s=5e84a70aace4dd33fa1c91426acce72a","href":"https://sourcemedium.com"},"favicon":"https://mintcdn.com/sourcemedium/pt-qB7Ich-aAP65i/favicon.png?fit=max\u0026auto=format\u0026n=pt-qB7Ich-aAP65i\u0026q=85\u0026s=0f2c4639e64047f9b27d40e07f581618","appearance":{"default":"light","strict":false},"navbar":{"links":[{"href":"https://sourcemedium.com/case-study/","label":"Customer stories"},{"href":"https://sourcemedium.com/docs/data-inputs/platform-integration-instructions/all-available-integrations","label":"Integrations"}],"primary":{"type":"button","label":"Get started","href":"https://sourcemedium.com/request-demo"}},"footer":{"socials":{"twitter":"https://twitter.com/sourcemediumhq","linkedin":"https://www.linkedin.com/company/sourcemedium"}},"seo":{"metatags":{"canonical":"https://sourcemedium.com/docs"}},"integrations":{"ga4":{"measurementId":"G-LKSGE9NY1B"},"posthog":{"apiKey":"phc_yEZthPWGFIyJz42b7EPyqO7lPFRzjvDBJaw21cDcRmX","apiHost":"https://us.i.posthog.com","sessionRecording":true}},"errors":{"404":{"redirect":false,"title":"That page moved or no longer exists","description":"Try the [docs home](/index) to pick a section, [search the glossary](/help-center/glossary) for a term, or [open a support request from your workspace](/product-tours/get-support)."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sourcemedium","hasAudioNarration":false,"actualSubdomain":"sourcemedium","customDomains":["docs.sourcemedium.com"],"gitSource":{"type":"github","owner":"source-medium","repo":"sourcemedium-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10a12c9ffae5051c3f8597"},"feedback":{"thumbs":true,"edits":false,"issues":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b132c24b583720a2f61bc4f","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Connect","count":112},{"language":"default","tag":"Warehouse","count":81},{"language":"default","tag":"Tables","count":57},{"language":"default","tag":"sm_transformed_v2","count":48},{"language":"default","tag":"Dashboards","count":45},{"language":"default","tag":"Data Studio dashboard","count":28},{"language":"default","tag":"Marketing \u0026 Advertising","count":28},{"language":"default","tag":"How your data works","count":26},{"language":"default","tag":"Dashboard modules","count":21},{"language":"default","tag":"Ecommerce \u0026 Subscription","count":21}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines","slug":"/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines","pageMetadata":{"title":"obt_purchase_order_lines","description":"One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`One row per current purchase-order line from your ERP or OMS (`,_jsx(_components.a,{href:`/data-inputs/platform-integration-instructions/goodday-integration`,children:`GoodDay`}),` and `,_jsx(_components.a,{href:`/data-inputs/platform-integration-instructions/pipe17-integration`,children:`Pipe17`}),`), with vendor details, PO status, destination location, SKU, quantities, vendor cost inputs, derived landed cost per unit, and inbound shipment dates.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Grain:`}),` One row per (`,_jsx(_components.code,{children:`sm_store_id`}),`, `,_jsx(_components.code,{children:`source_system`}),`, `,_jsx(_components.code,{children:`purchase_order_line_id`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Date fields:`}),` `,_jsx(_components.code,{children:`purchase_order_date`}),`, `,_jsx(_components.code,{children:`planned_ready_date`}),`, `,_jsx(_components.code,{children:`expected_fulfillment_date`}),`, `,_jsx(_components.code,{children:`actual_fulfillment_date`}),`, `,_jsx(_components.code,{children:`shipment_expected_arrival_date`}),`, and `,_jsx(_components.code,{children:`shipment_actual_arrival_date`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Filters to start with:`}),` `,_jsx(_components.code,{children:`source_system`}),` (`,_jsx(_components.code,{children:`goodday`}),` or `,_jsx(_components.code,{children:`pipe17`}),`), especially if you keep the same purchase order in both systems.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Joins:`}),` Join `,_jsx(_components.a,{href:`/data-activation/data-tables/sm_transformed_v2/obt_inventory_positions`,children:_jsx(_components.code,{children:`obt_inventory_positions`})}),` on `,_jsx(_components.code,{children:`lower(trim(po.sku)) = inv.sku`}),` (and `,_jsx(_components.code,{children:`sm_store_id`}),`), because `,_jsx(_components.code,{children:`obt_inventory_positions.sku`}),` is lowercased and trimmed while `,_jsx(_components.code,{children:`obt_purchase_order_lines.sku`}),` preserves source casing. Join `,_jsx(_components.a,{href:`/data-activation/data-tables/sm_transformed_v2/dim_product_variants`,children:_jsx(_components.code,{children:`dim_product_variants`})}),` on `,_jsx(_components.code,{children:`sku`}),` (and `,_jsx(_components.code,{children:`sm_store_id`}),`) for catalog attributes.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-use-this-table`,children:`When to use this table`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`obt_purchase_order_lines`}),` to track open purchase orders, inbound inventory arriving by SKU and location, vendor lead times, and unit landed cost breakdowns (vendor price, freight, fees, tariffs, and duties).`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If you manage the same purchase order in both GoodDay and Pipe17, it appears once per system. Filter on `,_jsx(_components.code,{children:`source_system`}),` before summing `,_jsx(_components.code,{children:`ordered_units`}),`, `,_jsx(_components.code,{children:`received_units`}),`, `,_jsx(_components.code,{children:`open_units`}),`, or `,_jsx(_components.code,{children:`extended_landed_cost`}),` so you do not double-count.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`reading-the-columns`,children:`Reading the columns`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Open units:`}),` `,_jsx(_components.code,{children:`open_units`}),` is `,_jsx(_components.code,{children:`ordered_units`}),` minus `,_jsx(_components.code,{children:`received_units`}),`, clamped at zero so over-receipts never produce negative open units.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Landed cost:`}),` `,_jsx(_components.code,{children:`landed_cost_per_unit`}),` is `,_jsx(_components.code,{children:`vendor_price * (1 + tariff_rate + duty_rate) + freight_price + fees`}),`. It is NULL whenever any required input is missing, including on every Pipe17 line (Pipe17 records vendor price, not freight, duty, or fee inputs). `,_jsx(_components.code,{children:`extended_landed_cost`}),` is `,_jsx(_components.code,{children:`landed_cost_per_unit * ordered_units`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Currency:`}),` Prices and costs are denominated in `,_jsx(_components.code,{children:`currency_code`}),`. Group or filter by `,_jsx(_components.code,{children:`currency_code`}),` before summing costs across multi-currency purchase orders.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-open-purchase-order-units-and-value-by-sku`,children:`Example: open purchase-order units and value by SKU`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sku,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ANY_VALUE(item_title) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`AS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` item_title,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` currency_code,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` SUM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(open_units) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`AS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` total_open_units,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` SUM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(open_units `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` landed_cost_per_unit) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`AS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` open_landed_value,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` MIN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(expected_fulfillment_date) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`AS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` next_expected_receipt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`FROM`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `your_project.sm_transformed_v2.obt_purchase_order_lines`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`WHERE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sm_store_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'your-sm_store_id'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` AND`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` source_system `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'goodday'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` AND`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` purchase_order_status `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'open'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` AND`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` open_units `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`GROUP BY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sku, currency_code`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`ORDER BY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` total_open_units `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DESC`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`columns`,children:`Columns`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sm_store_id`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`SourceMedium store identifier.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`actual_fulfillment_date`})}),_jsx(_components.td,{children:`TIMESTAMP`}),_jsx(_components.td,{children:`When the line’s shipment group was received.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`block_position`})}),_jsx(_components.td,{children:`INT64`}),_jsx(_components.td,{children:`Position of the line’s shipment group (GoodDay block) within the purchase order.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency_code`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Currency of the line’s prices.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`duty_rate`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Import duty rate as a fraction of vendor price.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expected_fulfillment_date`})}),_jsx(_components.td,{children:`TIMESTAMP`}),_jsx(_components.td,{children:`When the line is expected to be received.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extended_landed_cost`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Landed cost per unit times ordered units.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fees`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Other fees per unit (for example brokerage or inspection).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`freight_price`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Freight allocated per unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`item_id`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Item identifier in the source system.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`item_title`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Item title.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`landed_cost_per_unit`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Vendor price times (1 + tariff rate + duty rate), plus freight and fees per unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`line_item_number`})}),_jsx(_components.td,{children:`INT64`}),_jsx(_components.td,{children:`Line position within the purchase order.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`line_status`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Line status as the source reports it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`open_units`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Units still to arrive, ordered minus received, never below zero.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ordered_units`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Units currently on order (after any revision or partial cancellation).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`original_units`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Units originally ordered.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`original_vendor_cost`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Vendor price when the line was opened, to compare against revisions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`planned_ready_date`})}),_jsx(_components.td,{children:`TIMESTAMP`}),_jsx(_components.td,{children:`When the vendor expects the goods to be ready to ship.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`purchase_order_date`})}),_jsx(_components.td,{children:`TIMESTAMP`}),_jsx(_components.td,{children:`Date the merchant placed the order with the vendor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`purchase_order_id`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Purchase order identifier in the source system.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`purchase_order_line_id`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Line identifier in the source system.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`purchase_order_number`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Purchase order number the merchant sees (for example PO-0042).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`purchase_order_status`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Purchase order status as the source reports it (GoodDay: draft, open, closed, cancelled).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`purchase_order_type`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Purchase order type (GoodDay: standard or work_order).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`received_units`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Units received into inventory so far.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ship_to_location_id`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Destination location identifier.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ship_to_location_name`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Destination location name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shipment_actual_arrival_date`})}),_jsx(_components.td,{children:`TIMESTAMP`}),_jsx(_components.td,{children:`Inbound shipment actual arrival.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shipment_expected_arrival_date`})}),_jsx(_components.td,{children:`TIMESTAMP`}),_jsx(_components.td,{children:`Inbound shipment expected arrival.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shipment_id`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Inbound shipment carrying the line, once booked.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shipment_status`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Inbound shipment status.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sku`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Item SKU.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source_synced_at`})}),_jsx(_components.td,{children:`TIMESTAMP`}),_jsx(_components.td,{children:`When SourceMedium last read the line from the source.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source_system`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Purchasing system the line comes from (goodday or pipe17).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tariff_rate`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Tariff rate as a fraction of vendor price (0.05 is 5%).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unit_of_measure`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Unit the quantities are counted in.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vendor_id`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Vendor identifier in the source system.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vendor_name`})}),_jsx(_components.td,{children:`STRING`}),_jsx(_components.td,{children:`Vendor display name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vendor_price`})}),_jsx(_components.td,{children:`NUMERIC`}),_jsx(_components.td,{children:`Price paid to the vendor per unit, excluding freight, duty and fees.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"obt_purchase_order_lines","description":"One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"When to use this table","slug":"when-to-use-this-table","depth":2,"children":[]},{"title":"Reading the columns","slug":"reading-the-columns","depth":2,"children":[]},{"title":"Example: open purchase-order units and value by SKU","slug":"example-open-purchase-order-units-and-value-by-sku","depth":2,"children":[]},{"title":"Columns","slug":"columns","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sourcemedium","siteName":"SourceMedium","title":"obt_purchase_order_lines - SourceMedium","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T16:12:02.601Z","originalFileLocation":"data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SourceMedium\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"obt_purchase_order_lines - SourceMedium\">\u003cmeta data-mint-head property=\"og:description\" content=\"One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SourceMedium\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sourcemedium.mintlify.site/docs/_mintlify/api/og/v2?division=sm_transformed_v2\u0026amp;title=obt_purchase_order_lines\u0026amp;description=One+row+per+current+purchase-order+line+from+GoodDay+or+Pipe17%2C+with+ordered%2C+received%2C+and+open+units%2C+landed-cost+inputs%2C+and+inbound+arrival+dates.\u0026amp;theme=e85dc6896c3d34dff0291eab\u0026amp;signature=2a988800fc80256711a1b9ca555dc7f1ebc72585d621b2ca9b31598e03c4a224\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"obt_purchase_order_lines - SourceMedium\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sourcemedium.mintlify.site/docs/_mintlify/api/og/v2?division=sm_transformed_v2\u0026amp;title=obt_purchase_order_lines\u0026amp;description=One+row+per+current+purchase-order+line+from+GoodDay+or+Pipe17%2C+with+ordered%2C+received%2C+and+open+units%2C+landed-cost+inputs%2C+and+inbound+arrival+dates.\u0026amp;theme=e85dc6896c3d34dff0291eab\u0026amp;signature=2a988800fc80256711a1b9ca555dc7f1ebc72585d621b2ca9b31598e03c4a224\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/sourcemedium/UPM2GdCpP7mp5Nu9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SourceMedium\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#A084FC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://sourcemedium.com/#organization\",\"name\":\"SourceMedium\",\"url\":\"https://sourcemedium.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sourcemedium/OjSPvBj0a9ize7d2/logo/light.png?fit=max\u0026auto=format\u0026n=OjSPvBj0a9ize7d2\u0026q=85\u0026s=ba06a2e9bd59b5f68b0d9a5293f04a59\"}},{\"@type\":\"WebSite\",\"@id\":\"https://sourcemedium.com/docs#website\",\"name\":\"SourceMedium\",\"url\":\"https://sourcemedium.com/docs\",\"publisher\":{\"@id\":\"https://sourcemedium.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines#webpage\",\"url\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines\",\"name\":\"obt_purchase_order_lines\",\"description\":\"One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.\",\"dateModified\":\"2026-12-04T16:12:02.601Z\",\"isPartOf\":{\"@id\":\"https://sourcemedium.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tables\",\"item\":\"https://sourcemedium.com/docs/data-activation/data-tables\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"sm_transformed_v2\",\"item\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"obt_purchase_order_lines\",\"item\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines#article\",\"headline\":\"obt_purchase_order_lines\",\"name\":\"obt_purchase_order_lines\",\"description\":\"One row per current purchase-order line from GoodDay or Pipe17, with ordered, received, and open units, landed-cost inputs, and inbound arrival dates.\",\"url\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines\",\"mainEntityOfPage\":{\"@id\":\"https://sourcemedium.com/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines#webpage\"},\"dateModified\":\"2026-12-04T16:12:02.601Z\",\"publisher\":{\"@id\":\"https://sourcemedium.com/#organization\"},\"isPartOf\":{\"@id\":\"https://sourcemedium.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SourceMedium\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SourceMedium\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines.md","siteName":"SourceMedium","nav":{"global":null,"tabs":[{"tab":"Workspace","pages":[{"title":"Workspace","href":""}]},{"tab":"Connect","pages":[{"title":"Connect","href":"/data-inputs/data-inputs-overview"}]},{"tab":"How your data works","pages":[{"title":"How your data works","href":"/help-center/core-concepts/data-transformation/data-architecture"}]},{"tab":"Dashboards","pages":[{"title":"Dashboards","href":"/onboarding/analytics-tools/dashboards"}]},{"tab":"Warehouse","groups":[{"group":"Get into BigQuery","pages":[{"title":"Warehouse","sidebarTitle":"Overview","icon":"database","href":"/data-activation/managed-data-warehouse/overview"},{"title":"Choose raw data for your warehouse","sidebarTitle":"Raw data","icon":"truck","href":"/data-activation/managed-data-warehouse/raw-data"},{"title":"Check warehouse usage","sidebarTitle":"Warehouse usage","icon":"gauge","href":"/data-activation/managed-data-warehouse/usage"},{"title":"Deliver to your own BigQuery","sidebarTitle":"Your own BigQuery","icon":"share-from-square","href":"/data-activation/managed-data-warehouse/destinations"},{"title":"BigQuery essentials for SourceMedium","sidebarTitle":"BigQuery essentials","icon":"database","href":"/onboarding/analytics-tools/bigquery-essentials"},{"title":"Modeling with SourceMedium","icon":"cubes","href":"/data-activation/managed-data-warehouse/modeling"},{"title":"How to use metrics","sidebarTitle":"Metrics","icon":"chart-bar","href":"/data-activation/managed-data-warehouse/metrics-and-semantic-layer"},{"title":"How do I upload a CSV file to my BigQuery instance?","sidebarTitle":"BigQuery CSV upload guide","icon":"question-mark","href":"/help-center/faq/account-management-faqs/bigquery-csv-upload-guide"}]},{"group":"SQL query library","pages":[{"title":"SQL query library","sidebarTitle":"SQL query library","icon":"code","href":"/data-activation/template-resources/sql-query-library"},{"title":"Marketing \u0026 ads","icon":"code","href":"/data-activation/template-resources/sql-query-library/marketing-and-ads"},{"title":"Messaging","icon":"code","href":"/data-activation/template-resources/sql-query-library/messaging"},{"title":"Funnel","icon":"code","href":"/data-activation/template-resources/sql-query-library/funnel"},{"title":"Journeys \u0026 lead capture","icon":"code","href":"/data-activation/template-resources/sql-query-library/journeys-and-lead-capture"},{"title":"Customers \u0026 retention","icon":"code","href":"/data-activation/template-resources/sql-query-library/customers-and-retention"},{"title":"Products","icon":"code","href":"/data-activation/template-resources/sql-query-library/products"},{"title":"Orders \u0026 revenue","icon":"code","href":"/data-activation/template-resources/sql-query-library/orders-and-revenue"},{"title":"LTV \u0026 retention","icon":"code","href":"/data-activation/template-resources/sql-query-library/ltv-and-retention"},{"title":"Attribution \u0026 data health","icon":"code","href":"/data-activation/template-resources/sql-query-library/attribution-and-data-health"},{"title":"Customer support","icon":"code","href":"/data-activation/template-resources/sql-query-library/customer-support"}]},{"group":"Common analyses (SQL)","pages":[{"title":"Cohort LTO analysis","sidebarTitle":"Cohort LTO","icon":"magnifying-glass-location","href":"/help-center/common-analyses/cohort-lto"},{"title":"Revenue retention analysis","sidebarTitle":"Revenue retention","icon":"magnifying-glass-location","href":"/help-center/common-analyses/revenue-retention"},{"title":"Understanding your gross profit","icon":"dollar-sign","href":"/help-center/common-analyses/understanding-your-gross-profit"},{"title":"Understanding your contribution margin","icon":"dollar-sign","href":"/help-center/common-analyses/understanding-your-contribution-margin"}]},{"group":"Tables","pages":[{"title":"Tables","sidebarTitle":"Tables","icon":"book","href":"/data-activation/data-tables/index"},{"group":"sm_transformed_v2","pages":[{"title":"SM Transformed v2 Tables","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/index"},{"title":"dim_customer_addresses","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_customer_addresses"},{"title":"dim_customers","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_customers"},{"title":"dim_order_discounts","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_order_discounts"},{"title":"dim_order_lines","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_order_lines"},{"title":"dim_order_shipping_lines","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_order_shipping_lines"},{"title":"dim_order_taxes","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_order_taxes"},{"title":"dim_orders","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_orders"},{"title":"dim_product_variants","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_product_variants"},{"title":"dim_stores","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_stores"},{"title":"dim_subscriptions","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_subscriptions"},{"title":"dim_subscribers","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_subscribers"},{"title":"fct_order_attribution_signals","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/fct_order_attribution_signals"},{"title":"fct_order_classification_matches","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/fct_order_classification_matches"},{"title":"fct_orders_placed","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/fct_orders_placed"},{"title":"fct_refunds_processed","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/fct_refunds_processed"},{"title":"fct_returns","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/fct_returns"},{"title":"fct_subscription_charges","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/fct_subscription_charges"},{"title":"obt_affiliate_conversions","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_affiliate_conversions"},{"title":"obt_customer_support_tickets","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_customer_support_tickets"},{"title":"obt_customer_support_ticket_messages","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_customer_support_ticket_messages"},{"title":"obt_customer_support_teams","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_customer_support_teams"},{"title":"obt_customers","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_customers"},{"title":"obt_funnel_event_history","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_funnel_event_history"},{"title":"obt_inventory_positions","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_inventory_positions"},{"title":"obt_media_mix_performance","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_media_mix_performance"},{"title":"obt_order_lines","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_order_lines"},{"title":"obt_orders","description":"Order analytics table for revenue, profitability, refunds, and channel performance analysis.","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_orders"},{"title":"obt_purchase_order_lines","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_purchase_order_lines"},{"title":"obt_return_inspections","description":"One row per warehouse return line item from Two Boxes, with shopper reasons, grader disposition, inspection attributes, and matched order context.","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_return_inspections"},{"title":"obt_reviews","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_reviews"},{"title":"obt_shipments","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_shipments"},{"title":"obt_subscriptions","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_subscriptions"},{"title":"obt_subscription_charges","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/obt_subscription_charges"},{"title":"rpt_ad_creative_assets","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_ad_creative_assets"},{"title":"rpt_ad_performance_daily","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_ad_performance_daily"},{"title":"rpt_cohort_ltv_by_first_valid_purchase_attribute_no_product_filters","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_cohort_ltv_by_first_valid_purchase_attribute_no_product_filters"},{"title":"rpt_executive_summary_daily","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_executive_summary_daily"},{"title":"rpt_fulfillment_backlog_daily","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_fulfillment_backlog_daily"},{"title":"rpt_funnel_events_performance_hourly","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_funnel_events_performance_hourly"},{"title":"rpt_media_mix_channel_daily","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_media_mix_channel_daily"},{"title":"dim_outbound_messages","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/dim_outbound_messages"},{"title":"rpt_outbound_message_performance_daily","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_outbound_message_performance_daily"},{"title":"rpt_shopify_order_fulfillment","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_shopify_order_fulfillment"},{"title":"rpt_subscription_signup_cohort_retention","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_subscription_signup_cohort_retention"},{"title":"rpt_subscriptions_performance_daily","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_subscriptions_performance_daily"},{"title":"rpt_support_backlog_daily","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_support_backlog_daily"},{"group":"Planned","pages":[{"title":"rpt_order_attributed_marketing_utms","icon":"table","href":"/data-activation/data-tables/sm_transformed_v2/rpt_order_attributed_marketing_utms"}]}]},{"group":"sm_views","pages":[{"title":"SM Views","icon":"table","href":"/data-activation/data-tables/sm_views/index"},{"title":"rpt_customers_first_and_last_order_summary_v1","icon":"table","href":"/data-activation/data-tables/sm_views/rpt_customers_first_and_last_order_summary_v1"},{"title":"rpt_order_returns_v1","icon":"table","href":"/data-activation/data-tables/sm_views/rpt_order_returns_v1"}]},{"group":"Metadata tables","pages":[{"title":"dim_data_dictionary","icon":"table","href":"/data-activation/data-tables/sm_metadata/dim_data_dictionary"},{"title":"dim_semantic_metric_catalog","icon":"book-open","href":"/data-activation/data-tables/sm_metadata/dim_semantic_metric_catalog"}]},{"group":"Experimental tables","pages":[{"title":"SM Experimental Tables","icon":"flask","href":"/data-activation/data-tables/sm_experimental/index"},{"title":"rpt_ad_attribution_performance_daily","icon":"table","href":"/data-activation/data-tables/sm_experimental/rpt_ad_attribution_performance_daily"},{"title":"obt_purchase_journeys_with_mta_models","icon":"table","href":"/data-activation/data-tables/sm_experimental/obt_purchase_journeys_with_mta_models"}]}]},{"group":"Schema standards","pages":[{"title":"Schema standards","icon":"tags","href":"/data-transformations/naming-conventions/index"}]}]},{"tab":"Multi-Touch Attribution","pages":[{"title":"Multi-Touch Attribution","href":"/mta/mta-overview"}]},{"tab":"AI Agents","pages":[{"title":"AI Agents","href":"/ai-analyst"}]},{"tab":"Help","pages":[{"title":"Help","href":"/faq"}]}]},"basePath":"","title":"obt_purchase_order_lines - SourceMedium","deploymentId":"dpl_2Ja9WRbxdgSB12oQLm2PJEkKFtyF","buildId":"dpl_2Ja9WRbxdgSB12oQLm2PJEkKFtyF","dynamics":[],"chunks":[]}