on ‎2018 Feb 02 3:03 PM
I need to import a csv file for StockLevel. But before it gets imported, I need to iterate over all Products/StockLevel and set the stock level status to forceInStock. Then I need to import the csv file.
Request clarification before answering.
Hello Archiesman,
you could do this via impex:
UPDATE StockLevel[batchmode=true];warehouse(code)[unique=true,default=$warehouse];inStockStatus(code)
StockLevel;;forceInStock
This will set the Stocklevel in the defined warehouse for every product to "forceInStock" without having to specify each and every single product first. (notice the batchmode=true)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps this could be defined as a separate task, and executed after the header setup task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
why over complicating this? what is stopping you from setting forceInStock as part of the same csv?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.