|
@@ -145,6 +145,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import numeral from 'numeral'
|
|
|
import paymentCycle from "../../../resetTeaming/modals/payment-cycle";
|
|
|
import otherform from "../../../resetTeaming/modals/other";
|
|
|
import extraClass from "../../../resetTeaming/modals/extra-class";
|
|
@@ -213,7 +214,7 @@ export default {
|
|
|
priceChange (item, index) {
|
|
|
const _ = [...this.eclass]
|
|
|
const active = this.organizationCourseUnitPriceSettingsByType[item.courseType] || {}
|
|
|
- const price = Math.ceil((item.courseTotalMinuties || 1) * (active.unitPrice || 1))
|
|
|
+ const price = Math.round(numeral(item.courseTotalMinuties || 1).multiply(active.unitPrice || 1).value())
|
|
|
item.courseCurrentPrice = price
|
|
|
item.courseOriginalPrice = price
|
|
|
_[index] = item
|