From d1b9d0e0407ef9346ba49da9ad91f5a22b438c30 2017-09-28 14:07:56 From: Lance Edgar Date: 2017-09-28 14:07:56 Subject: [PATCH] Don't auto-assign inventory batch count mode this should be left to custom logic; sometimes it needs to be null --- diff --git a/rattail/batch/inventory.py b/rattail/batch/inventory.py index b506cc8057d0d50c1b395bcfb667afc71b3ffb39..cc385c3cf903e5d6400abc3f311808c5500703b7 100644 --- a/rattail/batch/inventory.py +++ b/rattail/batch/inventory.py @@ -40,8 +40,6 @@ class InventoryBatchHandler(BatchHandler): batch_model_class = model.InventoryBatch def init_batch(self, batch, **kwargs): - if batch.mode is None: - batch.mode = self.enum.INVENTORY_MODE_REPLACE if batch.total_cost is None: batch.total_cost = 0