fix: prevent manual membership programs from being filtered as multi-level in POS order logic

This commit is contained in:
Suherdy Yacob 2026-06-03 21:46:12 +07:00
parent af99678406
commit 9d1fe545e3

View File

@ -48,7 +48,7 @@ patch(PosOrder.prototype, {
// With the guard set, this._programIsApplicable(p) will skip the custom block, // With the guard set, this._programIsApplicable(p) will skip the custom block,
// effectively calling only the base logic for each candidate program. // effectively calling only the base logic for each candidate program.
multiLevelPrograms = allPrograms.filter( multiLevelPrograms = allPrograms.filter(
(p) => p.multi_level_membership && this._programIsApplicable(p) (p) => p.multi_level_membership && !p.manual_membership && this._programIsApplicable(p)
); );
} finally { } finally {
_checkingMultiLevel = false; _checkingMultiLevel = false;