Matthias
bae28e8207
Add setting for enabeling reports
...
Fixes #2278
2021-11-10 23:54:54 +01:00
Oliver
30684685f9
Add unit test to check an "empty" (null) barcode can be supplied
2021-11-09 12:07:57 +11:00
Oliver
b2ae346343
Provide model-level default function option
2021-11-08 13:30:59 +11:00
Oliver
1743111613
Check if customer exists when rendering sales order template
...
Fixes https://github.com/inventree/InvenTree/issues/1742
2021-11-05 11:03:38 +11:00
Oliver
ecccae1081
Merge remote-tracking branch 'inventree/master' into stock-item-forms
2021-11-03 13:34:45 +11:00
Oliver
b1c23e30f5
Fix CSS for user badges
2021-11-03 11:59:20 +11:00
Oliver
aaf27d4098
Adds new buttons to create a new stock item
2021-11-03 07:27:58 +11:00
Oliver
360f0406b5
CSS updates
...
- Add template for filter lists
- Filter lists now layout horizontally
- Change flex-row to flex-wrap
2021-11-01 08:38:24 +11:00
Oliver
a151a68e58
convert sale_price to string before exporting
2021-10-31 00:05:20 +11:00
Oliver
361f4498df
Fix broken tables removed by conflict
2021-10-30 23:51:59 +11:00
Oliver
eaa315e726
Merge branch 'master' into partial-shipment
...
# Conflicts:
# InvenTree/build/templates/build/build_base.html
# InvenTree/order/templates/order/order_base.html
# InvenTree/order/templates/order/sales_order_base.html
# InvenTree/order/templates/order/sales_order_detail.html
# InvenTree/order/templates/order/so_navbar.html
2021-10-30 23:44:06 +11:00
Oliver
3849ea8057
Rearranging buttons
2021-10-29 23:20:09 +11:00
Oliver
c04118ed8a
Driving the refactor tractor around the farm
2021-10-29 22:20:06 +11:00
Oliver
b41d1aed12
Refactor admin button for:
...
- build order
- part detail
- stock item
- stock location
- company detail
- manufacturer-part
- purchase order
- sales order
2021-10-29 17:07:35 +11:00
Oliver
80a41affc1
More sidebar action
2021-10-29 01:20:24 +11:00
Oliver
1b5428718e
Refactored sidebar for "purchase order"
2021-10-29 01:11:00 +11:00
Oliver
00a0311c63
Refactor sidebar for "sales order" page
2021-10-29 01:08:18 +11:00
Oliver
2778ff55da
Remove btn-default
2021-10-28 19:57:17 +11:00
Oliver
f8ac016d60
replace labels with badges
2021-10-28 17:41:40 +11:00
Oliver
ae2c3e8293
remove "panel-inventree" references
2021-10-28 08:31:36 +11:00
Oliver
711b3ba923
remove "panel-default"
2021-10-27 23:08:15 +11:00
Oliver
53c579c992
Refactor PO and SO pages
2021-10-27 23:03:08 +11:00
Oliver
a004f293ff
Replace all instances of data-toggle with data-bs-toggle
2021-10-27 22:06:30 +11:00
Oliver
82271cfcb7
Add breadcrumbs to purchase order and sales order pages
...
(cherry picked from commit dd5eeb7c61049b8991cb9388f7d55b82ff3ffe03)
2021-10-27 20:18:09 +11:00
Oliver
75845ce1ca
Merge branch 'master' into partial-shipment
2021-10-27 01:05:55 +11:00
Oliver
2eb93b5a49
Add functionality to create a new sales order shipment
...
- From the "New Shipment" button
- As a secondary modal from the stock allocation dialgo
2021-10-27 00:57:47 +11:00
Oliver
7252b299f7
Add modal API form to allocate stock items against a SalesOrder
...
- Added model renderer for SalesOrderShipment
- Some refactorin'
2021-10-27 00:41:12 +11:00
Oliver
bff9f0828a
Adds API endpoint to allocate stock items against a SalesOrder
...
- SalesOrderAllocations are no longer created manually
- API endpoint performs data validation
- Multiple line items can be allocated at once
- Adds unit testing for new API endpoint
2021-10-26 23:51:36 +11:00
Oliver
dd5eeb7c61
Add breadcrumbs to purchase order and sales order pages
2021-10-26 22:46:30 +11:00
Oliver
c90c224ed2
Update "reference" field for shipment model
...
- Must be unique
- Auto-incrementing default value
- Updated migrations
2021-10-26 22:13:55 +11:00
Oliver
2d910022ac
Fix for supplier price breaks
...
- Make "price" field an InvenTreeMoneySerializer instance
- Add client-side validation for number inputs
2021-10-26 01:55:41 +11:00
Oliver
e7c25126a4
Construct table of "shipments"
2021-10-26 00:17:17 +11:00
Oliver
e9e4d13541
Add list and detail API endpoints for SalesOrderShipment
...
- Filter by order
- Filter by "shipped" status
- SalesOrderShipment serializer includes information on items allocated to that shipment
2021-10-25 23:34:58 +11:00
Oliver
9fcc55d71d
Admin page for new model
2021-10-25 22:50:10 +11:00
Oliver
d31f2be955
Make "shipment" field required for a SalesOrderAllocation
...
- Deleting a "Shipment" will delete any "Allocation" objects which reference it
- Improve existing data migration for new shipment model
2021-10-25 22:47:41 +11:00
Oliver
ce5b47460a
Added data migration for existing SalesOrder instances
...
- If a SalesOrder is "PENDING" or there are allocations available, a shipment is created
2021-10-25 22:35:27 +11:00
Oliver
2f7e0974b7
Add 'shipment' foreign-key field to SalesOrderAllocation model
2021-10-25 17:42:56 +11:00
Oliver
f00ec26efd
Create SalesOrderShipment model
2021-10-25 13:09:06 +11:00
Oliver
5f6e67086f
Add "reload" button for salesorderlineitem table
2021-10-24 19:35:23 +11:00
Oliver
6ebb956c8d
Fix generation of API documentation
...
- Can't use get_object_or_404 in API views!
2021-10-17 22:32:03 +11:00
Oliver
a97a918860
cut out the fat
...
(removing dead code for outdated form views)
2021-10-17 21:46:33 +11:00
Oliver
ccaa7d2683
Merge branch 'master' into build-output-complete
2021-10-16 13:18:35 +11:00
Oliver
b60296e494
Add some more unit tests
2021-10-16 13:16:19 +11:00
Oliver
bf47b57c82
working on updating build output tables
2021-10-14 23:46:21 +11:00
Oliver
be6f417dff
Random button cleanup
2021-10-14 23:13:12 +11:00
Oliver
54dd05a24d
Add an API serializer to complete build outputs
2021-10-14 23:13:01 +11:00
Oliver
2c9bbb051a
Add some unit tests
...
- Saving a model automatically updates the reference_int field
- Data migrations are correctly applied
2021-10-14 19:12:23 +11:00
Oliver
d0f60766e0
exclude new field from admin view
2021-10-14 18:57:02 +11:00
Oliver
d3d1d2f577
Auto-rebuild the reference field for the SalesOrder on save
2021-10-14 18:00:17 +11:00
Oliver
068b54f666
Data migration for PurchaseOrder and SalesOrder models
2021-10-14 17:58:09 +11:00