From 8e0ff9d7f6dfad0826ecff8fc61ca624ba802a74 Mon Sep 17 00:00:00 2001 From: Sainan Date: Tue, 11 Mar 2025 16:47:51 +0100 Subject: [PATCH] fix quantity in history entry --- src/services/purchaseService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/purchaseService.ts b/src/services/purchaseService.ts index 2089c645..6a24b6c6 100644 --- a/src/services/purchaseService.ts +++ b/src/services/purchaseService.ts @@ -69,7 +69,6 @@ export const handlePurchase = async ( inventoryChanges ); } - purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier; if (!config.noVendorPurchaseLimits) { inventory.RecentVendorPurchases ??= []; let vendorPurchases = inventory.RecentVendorPurchases.find( @@ -110,6 +109,7 @@ export const handlePurchase = async ( } ]; } + purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier; } else if (!ExportVendors[purchaseRequest.PurchaseParams.SourceId!]) { throw new Error(`unknown vendor: ${purchaseRequest.PurchaseParams.SourceId!}`); }