add customer restriction when browsing invoices

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-10-30 13:26:38 +03:00
committed by Daniel Hutzel
parent a319199e10
commit bcfce87276
5 changed files with 59 additions and 28 deletions

View File

@@ -126,6 +126,13 @@ const logProcessArgs = () => {
password: "some",
}));
}
if (srcEntityName === "Invoices") {
columns.push("status");
srcResultRows = srcResultRows.map((row) => ({
...row,
status: 2,
}));
}
const transaction = await targetStorage.tx();
await transaction.run(