mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-15 11:45:31 +00:00
Order responsible (#602)
* 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:
@ -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";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user