category changes
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user