Oliver Walters
fb96651c15
Render column selection options
...
- Guess which header is which
2019-06-28 19:40:27 +10:00
Oliver Walters
60050e9f32
Don't restrict BomItem form to active parts for editing
2019-06-28 10:20:37 +10:00
Oliver Walters
b6a6e2dae7
Change the manner in which active parts are filtered for BOM
...
- Prevented BOM from displaying for an inactive part
- Now manually filter the queryset in the form view
2019-06-28 10:00:23 +10:00
Oliver Walters
67b53d9983
PEP
2019-06-28 00:15:23 +10:00
Oliver Walters
4648db6ce5
Pass file data through to the next form page
2019-06-27 23:49:01 +10:00
Oliver Walters
45d16f2c42
Create new file bom.py for BOM helper functions
...
- New class for managing BOM upload
2019-06-27 22:46:11 +10:00
Oliver Walters
65c7454124
Require certain headers to be present in the file
2019-06-27 22:16:24 +10:00
Oliver Walters
2831ac55c4
Link to download a BOM template file
2019-06-27 22:15:58 +10:00
Oliver Walters
72486448b8
Fix form title
2019-06-27 21:17:33 +10:00
Oliver Walters
86695cf2bb
Validate uploaded BOM file with tablib
...
- Check to see if a bom_file file object was uploaded
- Pass off to the BOM file validity checker
- Only a valid tabulated dataset will be accepted
2019-06-27 21:09:33 +10:00
Oliver Walters
8b207d0d1d
Initial work towards uploading a BOM file
...
- Create a form with a single FileField
2019-06-27 21:09:33 +10:00
Oliver Walters
2dc43f0cf1
no message
2019-06-27 21:08:49 +10:00
Oliver Walters
cbfb6bd24c
no message
2019-06-25 19:16:24 +10:00
Oliver Walters
d6fcf85cd2
Set part category for multiple parts at once
2019-06-25 19:15:39 +10:00
Oliver Walters
0285d3ee83
Improved button mechanics
2019-06-18 22:54:32 +10:00
Oliver Walters
1b06d86f59
Export purchase order to CSV
2019-06-13 22:38:10 +10:00
Oliver Walters
67248ec4dd
List purchase orders for a given part
2019-06-05 21:47:22 +10:00
Oliver Walters
4d518f4512
PEP
2019-05-26 16:05:54 +10:00
Oliver Walters
8715e29c31
Add ability to make variant from template
2019-05-26 16:00:27 +10:00
Oliver Walters
4b41766312
And mode
2019-05-21 00:31:34 +10:00
Oliver Walters
6ae48d07c4
Cleanup pricing algorithms
2019-05-20 23:53:39 +10:00
Oliver Walters
73041a3fe6
Fix div-by-zero for part pricing
2019-05-20 07:53:23 +10:00
Oliver Walters
a54760b219
Improve pricing display
2019-05-18 23:44:43 +10:00
Oliver Walters
dcf79338c1
Add pop-up pricing window for part
...
- Cost to purchase from suppliers
- Cost to build from BOM
2019-05-18 23:09:08 +10:00
Oliver Walters
cdc55bb5d3
PEP fixes
2019-05-18 23:08:42 +10:00
Oliver Walters
0cfb243eb3
Move SupplierPart and SupplierPriceBreak to the 'Company' app
...
- https://docs.djangoproject.com/en/2.2/ref/models/options/#django.db.models.Options.db_table
- https://stackoverflow.com/questions/3519143/django-how-to-specify-a-database-for-a-model
- And others, presumably
2019-05-18 23:08:34 +10:00
Oliver Walters
5043c354b1
Set default value for SupplierPriceBreak
...
Edit or Delete a SupplierPriceBreak
2019-05-18 23:08:30 +10:00
Oliver Walters
fc3072a459
Form for creating a new price break for a supplier part
2019-05-18 23:08:25 +10:00
Oliver Walters
a316681ec8
Pass object data back to modal when creating new object
2019-05-14 23:04:00 +10:00
Oliver Walters
d1de6eb1f9
Copy across default tags when creating a new part
2019-05-14 17:32:29 +10:00
Oliver Walters
069cebb669
PEP
2019-05-13 23:03:37 +10:00
Oliver Walters
fcdddf6bb6
Cleaup for delete supplier part form
2019-05-13 22:52:20 +10:00
Oliver Walters
e1e5cde60f
Renamed copyBomFrom to deepCopy
...
- Allows passing of more data (in the future) e.g. tags, etc
- Performs copy of the part image
2019-05-13 21:54:52 +10:00
Oliver Walters
00f7ece6b4
PEP fixes
2019-05-13 21:42:05 +10:00
Oliver Walters
2408318eae
Add new view to duplicate a part
...
- Allows 'deep_copy' (copies all BOM items for the duplicated part)
2019-05-13 21:41:32 +10:00
Oliver Walters
e3a9a70678
Add a form/view/etc for BOM validation
2019-05-12 16:27:50 +10:00
Oliver Walters
b3cca1d851
Improve form management when possible part matches are found
...
- Display the checkbox always
- Display a warning message above the form
2019-05-11 18:07:37 +10:00
Oliver Walters
19854b4709
Improve str2bool to validate checkbox return values
...
- A checked checkbox returns 'on' :|
2019-05-11 18:06:17 +10:00
Oliver Walters
2e5b0bc961
PEP
2019-05-11 12:29:51 +10:00
Oliver Walters
84d2fce8ca
Add a 'confirm_creation' input if there are possible part matches
2019-05-11 12:29:02 +10:00
Oliver Walters
d9c0d2f5e3
Update PartCreate form
...
- Display list of close matches
- Invalidate form (for now)
2019-05-11 11:55:17 +10:00
Oliver Walters
343850c4f0
Cleanup for part.views
2019-05-11 09:51:45 +10:00
Oliver Walters
fb38ddb1b3
Limit choices for 'parent' field when editing PartCategory
2019-05-08 17:57:31 +10:00
Oliver Walters
9a6cf259a6
PEP fixes
2019-05-07 14:48:35 +10:00
Oliver Walters
dcbd5d819c
Enable DnD for Company image
...
- Can actually use the existing form to do partial upload!
- Generecise the drag-and-drop upload function
- Remove some (now unnecessary) Python View code
2019-05-07 14:47:31 +10:00
Oliver Walters
0969edc431
Some tweaks
...
- Add (unused) function to download an external file
- JS tweaks
2019-05-07 08:07:33 +10:00
Oliver Walters
22ff085b15
PEP fixes
2019-05-07 00:11:27 +10:00
Oliver Walters
fe4acd48a7
Add the ability to extract image URL information when drag-and-dropping image URL from a browser window
...
- Can't do anything with it yet...
- Code is almost there but leaving for now
2019-05-07 00:04:35 +10:00
Oliver Walters
bb702367b6
Test that uploaded image is an image file, return error otherwise
...
- New javascript function inventreeFileUpload
2019-05-06 22:20:06 +10:00
Oliver Walters
c88149b9aa
POST image data to View
...
- https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects
- https://stackoverflow.com/questions/25390598/append-called-on-an-object-that-does-not-implement-interface-formdata#25390646
2019-05-06 21:49:01 +10:00