u
This commit is contained in:
@@ -113,7 +113,7 @@ export function autoCropWhiteAndTransparent(img) {
|
||||
imgData = ctx.getImageData(0, 0, width, height);
|
||||
} catch (err) {
|
||||
// Canvas tainted by CORS, throw to let caller know
|
||||
throw new Error('Canvas durch CORS blockiert: ' + (err?.message || err));
|
||||
throw new Error('Canvas durch CORS blockiert: ' + (err?.message || err), { cause: err });
|
||||
}
|
||||
|
||||
const data = imgData.data;
|
||||
|
||||
@@ -87,7 +87,7 @@ export async function fetchDeliveryLedgerSummary(deliveryId, { deliveryApi = def
|
||||
const totalQuantity = linesWithLedger.reduce((sum, l) => sum + l.targetAmount, 0);
|
||||
const bookedQuantity = linesWithLedger.reduce((sum, l) => sum + l.bookedAmount, 0);
|
||||
|
||||
let status = 'unbooked';
|
||||
let status;
|
||||
if (totalPositions === 0) {
|
||||
status = 'empty';
|
||||
} else if (bookedPositions === totalPositions && bookedQuantity >= totalQuantity) {
|
||||
|
||||
Reference in New Issue
Block a user