Skip to content

Add documentation for Internal Supply Delivery Purchase query#94

Open
sonzsara wants to merge 4 commits into
mainfrom
ENG-218
Open

Add documentation for Internal Supply Delivery Purchase query#94
sonzsara wants to merge 4 commits into
mainfrom
ENG-218

Conversation

@sonzsara
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new markdown documentation page for the Metabase query "Internal Supply Delivery Purchase Summary by Location", describing its purpose, parameters, SQL, and notes.

Changes:

  • New documentation file describing the query, parameters (created_date, location), and supplier hardcoding caveat.
  • Includes the full SQL with Metabase optional filter clauses and explanatory notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Care/Inventory/internalsupplydeliverypurchase_ssmm.md
Comment thread Care/Inventory/internalsupplydeliverypurchase_ssmm.md
Comment thread Care/Inventory/internalsupplydeliverypurchase_ssmm.md Outdated
@sonzsara sonzsara requested a review from Jacobjeevan May 20, 2026 10:21
Comment thread Care/Inventory/internalsupplydeliverypurchase_ssmm.md Outdated
Comment out filters for created_date and location in query.
@sonzsara sonzsara requested a review from Jacobjeevan May 22, 2026 08:48
JOIN emr_product p ON ii.product_id = p.id
JOIN emr_productknowledge pk ON p.product_knowledge_id = pk.id
WHERE delivery_order.supplier_id = 20697
AND sd.deleted = FALSE
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check isn't needed; we generally don't use deleted flag if status is available (do check w/ previous queries whether we have any data like that).

Removed conditions for deleted records in the query.
@sonzsara sonzsara requested a review from Jacobjeevan May 25, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants