# Warehouse To-Do

see: /Volumes/nc/nc-doc/ai/prompt-engineering/warehouse

- [ ] Fix package calculation code
  - [ ] changing total amount gives error: unknown updatePacket field 'total_amount'
  - [x] Pasi: add amount1ToAmount2() and amount2ToAmount1() functions
- [x] save button added
  - [ ] save button functionality
- [x] Find order number
- [x] Find supplier/customer
- [ ] Person (like in work-center) or logged-in user??
- [ ] Save transfer_id to 4d
- [ ] Odoo transfer_id field?
- [x] First row: product, order number, supplier
- [x] Removed incorrect checkboxes (inventory value) from the top section
- [ ] Second row: show_open, show_located_after, show_located_after_time, hide_before, hide_before_date
- [ ] Location options come from arr.json
- [ ] Add to inventory if there is no purchase order
- [ ] Inventory layout
- [ ] Upper grid must show purchase orders, not purchase order lines. Ord-fields are saved to stock-receive.json
- [ ] Appearance first

- [ ] Default location for packages
- [x] Add checkbox to target date

  - [ ] Date field disabled if checkbox is not selected

- [x] Smelting number (batch_number) must be entered (e.g., for metal sheets of different sizes, the melting number can be the same)

  - [ ] Material batch mandatory for certain products
  - [x] Material batch added to packet grid

- [ ] General Location manager
  - Create and delete locations
