admin.js
1 day ago
appointment.js
1 day ago
booking.js
1 day ago
customers.js
1 day ago
event.js
1 day ago
package.js
1 day ago
payment.js
1 day ago
socialAuthOptions.js
1 day ago
status.js
1 day ago
useReactiveCustomize.js
1 day ago
package.js
16 lines
| 1 | import { useAmount } from '../common/pricing' |
| 2 | |
| 3 | function usePackageBookingPrice(data) { |
| 4 | let amountData = useAmount( |
| 5 | null, |
| 6 | data.coupon, |
| 7 | data.tax ? data.tax[0] : null, |
| 8 | data.price - (data.price / 100) * data.discount, |
| 9 | false, |
| 10 | ) |
| 11 | |
| 12 | return amountData.price - amountData.discount + amountData.tax |
| 13 | } |
| 14 | |
| 15 | export { usePackageBookingPrice } |
| 16 |