This commit is contained in:
seb
2026-10-01 21:15:52 +02:00
parent 7383e13894
commit c28b30d92a
3 changed files with 72 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ function ledgerErrorStatus(error) {
if (error.message === 'Invalid ledger entry') return 400;
if (error.message === 'Invalid manifest article id') return 400;
if (error.message === 'Invalid SKU') return 400;
if (error.message?.includes('Stock tracking is disabled')) return 409;
return 500;
}