feat(datamart): finance price audit added
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user