fixed issue in preordercampaign that the total unit count * 2

This commit is contained in:
Luca Haid
2025-03-06 13:51:07 +01:00
parent fc222cd7b9
commit 478779fec7

View File

@@ -41,7 +41,7 @@ Vue.component('Preordercampaign', {
</template>
<template v-if="campaign.count_total_units.total_unit_count > 0">
<span>Gesamt:</span><span>{{ campaign.active_preorder_count.total_count }} /</span>
<span>{{ campaign.count_total_units.total_unit_count * 2 }}</span>
<span>{{ campaign.count_total_units.total_unit_count }}</span>
<span>({{ ((campaign.active_preorder_count.total_count / (campaign.count_total_units.total_unit_count * 2)) * 100 || 0).toFixed(1) }} %)</span>
</template>
</div>