glaciyan/gscale

Option to take checked off items into account for "Show Total"

Opened this issue · 0 comments

Should be a simple checkbox next to the modal header with a label saying something like "Subtract Checked off Items" or "Subtract Completed Items", when the checkbox is on true it should subtract checked off items, when its false it should show total of everything regardless of any items being checked off. Default should be false.

The total is calculated here:

const total = computed(() => {
if (buildsData.value) return mergeAmountByName(buildsData.value.map((build) => build.items));
else return [];
});

image