2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 11:45:31 +00:00

Order picture action (#557)

* Add "take picture" to purchase order detail

* Rename uploaded images

* Provide prefix when uploading images

* Add similar functionality for "sales order" detail

* Add new settings screens

* Control camera shortcut

* Bump release notes
This commit is contained in:
Oliver
2024-12-05 14:38:53 +11:00
committed by GitHub
parent 4698e7e82c
commit 2e798b1bd1
14 changed files with 321 additions and 17 deletions

View File

@ -181,7 +181,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
});
// Request the number of parameters for this part
showParameters = await InvenTreeSettingsManager().getValue(INV_PART_SHOW_PARAMETERS, true) as bool;
showParameters = await InvenTreeSettingsManager().getBool(INV_PART_SHOW_PARAMETERS, true);
// Request the number of attachments
InvenTreePartAttachment().countAttachments(part.pk).then((int value) {
@ -192,7 +192,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
}
});
showBom = await InvenTreeSettingsManager().getValue(INV_PART_SHOW_BOM, true) as bool;
showBom = await InvenTreeSettingsManager().getBool(INV_PART_SHOW_BOM, true);
// Request the number of BOM items
InvenTreePart().count(
@ -588,6 +588,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
builder: (context) => AttachmentWidget(
InvenTreePartAttachment(),
part.pk,
L10().part,
part.canEdit
)
)