Commit Graph

2641 Commits

Author SHA1 Message Date
Oliver Walters
eb3b5308ab Fixes for unit testing 2020-04-13 19:51:13 +10:00
Oliver Walters
f243b567fd Short-circuit the custom migration if there are no SupplierPart objects
- This allows the unit testing to run!
2020-04-13 19:46:57 +10:00
Oliver Walters
2839f94773 Fix supplier-part-table for Part view 2020-04-13 19:38:40 +10:00
Oliver Walters
62199aedf5 More API fixes
- Allow searching supplier parts by manufacturer name
- Better rendering of supplier part table
2020-04-13 19:33:44 +10:00
Oliver Walters
a50ecb24c1 Fix "supplier parts" tab for Company display
Also PEP fixes
2020-04-13 19:16:57 +10:00
Oliver Walters
f067eae7d2 Cleanup display of "SupplierPart" page 2020-04-13 18:58:50 +10:00
Oliver Walters
5f0080cc54 "Part" column in Stock table links to supplier part 2020-04-13 18:53:50 +10:00
Oliver Walters
1b1cd944be API changes
- Allow SupplierPart to be filtered by 'company' in addition to 'supplier' and 'manufacturer'
- Stock can now also be filtered by 'company'
2020-04-13 18:50:59 +10:00
Oliver Walters
635c4339e0 Change related name for SuppleirPart.supplier 2020-04-13 18:40:01 +10:00
Oliver Walters
2ea1e72c44 Update company API
- option to include manufacturer_detail
- improve company serializer
2020-04-13 17:37:44 +10:00
Oliver Walters
6ef32dfa2d Doc fix for mgiration 2020-04-13 17:07:15 +10:00
Oliver Walters
290002fe9d Custom migration for walking user through the process of mapping supplierpart to manufacturer 2020-04-13 17:03:25 +10:00
Oliver Walters
890e938662 Add migration to create a 'manufacturer' field to the SupplierPart model 2020-04-13 17:03:22 +10:00
Oliver Walters
acebe61ac5 Add 'manufacturer' field to SupplierPart object
- ForeignKey link to Company model
2020-04-13 16:41:17 +10:00
Oliver Walters
e9e734acce Rename "manufacturer" to "manufacturer_name" 2020-04-13 13:29:17 +10:00
Oliver Walters
34abf34c0f Improve company search results page 2020-04-13 13:13:54 +10:00
Oliver Walters
8adc83b650 Customize "CompanyCreate" form based on calling url 2020-04-13 13:09:23 +10:00
Oliver Walters
9e9e29679d Separate views for customer / supplier / manufacturer 2020-04-13 12:47:06 +10:00
Oliver Walters
95354f09da Company table now in separate javascript file 2020-04-13 12:23:15 +10:00
Oliver Walters
f427ee4754 Improvements to company API
- Filter by is_manufacturer
- Better table display
2020-04-13 12:16:42 +10:00
Oliver Walters
fd45db9e22 Add "is_manufacturer" field to company model 2020-04-13 09:21:59 +10:00
Oliver Walters
a8ceddc8e4 Merge remote-tracking branch 'inventree/master' 2020-04-12 01:05:42 +10:00
Oliver
a921b3fcee
Merge pull request #711 from SchrodingersGat/tweakers
Table Filtering
2020-04-12 01:05:03 +10:00
Oliver Walters
5e2ed06c2d Add some more translations 2020-04-12 01:00:49 +10:00
Oliver Walters
3c46e12839 Further work on decimal rounding
- Prevent numbers from being represented in scientific notation
2020-04-12 00:56:15 +10:00
Oliver Walters
04cee99791 Update for supplier part list table rendering 2020-04-12 00:46:29 +10:00
Oliver Walters
f1f27f08cb Add icons to part base 2020-04-12 00:40:48 +10:00
Oliver Walters
f248b20ba4 Fix 2020-04-12 00:33:43 +10:00
Oliver Walters
6ed482d9eb Update translations 2020-04-12 00:33:10 +10:00
Oliver Walters
fd8273e3e2 Improve build base rendering
- Consolidate style
- Fix rendering of part pricing
2020-04-12 00:31:59 +10:00
Oliver Walters
a65c80dbf3 Small fixes here and there 2020-04-12 00:20:29 +10:00
Oliver Walters
7503596ea4 More fixes
- Add a set of template tags for rendering status codes
- Improve build API filtering
- Remove some outdated files
- Fix unit testing
2020-04-12 00:10:33 +10:00
Oliver Walters
59778130cd Revert display of "INACTIVE" parts 2020-04-11 23:09:21 +10:00
Oliver Walters
de6f2d37e5 Coalesce baby, yeah! 2020-04-11 23:05:07 +10:00
Oliver Walters
2560613e36 Update API docstring 2020-04-11 23:03:03 +10:00
Oliver Walters
f5a8b110b5 Filter part table by 'is_component' status 2020-04-11 23:02:18 +10:00
Oliver Walters
0f90e8f522 Filter parts by 'is_assembly'
Also greatly improve rendering of the Part table
2020-04-11 22:57:40 +10:00
Oliver Walters
e1c6ad7761 Logic fix for part filtering 2020-04-11 22:57:16 +10:00
Oliver Walters
e86bc4fa6d Add ability to filter parts by "low_stock"
- Huzzah for the "Coalesce" function, eh?
2020-04-11 22:43:51 +10:00
Oliver Walters
f06078f4ac CSS tweaks
- Still doesn't look exactly right
2020-04-11 22:25:34 +10:00
Oliver Walters
5e706554b1 Part table filtering
- Filter by active status
- Filter by 'is_template' status
- Filter by 'has_stock'
- Allow cascading sublocations
- API improvements to allow new features
2020-04-11 22:10:15 +10:00
Oliver Walters
d606df16f7 Bug fixes:
- prevent addition of empty filter tags
2020-04-11 22:09:09 +10:00
Oliver Walters
57d7d729c1 More table rendering fixes 2020-04-11 21:23:26 +10:00
Oliver Walters
e69f6c5b9d table fixes 2020-04-11 21:08:27 +10:00
Oliver Walters
0fc353ebac Filter purchase-order table for 2020-04-11 20:59:57 +10:00
Oliver Walters
6a0c5b78ae Refactor the purchase-order table
- Filter by order status
2020-04-11 20:56:31 +10:00
Oliver Walters
ba7c0bdea0 Improvements for status code generation
- Now includes labels
- Python template generates javascript which is then rendered? I don't even follow it any more
2020-04-11 20:48:02 +10:00
Oliver Walters
5d70f496a5 Ability to filter build list by status 2020-04-11 20:03:31 +10:00
Oliver Walters
f0ffb0f8c0 Ability to include part_detail in build API
- Build list now uses bootstrapTable
2020-04-11 19:59:16 +10:00
Oliver Walters
a4e45eab13 Skeleton for AJAXified build table 2020-04-11 19:36:01 +10:00