Labour Rates Plugin
The Labor Rates Plugin facilitates the management and configuration of labor rates for various services within the calculation process. This plugin allows users to:
Define Rates: Set specific hourly labor rates for different types of work or technician skill levels, ensuring accurate cost estimation for each job. Categorize Services: Organize rates by service categories, enabling streamlined management and quick reference. Integrate with Calculations: Seamlessly link defined labor rates to the Calculation Plugin, ensuring that estimates reflect the latest rates in real time. This plugin is essential for businesses aiming to enhance their pricing accuracy and operational efficiency, allowing for transparent and competitive service estimates.
Plugin options interface
interface PluginOptions {
contractId?: number
onClose?: () => void
onSubmit?: () => void
token?: string
credentials?: {
customerNumber: string
user: string
password: string
}
selector?: string
settings?: {
networkType?: 'DAT' | 'ANIA'
}
}
Example
<!DOCTYPE html>
<html lang="en">
<head>
<!-- load plugin styles -->
<link
href="https://plugins.wedat.eu/labour-rates/plugin.css"
rel="stylesheet"
/>
</head>
<body>
<!-- element to which plugin will be rendered -->
<div class="plugin"></div>
<!-- load plugin JS synchronously -->
<script src="https://plugins.wedat.eu/labour-rates/plugin.js"></script>
<!-- init plugin options in your JS file or inline JS like this -->
<script>
window.LABOUR_RATES_API.init({
selector: '.plugin',
contractId: '48782356'
})
</script>
</body>
</html>
Example with token
<!DOCTYPE html>
<html lang="en">
<head>
<!-- load plugin styles -->
<link
href="https://plugins.wedat.eu/labour-rates/plugin.css"
rel="stylesheet"
/>
</head>
<body>
<!-- element to which plugin will be rendered -->
<div class="plugin"></div>
<!-- load plugin JS synchronously -->
<script src="https://plugins.wedat.eu/labour-rates/plugin.js"></script>
<!-- init plugin options in your JS file or inline JS like this -->
<script>
window.LABOUR_RATES_API.init({
selector: '.plugin',
contractId: '48782356',
token:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJkYXQiLCJpYXQiOjE2Mjc5MTAwMTg0MDUsImNsbnQiOiIzMTMxNDExIiwidXNlciI6ImZlcnJzaW1vIiwiYXBpdCI6IlJTQS1PQUVQLTI1NiIsImFwaXIiOiJKR2lPUE5mNXMwbDVn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