category changes

This commit is contained in:
2026-09-08 12:03:23 +05:30
parent 1a37949bbe
commit d54fadef20
22 changed files with 776 additions and 540 deletions

View File

@@ -531,14 +531,11 @@ function ShelveAction({
const result = await shelveBatch(
batch,
rows,
{
tenantid: receipt.tenantid,
locationid: receipt.locationid,
// The category chosen at upload time, kept on the receipt precisely
// so this step does not have to guess it later. A product filed
// outside the one the app browses is invisible to shoppers.
categoryid: receipt.categoryid,
},
// No category: `shelveBatch` classifies every row itself. The receipt
// still carries the column an older upload wrote, and it is deliberately
// not read — one id applied to a whole sheet is what filed a shop's
// entire range under a single aisle.
{ tenantid: receipt.tenantid, locationid: receipt.locationid },
receipt.filename || undefined,
);
await uploadsApi.markShelved({