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

Order responsible (#602)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled

* Bump release notes and version

* Display responsible owner for purchase order

* Display responsible owner for sales order

* Display order completion date
This commit is contained in:
Oliver
2025-01-20 23:22:10 +11:00
committed by GitHub
parent 2ea29368ed
commit 854ef95fbf
7 changed files with 69 additions and 13 deletions

View File

@ -1530,8 +1530,13 @@ class InvenTreeAPI {
}
// Return a boolean global setting value
Future<bool> getGlobalBooleanSetting(String key) async {
Future<bool> getGlobalBooleanSetting(String key, { bool backup = false }) async {
String value = await getGlobalSetting(key);
if (value.isEmpty) {
return backup;
}
return value.toLowerCase().trim() == "true";
}