Changeset - d1b9d0e0407e
[Not reviewed]
0 1 0
Lance Edgar (lance) - 7 years ago 2017-09-28 14:07:56
lance@edbob.org
Don't auto-assign inventory batch count mode

this should be left to custom logic; sometimes it needs to be null
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rattail/batch/inventory.py
Show inline comments
 
@@ -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
 

	
0 comments (0 inline, 0 general)