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
37bd5c0507
Add serializer and API endpoint for BomItemSubstitute class
2021-10-13 13:58:41 +11:00
Oliver
324ccd805d
Include BomItem substitutes in the serializer
2021-10-13 11:07:44 +11:00
Oliver
d8b9420d2d
Add a query param `?include_pricing' to the BomItem API
...
- Set this to false to disable pricing info in BOM
- Drastic reduction in query speed
2021-10-08 12:47:03 +11:00
Oliver
dd4428464d
Receiving items against a purchase order now makes use of the API forms
...
- Delete old unused code
- Improve serializer validation
2021-10-05 16:05:18 +11:00
Oliver Walters
ec88415f3d
Add "units" to PartBriefSerializer
2021-08-26 21:54:25 +10:00
Oliver
ff8dcabb12
New custom serializer for handling attachments
2021-08-15 22:43:52 +10:00
Matthias
ad656b7ca7
extending API to supply price wihtout formatting
2021-08-09 01:49:55 +02:00
Oliver
25ff74835d
Refactor PartCategoryParameter API
2021-07-28 14:05:49 +10:00
Oliver
84fc2785d6
Create a custom Manager class for the Part model
...
- Always perform prefetch_related calls
2021-07-20 21:26:51 +10:00
Oliver Walters
36cf614aed
Add "level" to PartCategory serializer
...
- Also use tree ordering by default
2021-07-18 21:11:53 +10:00
Oliver
cbf0e0bd4a
Refactor forms for editing and deleting a PartParameter
...
- PartParameters now loaded using the API, not pre-rendered
2021-07-09 01:56:04 +10:00
Oliver
72526307ae
Renderer for supplier part
2021-07-02 17:11:07 +10:00
Oliver
30ac5dba55
Display attachment upload date
2021-06-30 17:44:23 +10:00
Oliver
621f47e46c
Replace "edit part category" form
2021-06-30 01:04:39 +10:00
Oliver
798bc17311
Merge remote-tracking branch 'inventree/master' into drf-api-forms
2021-06-29 09:57:03 +10:00
Matthias
a3ec24fbcc
Reenabling prices for BOM items
...
Closes #1721
2021-06-27 13:48:08 +02:00
Oliver
b20af54b76
Create select2 instance for related field
2021-06-25 07:36:37 +10:00
Oliver
04374c71c2
Annotate models with their API list view
...
- It will make sense, trust me
2021-06-25 00:17:58 +10:00
Oliver
36e6b9f164
Set allow_null flag on image fields
2021-06-23 11:40:37 +10:00
Oliver
878f26c770
Enable upload of company image via the API
2021-06-23 08:39:06 +10:00
Oliver
2fc7c3d883
fix typo
2021-06-22 22:16:11 +10:00
Oliver
e29594811b
Allow direct upload of images via the API
2021-06-22 22:09:30 +10:00
Matthias
0d93c96f2a
adding internal price breaks as in #1606
2021-06-05 17:01:49 +02:00
Oliver Walters
5c71f04360
Add "allow_variants" field to BomItem
2021-06-01 13:59:01 +10:00
eeintech
5ce262172d
Fixed bom_item unit test
2021-05-14 16:59:59 -04:00
eeintech
274eb51e48
Added read_only args
2021-05-14 16:29:55 -04:00
eeintech
1940fd5199
Now processing currencies
2021-05-14 16:16:23 -04:00
eeintech
68f5ec8b6a
Added currency conversion
2021-05-13 17:09:52 -04:00
eeintech
32d0f3039d
Obviously new float fields should be read-only...
2021-05-13 16:17:45 -04:00
eeintech
f2e9f58f1b
Added purchase price range and average to BOM items/view
2021-05-13 15:47:42 -04:00
Matthias
f2b0717d10
removes all lines consisting only of spaces
...
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
Oliver Walters
0fbf39f1bc
More fixes
2021-04-20 10:59:28 +10:00
Oliver Walters
cf6a03456f
Adds 'suppliers' field to Part serializer
...
- Number of supplier parts associated with the Part object
2021-02-22 18:44:31 +11:00
Oliver Walters
40d75090a7
Add 'inherited' flag to API
2021-02-17 21:53:26 +11:00
Oliver Walters
9a30108b75
Auto-update the expiry date in the StockItem form when switching Part selection
2021-01-05 00:37:42 +11:00
Oliver Walters
e3231bbedb
Hide "pricing" information in the BOM table
2020-11-24 20:58:18 +11:00
eeintech
ac2797c7a1
Improved API endpoint for category parameter templates
2020-11-16 16:10:00 -05:00
Oliver Walters
cb3c86f87a
Merge remote-tracking branch 'inventree/master' into currency-support
...
# Conflicts:
# InvenTree/InvenTree/settings.py
# InvenTree/InvenTree/urls.py
# InvenTree/templates/InvenTree/settings/tabs.html
# InvenTree/users/models.py
# requirements.txt
IMPORTANT: Had to merge some migration files due to different migrations applied on the part model tables
2020-11-12 17:24:48 +11:00
Oliver Walters
4dff18e4a6
Remove common_currency model entirely
...
- A lot of views / pages / etc needed to be updated too
- Now uses django-money fields entirely
- Create a manual rate exchange backend (needs more work!)
2020-11-11 00:21:06 +11:00
eeintech
2a563d7370
Added category list of parameter templates table to settings
2020-10-31 09:18:33 -05:00
eeintech
3143242d13
Added category 'default_location' to serializer
2020-10-12 13:14:24 -05:00
eeintech
eb98496a79
Added part 'default_location' to serializer
2020-10-12 07:25:32 -05:00
Oliver Walters
3ee7be1d58
Add "optional" field to BomItem
...
- Defaults to False
- Indicates that the BomItem is "optional" for a build
- Will be used in the future when calculating if a Build output is fully allocated!
2020-10-05 00:42:09 +11:00
Oliver Walters
86660a5f17
style fixes
2020-09-19 19:52:48 +10:00
Oliver Walters
ca1281ee10
Adds ajax table for part sale price information
2020-09-18 22:11:51 +10:00
Oliver Walters
46a8107be5
Refactor stock filter
2020-09-05 23:35:48 +10:00
Oliver Walters
f7ad38dad5
Add unit tests for new aggregation annotation approach
2020-09-05 23:28:54 +10:00
Oliver Walters
42967905bc
New approach for multiple annotations
...
- Use the django-sql-utils addon - https://github.com/martsberger/django-sql-utils
- The "distinct=True" flag was not doing what I thought it was doing...
2020-09-05 22:35:19 +10:00
Oliver Walters
f1373e3bea
Improve speed of BomItem API queries
...
- Including the pricing information takes absolutely ages, takes too long!!
2020-08-15 21:52:32 +10:00