Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/app.js
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | methods: { | ||||
} | } | ||||
} | } | ||||
link.href = window.URL.createObjectURL(response.data) | link.href = window.URL.createObjectURL(response.data) | ||||
link.download = filename | link.download = filename | ||||
link.click() | link.click() | ||||
}) | }) | ||||
}, | }, | ||||
price(price) { | price(price, currency) { | ||||
return (price/100).toLocaleString('de-DE', { style: 'currency', currency: 'CHF' }) | return (price/100).toLocaleString('de-DE', { style: 'currency', currency: currency || 'CHF' }) | ||||
}, | }, | ||||
priceLabel(cost, units = 1, discount) { | priceLabel(cost, units = 1, discount) { | ||||
let index = '' | let index = '' | ||||
if (units < 0) { | if (units < 0) { | ||||
units = 1 | units = 1 | ||||
} | } | ||||
▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines |