mirror of
https://github.com/inventree/inventree-app.git
synced 2026-07-22 20:23:26 +00:00
Legacy prune (#850)
* Update minimum supported API version * Remove legacy search support * Remove supportsContactModel * More updates * Final updates * Remove broken ref
This commit is contained in:
@@ -241,7 +241,7 @@ class _PurchaseOrderDetailState
|
||||
List<SpeedDialChild> barcodeButtons(BuildContext context) {
|
||||
List<SpeedDialChild> actions = [];
|
||||
|
||||
if (api.supportsBarcodePOReceiveEndpoint && widget.order.isPlaced) {
|
||||
if (widget.order.isPlaced) {
|
||||
actions.add(
|
||||
SpeedDialChild(
|
||||
child: Icon(Icons.barcode_reader),
|
||||
@@ -258,7 +258,7 @@ class _PurchaseOrderDetailState
|
||||
);
|
||||
}
|
||||
|
||||
if (widget.order.isPending && api.supportsBarcodePOAddLineEndpoint) {
|
||||
if (widget.order.isPending) {
|
||||
actions.add(
|
||||
SpeedDialChild(
|
||||
child: Icon(TablerIcons.circle_plus, color: COLOR_SUCCESS),
|
||||
@@ -288,12 +288,10 @@ class _PurchaseOrderDetailState
|
||||
INV_PO_SHOW_CAMERA,
|
||||
true,
|
||||
);
|
||||
supportProjectCodes =
|
||||
api.supportsProjectCodes &&
|
||||
await api.getGlobalBooleanSetting(
|
||||
"PROJECT_CODES_ENABLED",
|
||||
backup: true,
|
||||
);
|
||||
supportProjectCodes = await api.getGlobalBooleanSetting(
|
||||
"PROJECT_CODES_ENABLED",
|
||||
backup: true,
|
||||
);
|
||||
|
||||
completedLines = 0;
|
||||
|
||||
@@ -367,11 +365,6 @@ class _PurchaseOrderDetailState
|
||||
// Cannot edit supplier field from here
|
||||
fields.remove("supplier");
|
||||
|
||||
// Contact model not supported by server
|
||||
if (!api.supportsContactModel) {
|
||||
fields.remove("contact");
|
||||
}
|
||||
|
||||
// ProjectCode model not supported by server
|
||||
if (!supportProjectCodes) {
|
||||
fields.remove("project_code");
|
||||
|
||||
Reference in New Issue
Block a user