feat(datamart): finance price audit added

This commit is contained in:
2026-06-24 03:24:37 -05:00
parent 6f54f7dc16
commit 012a7e83b2
3 changed files with 75 additions and 0 deletions

View File

@@ -281,6 +281,10 @@ export const runDatamartQuery = async (data: Data) => {
: "--and pl.ArticleHumanReadableId IN ([articles])",
);
break;
case "financePriceAudit":
datamartQuery = datamartQuery.replace("[date]", `${data.options.date}`);
break;
default:
return returnFunc({
success: false,

View File

@@ -57,4 +57,12 @@ export const datamartData = [
optionsRequired: true,
howManyOptionsRequired: 2,
},
{
name: "Finance Price Audit",
endpoint: "financePriceAudit",
description: `Returns all sales and purchase price for quick reference where the date is less than the one provided.`,
options: "date",
optionsRequired: true,
howManyOptionsRequired: 1,
},
];