Prepare combo list reload with revisions and fix box/storage in webgui

This commit is contained in:
thooge committed 2026-10-18 10:35:35 +02:00
1 parent ee947b772f
commit aee50ecb4f
17 files changed
+128 -43

No files matched your search

+7
View File
@@ -380,6 +380,13 @@ elseif ($action == ACT_VIEW_LIST):
echo '<h2>', _('Shopping list'), "</h2>\n";
// TODO Distinguish between provisions belonging to the boat and provisions
// that are freely available.
// - storage with vid
// - box in storage with vid
// - box without sid is free
// - prov without sid and boxid is free
$sql = "SELECT provid, provname, unit, target - number AS buy "
. "FROM provisions "
. "WHERE target IS NOT NULL AND number < target "