Up_DW.upload_stock_taking_documents (eng) - datawizio/pythonAPI GitHub Wiki
Uploads information about inventory documents.
Gets a list of objects in the format
[
{
"document_id": <document_id>,
"document_date": <document_date>,
"shop_id": <shop_id>,
"stuff_id": <stuff_id>,
"products": {
"product_id":<product_id>,
"stock_qty": <stock_qty>,
"fact_qty": <fact_qty>
}
}
...
]
or a path to the file *.csv
Parameters:
-
columns: list, default: ['document_id', 'date', 'shop_id', 'stuff_id', 'product_id', 'stock_qty', 'fact_qty']
Sorted list of columns in the table in the file *.csv.
-
splitter: str, default: ";"
Splitter of data in the file *.csv.
Examples:
dwup = datawiz_upload.Up_DW()
dwup.upload_stock_taking_documents('/home/user/stock_taking_doc.csv')