• set sold, in stock, audited fields as readonly in pencil box location inventory item admin view
• overrode save behavior on Inventory Intakes in admin view to also update or create a PencilBoxLocationInventoryItem in the DB if it doesn't exist to adjust.
non nullable fields are set to 0 for initialization.
Changes:
• set sold, in stock, audited fields as readonly in pencil box location inventory item admin view • overrode save behavior on Inventory Intakes in admin view to also update or create a PencilBoxLocationInventoryItem in the DB if it doesn't exist to adjust.
non nullable fields are set to 0 for initialization.
Testing: • pull branch jd_stock_management and run server • navigate to http://127.0.0.1:8000/admin/admin_app/pencilboxlocationinventoryitem/ and select an item to see readonly fields. • navigate to http://127.0.0.1:8000/admin/admin_app/inventoryintake/ and create new intakes. Verify submitted values match created record, then verify that In Stock value is updated in Pencil box location inventory items view