@ossy/consultancy 3.6.1 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +3 -3
- package/src/CreateConsultancyButton.jsx +32 -0
- package/src/Overview.jsx +95 -109
- package/src/company-basic-info.schema.js +11 -4
- package/src/consultancy.page.jsx +4 -8
- package/src/contract.schema.js +3 -3
- package/src/employee.schema.js +2 -2
- package/src/en.translations.json +82 -24
- package/src/index.js +1 -0
- package/src/sv.translations.json +101 -1
- package/src/vacation.schema.js +4 -3
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ These schemas support platform automation workflows:
|
|
|
38
38
|
|
|
39
39
|
| Export | Description |
|
|
40
40
|
|---|---|
|
|
41
|
+
| `CreateConsultancyButton` | Add CTA that opens create-document for consultancy schemas |
|
|
41
42
|
| `ConsultancySchema` | Canonical schema id constants |
|
|
42
43
|
| `employeeSchema`, `contractSchema`, … | Schema definitions for manifest build |
|
|
43
44
|
| `location` | Workspace storage path (`/@ossy/consultancy/`) |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/consultancy",
|
|
3
3
|
"description": "Consultancy feature package — schemas for employees, contracts, opportunities, and proposals",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.8.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"module": "./src/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ossy/schema": "^3.
|
|
25
|
+
"@ossy/schema": "^3.8.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@ossy/calendar": "*",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@ossy/router-react": "*",
|
|
31
31
|
"react": "*"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "14548dfc2019e7258e8c75db527acbf66fe829bd"
|
|
34
34
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Button, useLocale } from '@ossy/design-system'
|
|
3
|
+
import { useRouter } from '@ossy/router-react'
|
|
4
|
+
import { location } from './locations.js'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Add CTA that opens the generic create-document form for consultancy schemas.
|
|
8
|
+
* @param {{ schemaId?: string }} [props]
|
|
9
|
+
*/
|
|
10
|
+
export function CreateConsultancyButton ({ schemaId, ...props }) {
|
|
11
|
+
const { t } = useLocale()
|
|
12
|
+
const router = useRouter()
|
|
13
|
+
const params = new URLSearchParams({ location, category: 'Consultancy' })
|
|
14
|
+
if (schemaId) params.set('schemaId', schemaId)
|
|
15
|
+
if (typeof window !== 'undefined') {
|
|
16
|
+
const returnTo = `${window.location.pathname}${window.location.search}`
|
|
17
|
+
if (returnTo.startsWith('/') && !returnTo.startsWith('//')) {
|
|
18
|
+
params.set('returnTo', returnTo)
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<Button
|
|
24
|
+
variant="cta"
|
|
25
|
+
prefix="add"
|
|
26
|
+
href={router.getHref(`@create-document?${params.toString()}`)}
|
|
27
|
+
{...props}
|
|
28
|
+
>
|
|
29
|
+
{t('design-system.add')}
|
|
30
|
+
</Button>
|
|
31
|
+
)
|
|
32
|
+
}
|
package/src/Overview.jsx
CHANGED
|
@@ -1,121 +1,107 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { View, Text,
|
|
2
|
+
import { View, Text, useLocale } from '@ossy/design-system'
|
|
3
3
|
import { useCompany } from '@ossy/calendar'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
5
|
+
function SectionPanel ({ title, children }) {
|
|
6
|
+
return (
|
|
7
|
+
<View surface="primary" roundness="xs" style={{ minWidth: 0, overflow: 'hidden', height: '100%' }}>
|
|
8
|
+
<View stack bordered>
|
|
9
|
+
<View.Item
|
|
10
|
+
data-surface="primary"
|
|
11
|
+
layout="row"
|
|
10
12
|
style={{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
justifyContent: 'space-between',
|
|
15
|
+
padding: 'var(--space-s) var(--space-m)',
|
|
16
|
+
gap: 'var(--space-m)',
|
|
17
|
+
height: '48px',
|
|
18
|
+
flexShrink: 0,
|
|
16
19
|
}}
|
|
17
20
|
>
|
|
21
|
+
<Text variant="small" as="h2" style={{ fontWeight: 'bold' }}>{title}</Text>
|
|
22
|
+
</View.Item>
|
|
23
|
+
<View.Item>
|
|
24
|
+
{children}
|
|
25
|
+
</View.Item>
|
|
26
|
+
</View>
|
|
27
|
+
</View>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
18
30
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}}
|
|
28
|
-
>
|
|
29
|
-
<Text variant="heading-tertiary" as="h3">Fiscal years</Text>
|
|
30
|
-
<Separator />
|
|
31
|
-
<View gap="s" style={{ flexGrow: 1 }}>
|
|
32
|
-
|
|
33
|
-
{company.getFiscalYears().map(fiscalYear => (
|
|
34
|
-
<View key={fiscalYear.fiscalYear} layout="row" gap="s" style={{ justifyContent: 'space-between' }}>
|
|
35
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
36
|
-
{fiscalYear.fiscalYear}:
|
|
37
|
-
</Text>
|
|
38
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
39
|
-
{fiscalYear.start} - {fiscalYear.end}
|
|
40
|
-
</Text>
|
|
41
|
-
</View>
|
|
42
|
-
))}
|
|
43
|
-
|
|
44
|
-
</View>
|
|
45
|
-
</View>
|
|
46
|
-
|
|
47
|
-
<View
|
|
48
|
-
surface="primary"
|
|
49
|
-
roundness="m"
|
|
50
|
-
gap="m"
|
|
51
|
-
layout="column"
|
|
52
|
-
style={{
|
|
53
|
-
padding: 'var(--space-xl)',
|
|
54
|
-
boxSizing: 'border-box',
|
|
55
|
-
}}
|
|
56
|
-
>
|
|
57
|
-
<Text variant="heading-tertiary" as="h3">{company.name}</Text>
|
|
58
|
-
<Separator />
|
|
59
|
-
<View gap="s" style={{ flexGrow: 1 }}>
|
|
60
|
-
|
|
61
|
-
<View layout="row" gap="s" style={{ justifyContent: 'space-between' }}>
|
|
62
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
63
|
-
Registered:
|
|
64
|
-
</Text>
|
|
65
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
66
|
-
{company.registrationDate}
|
|
67
|
-
</Text>
|
|
68
|
-
</View>
|
|
69
|
-
|
|
70
|
-
<View layout="row" gap="s" style={{ justifyContent: 'space-between' }}>
|
|
71
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
72
|
-
Financial year:
|
|
73
|
-
</Text>
|
|
74
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
75
|
-
{company.financialYearStart} - {company.financialYearEnd}
|
|
76
|
-
</Text>
|
|
77
|
-
</View>
|
|
78
|
-
|
|
79
|
-
<View layout="row" gap="s" style={{ justifyContent: 'space-between' }}>
|
|
80
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
81
|
-
VAT Number:
|
|
82
|
-
</Text>
|
|
83
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
84
|
-
{company.vatNumber}
|
|
85
|
-
</Text>
|
|
86
|
-
</View>
|
|
87
|
-
|
|
88
|
-
<View layout="row" gap="s" style={{ justifyContent: 'space-between' }}>
|
|
89
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
90
|
-
VAT Registred from:
|
|
91
|
-
</Text>
|
|
92
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
93
|
-
{company.vatRegistredFrom}
|
|
94
|
-
</Text>
|
|
95
|
-
</View>
|
|
96
|
-
|
|
97
|
-
<View layout="row" gap="s" style={{ justifyContent: 'space-between' }}>
|
|
98
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
99
|
-
VAT Payment responsibility from:
|
|
100
|
-
</Text>
|
|
101
|
-
<Text variant="m" style={{ marginBottom: 0 }}>
|
|
102
|
-
{company.vatPaymentResponsibilityFrom}
|
|
103
|
-
</Text>
|
|
104
|
-
</View>
|
|
31
|
+
function InfoRow ({ label, value }) {
|
|
32
|
+
return (
|
|
33
|
+
<View layout="row" justifyContent="space-between" gap="s">
|
|
34
|
+
<Text variant="small">{label}</Text>
|
|
35
|
+
<Text variant="small">{value ?? '—'}</Text>
|
|
36
|
+
</View>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
105
39
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
40
|
+
function formatDate (value) {
|
|
41
|
+
if (value == null || value === '') return '—'
|
|
42
|
+
if (typeof value === 'number' || /^\d+$/.test(String(value))) {
|
|
43
|
+
const ms = Number(value)
|
|
44
|
+
if (!Number.isNaN(ms)) return new Date(ms).toISOString().slice(0, 10)
|
|
45
|
+
}
|
|
46
|
+
return String(value)
|
|
47
|
+
}
|
|
114
48
|
|
|
115
|
-
|
|
49
|
+
export const Overview = () => {
|
|
50
|
+
const company = useCompany()
|
|
51
|
+
const { t } = useLocale()
|
|
52
|
+
const fiscalYears = company?.getFiscalYears?.() ?? []
|
|
53
|
+
const vatPeriod = company?.vatPaymentPeriod
|
|
54
|
+
const vatPeriodLabel = vatPeriod
|
|
55
|
+
? t(`@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.option.${vatPeriod}`)
|
|
56
|
+
: '—'
|
|
116
57
|
|
|
117
|
-
|
|
58
|
+
return (
|
|
59
|
+
<View layout="row-wrap" gap="m" style={{ alignItems: 'stretch' }}>
|
|
60
|
+
<View style={{ flex: '1 1 280px', minWidth: 0 }}>
|
|
61
|
+
<SectionPanel title={t('consultancy.overview.fiscalYears')}>
|
|
62
|
+
<View gap="s" inset="m">
|
|
63
|
+
{fiscalYears.length === 0 ? (
|
|
64
|
+
<Text variant="small" text="consultancy.overview.noFiscalYears" />
|
|
65
|
+
) : fiscalYears.map((fiscalYear) => (
|
|
66
|
+
<View key={fiscalYear.fiscalYear} layout="row" justifyContent="space-between" gap="s">
|
|
67
|
+
<Text variant="small">{fiscalYear.fiscalYear}</Text>
|
|
68
|
+
<Text variant="small">{fiscalYear.start} – {fiscalYear.end}</Text>
|
|
69
|
+
</View>
|
|
70
|
+
))}
|
|
71
|
+
</View>
|
|
72
|
+
</SectionPanel>
|
|
73
|
+
</View>
|
|
118
74
|
|
|
119
|
-
|
|
120
|
-
|
|
75
|
+
<View style={{ flex: '1 1 280px', minWidth: 0 }}>
|
|
76
|
+
<SectionPanel title={company?.name || t('consultancy.overview.company')}>
|
|
77
|
+
<View gap="s" inset="m">
|
|
78
|
+
<InfoRow
|
|
79
|
+
label={t('@ossy/consultancy/schema/company-basic-info.registrationDate.label')}
|
|
80
|
+
value={formatDate(company?.registrationDate)}
|
|
81
|
+
/>
|
|
82
|
+
<InfoRow
|
|
83
|
+
label={t('@ossy/consultancy/schema/company-basic-info.financialYearStart.label')}
|
|
84
|
+
value={`${company?.financialYearStart ?? '—'} – ${company?.financialYearEnd ?? '—'}`}
|
|
85
|
+
/>
|
|
86
|
+
<InfoRow
|
|
87
|
+
label={t('@ossy/consultancy/schema/company-basic-info.vatNumber.label')}
|
|
88
|
+
value={company?.vatNumber}
|
|
89
|
+
/>
|
|
90
|
+
<InfoRow
|
|
91
|
+
label={t('@ossy/consultancy/schema/company-basic-info.vatRegistredFrom.label')}
|
|
92
|
+
value={formatDate(company?.vatRegistredFrom)}
|
|
93
|
+
/>
|
|
94
|
+
<InfoRow
|
|
95
|
+
label={t('@ossy/consultancy/schema/company-basic-info.vatPaymentResponsibilityFrom.label')}
|
|
96
|
+
value={formatDate(company?.vatPaymentResponsibilityFrom)}
|
|
97
|
+
/>
|
|
98
|
+
<InfoRow
|
|
99
|
+
label={t('@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.label')}
|
|
100
|
+
value={vatPeriodLabel}
|
|
101
|
+
/>
|
|
102
|
+
</View>
|
|
103
|
+
</SectionPanel>
|
|
104
|
+
</View>
|
|
105
|
+
</View>
|
|
106
|
+
)
|
|
121
107
|
}
|
|
@@ -7,12 +7,19 @@ export default {
|
|
|
7
7
|
icon: 'organisation',
|
|
8
8
|
fields: [
|
|
9
9
|
{ name: 'name', type: 'text' },
|
|
10
|
-
{ name: 'registrationDate', type: '
|
|
10
|
+
{ name: 'registrationDate', type: 'date' },
|
|
11
11
|
{ name: 'vatNumber', type: 'text' },
|
|
12
12
|
{ name: 'vatRegistredFrom', type: 'text' },
|
|
13
13
|
{ name: 'vatPaymentResponsibilityFrom', type: 'text' },
|
|
14
|
-
{ name: 'vatPaymentPeriod', type: '
|
|
15
|
-
{ name: 'financialYearStart', type: '
|
|
16
|
-
{ name: 'financialYearEnd', type: '
|
|
14
|
+
{ name: 'vatPaymentPeriod', type: 'select', options: ['month', 'quarter', 'year'] },
|
|
15
|
+
{ name: 'financialYearStart', type: 'month' },
|
|
16
|
+
{ name: 'financialYearEnd', type: 'month' },
|
|
17
|
+
{
|
|
18
|
+
name: 'holidayLocale',
|
|
19
|
+
type: 'select',
|
|
20
|
+
options: [
|
|
21
|
+
'AT', 'BE', 'CH', 'DE', 'DK', 'ES', 'FI', 'FR', 'GB', 'IE', 'IT', 'NL', 'NO', 'PL', 'PT', 'SE', 'US',
|
|
22
|
+
],
|
|
23
|
+
},
|
|
17
24
|
],
|
|
18
25
|
}
|
package/src/consultancy.page.jsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Text, View,
|
|
2
|
+
import { Text, View, Page, Tags } from '@ossy/design-system'
|
|
3
3
|
import { Overview } from './Overview.jsx'
|
|
4
4
|
import { DataLoader } from '@ossy/calendar'
|
|
5
|
-
import { Definition } from '
|
|
5
|
+
import { Definition } from './Definition.js'
|
|
6
|
+
import { CreateConsultancyButton } from './CreateConsultancyButton.jsx'
|
|
6
7
|
|
|
7
8
|
export const metadata = {
|
|
8
9
|
id: 'consultancy/home',
|
|
@@ -13,7 +14,6 @@ export const metadata = {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export const ConsultancyPage = () => {
|
|
16
|
-
const { t } = useLocale()
|
|
17
17
|
const statusTags = (Definition.status ?? [])
|
|
18
18
|
.map((s) => ({ beta: 'Beta', 'coming-soon': 'Coming Soon' }[s]))
|
|
19
19
|
.filter(Boolean)
|
|
@@ -23,11 +23,7 @@ export const ConsultancyPage = () => {
|
|
|
23
23
|
title="consultancy.home.title"
|
|
24
24
|
near={statusTags.length > 0 ? <Tags tags={statusTags} size="s" /> : undefined}
|
|
25
25
|
description="consultancy.home.description"
|
|
26
|
-
far={
|
|
27
|
-
<Button variant="cta" disabled prefix="add">
|
|
28
|
-
{t('design-system.add')}
|
|
29
|
-
</Button>
|
|
30
|
-
)}
|
|
26
|
+
far={<CreateConsultancyButton />}
|
|
31
27
|
>
|
|
32
28
|
<View gap="m">
|
|
33
29
|
<Text variant="heading-secondary" as="h2" text="design-system.overview" />
|
package/src/contract.schema.js
CHANGED
|
@@ -6,11 +6,11 @@ export default {
|
|
|
6
6
|
categoryName: 'Consultancy',
|
|
7
7
|
icon: 'file-document',
|
|
8
8
|
fields: [
|
|
9
|
-
{ name: 'employeeId', type: '
|
|
9
|
+
{ name: 'employeeId', type: 'reference', of: ConsultancySchema.employee },
|
|
10
10
|
{ name: 'clientName', type: 'text' },
|
|
11
11
|
{ name: 'hourlyCompensation', type: 'number' },
|
|
12
|
-
{ name: 'startDate', type: '
|
|
13
|
-
{ name: 'endDate', type: '
|
|
12
|
+
{ name: 'startDate', type: 'date' },
|
|
13
|
+
{ name: 'endDate', type: 'date' },
|
|
14
14
|
{ name: 'noticePeriodInDays', type: 'number' },
|
|
15
15
|
{ name: 'paymentTermsDueDate', type: 'select', options: ['net30'] },
|
|
16
16
|
{ name: 'paymentTermsInvoiceDate', type: 'select', options: ['dayAfterServicePeriodEnd', 'sameDayAsServicePeriodEnd'] },
|
package/src/employee.schema.js
CHANGED
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
{ name: 'monthlySalary', type: 'number' },
|
|
11
11
|
{ name: 'workHoursPerDay', type: 'number' },
|
|
12
12
|
{ name: 'holidayDays', type: 'number' },
|
|
13
|
-
{ name: 'startDate', type: '
|
|
14
|
-
{ name: 'endDate', type: '
|
|
13
|
+
{ name: 'startDate', type: 'date' },
|
|
14
|
+
{ name: 'endDate', type: 'date' },
|
|
15
15
|
],
|
|
16
16
|
}
|
package/src/en.translations.json
CHANGED
|
@@ -1,47 +1,105 @@
|
|
|
1
1
|
{
|
|
2
2
|
"consultancy/home.documentTitle": "Consultancy",
|
|
3
|
-
"consultancy
|
|
4
|
-
"consultancy
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"@ossy/consultancy/schema/
|
|
12
|
-
"@ossy/consultancy/schema/
|
|
3
|
+
"consultancy.home.title": "Consultancy",
|
|
4
|
+
"consultancy.home.description": "Consultancy overview",
|
|
5
|
+
"consultancy.overview.fiscalYears": "Fiscal years",
|
|
6
|
+
"consultancy.overview.company": "Company",
|
|
7
|
+
"consultancy.overview.noFiscalYears": "No fiscal years yet.",
|
|
8
|
+
"consultancy.empty.title": "Looks empty",
|
|
9
|
+
"consultancy.empty.text": "Add company info, employees, contracts, and vacations to get started.",
|
|
10
|
+
|
|
11
|
+
"@ossy/consultancy/schema/company-basic-info.name.label": "Company name",
|
|
12
|
+
"@ossy/consultancy/schema/company-basic-info.name.description": "The registered legal name of the company.",
|
|
13
|
+
"@ossy/consultancy/schema/company-basic-info.registrationDate.label": "Registration date",
|
|
14
|
+
"@ossy/consultancy/schema/company-basic-info.registrationDate.description": "Date the company was registered. Used to calculate fiscal years.",
|
|
15
|
+
"@ossy/consultancy/schema/company-basic-info.vatNumber.label": "VAT number",
|
|
16
|
+
"@ossy/consultancy/schema/company-basic-info.vatNumber.description": "VAT / Moms registration number, e.g. SE556123456701.",
|
|
17
|
+
"@ossy/consultancy/schema/company-basic-info.vatRegistredFrom.label": "VAT registered from",
|
|
18
|
+
"@ossy/consultancy/schema/company-basic-info.vatRegistredFrom.description": "Date VAT registration started.",
|
|
19
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentResponsibilityFrom.label": "VAT reporting from",
|
|
20
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentResponsibilityFrom.description": "Date the company became liable to file VAT returns.",
|
|
21
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.label": "VAT reporting period",
|
|
22
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.description": "How often VAT returns are filed.",
|
|
23
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.option.month": "Monthly",
|
|
24
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.option.quarter": "Quarterly",
|
|
25
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.option.year": "Yearly",
|
|
26
|
+
"@ossy/consultancy/schema/company-basic-info.financialYearStart.label": "Financial year start month",
|
|
27
|
+
"@ossy/consultancy/schema/company-basic-info.financialYearStart.description": "Month the financial year starts.",
|
|
28
|
+
"@ossy/consultancy/schema/company-basic-info.financialYearEnd.label": "Financial year end month",
|
|
29
|
+
"@ossy/consultancy/schema/company-basic-info.financialYearEnd.description": "Month the financial year ends.",
|
|
30
|
+
"@ossy/consultancy/schema/company-basic-info.holidayLocale.label": "Holiday calendar",
|
|
31
|
+
"@ossy/consultancy/schema/company-basic-info.holidayLocale.description": "Country used for public holidays and red days in forecasts and timesheets.",
|
|
32
|
+
|
|
13
33
|
"@ossy/consultancy/schema/employee.name.label": "Name",
|
|
34
|
+
"@ossy/consultancy/schema/employee.name.description": "The employee’s full name.",
|
|
14
35
|
"@ossy/consultancy/schema/employee.monthlySalary.label": "Monthly salary",
|
|
36
|
+
"@ossy/consultancy/schema/employee.monthlySalary.description": "Gross monthly salary in SEK, before employer social costs.",
|
|
15
37
|
"@ossy/consultancy/schema/employee.workHoursPerDay.label": "Work hours per day",
|
|
16
|
-
"@ossy/consultancy/schema/employee.
|
|
17
|
-
"@ossy/consultancy/schema/employee.
|
|
18
|
-
"@ossy/consultancy/schema/employee.
|
|
38
|
+
"@ossy/consultancy/schema/employee.workHoursPerDay.description": "Planned billable hours on a normal workday, e.g. 8.",
|
|
39
|
+
"@ossy/consultancy/schema/employee.holidayDays.label": "Holiday days per year",
|
|
40
|
+
"@ossy/consultancy/schema/employee.holidayDays.description": "Paid vacation days allotted per year. Booked time off is added as Vacation.",
|
|
41
|
+
"@ossy/consultancy/schema/employee.startDate.label": "Employment start",
|
|
42
|
+
"@ossy/consultancy/schema/employee.startDate.description": "First day of employment. Forecasts start from this date.",
|
|
43
|
+
"@ossy/consultancy/schema/employee.endDate.label": "Employment end",
|
|
44
|
+
"@ossy/consultancy/schema/employee.endDate.description": "Last day of employment. Leave empty if still employed.",
|
|
45
|
+
|
|
46
|
+
"@ossy/consultancy/schema/contract.employeeId.label": "Employee",
|
|
47
|
+
"@ossy/consultancy/schema/contract.employeeId.description": "Who this contract belongs to.",
|
|
48
|
+
"@ossy/consultancy/schema/contract.clientName.label": "Client",
|
|
49
|
+
"@ossy/consultancy/schema/contract.clientName.description": "The customer or assignment this contract is for.",
|
|
50
|
+
"@ossy/consultancy/schema/contract.hourlyCompensation.label": "Hourly rate",
|
|
51
|
+
"@ossy/consultancy/schema/contract.hourlyCompensation.description": "Invoiced rate in SEK per hour.",
|
|
52
|
+
"@ossy/consultancy/schema/contract.startDate.label": "Contract start",
|
|
53
|
+
"@ossy/consultancy/schema/contract.startDate.description": "First day the contract can generate revenue.",
|
|
54
|
+
"@ossy/consultancy/schema/contract.endDate.label": "Contract end",
|
|
55
|
+
"@ossy/consultancy/schema/contract.endDate.description": "Last day of the contract. Leave empty if it is ongoing.",
|
|
56
|
+
"@ossy/consultancy/schema/contract.noticePeriodInDays.label": "Notice period (days)",
|
|
57
|
+
"@ossy/consultancy/schema/contract.noticePeriodInDays.description": "How many days of notice the contract requires.",
|
|
58
|
+
"@ossy/consultancy/schema/contract.paymentTermsDueDate.label": "Payment terms",
|
|
59
|
+
"@ossy/consultancy/schema/contract.paymentTermsDueDate.description": "When the invoice is due, e.g. net 30 days.",
|
|
60
|
+
"@ossy/consultancy/schema/contract.paymentTermsInvoiceDate.label": "Invoice date",
|
|
61
|
+
"@ossy/consultancy/schema/contract.paymentTermsInvoiceDate.description": "When the invoice is issued relative to the service period.",
|
|
62
|
+
|
|
63
|
+
"@ossy/consultancy/schema/vacation.employeeId.label": "Employee",
|
|
64
|
+
"@ossy/consultancy/schema/vacation.employeeId.description": "Who is taking time off.",
|
|
65
|
+
"@ossy/consultancy/schema/vacation.start.label": "First day off",
|
|
66
|
+
"@ossy/consultancy/schema/vacation.start.description": "First day of vacation (inclusive). These days are not billed.",
|
|
67
|
+
"@ossy/consultancy/schema/vacation.end.label": "Last day off",
|
|
68
|
+
"@ossy/consultancy/schema/vacation.end.description": "Last day of vacation (inclusive).",
|
|
69
|
+
|
|
19
70
|
"@ossy/consultancy/schema/opportunity.title.label": "Title",
|
|
71
|
+
"@ossy/consultancy/schema/opportunity.title.description": "Short name for this lead or opportunity.",
|
|
20
72
|
"@ossy/consultancy/schema/opportunity.source.label": "Source",
|
|
73
|
+
"@ossy/consultancy/schema/opportunity.source.description": "Where the opportunity came from, e.g. referral or job board.",
|
|
21
74
|
"@ossy/consultancy/schema/opportunity.status.label": "Status",
|
|
75
|
+
"@ossy/consultancy/schema/opportunity.status.description": "Where this opportunity is in the pipeline.",
|
|
22
76
|
"@ossy/consultancy/schema/opportunity.summary.label": "Summary",
|
|
77
|
+
"@ossy/consultancy/schema/opportunity.summary.description": "What the assignment is and why it might fit.",
|
|
23
78
|
"@ossy/consultancy/schema/opportunity.fitScore.label": "Fit score",
|
|
79
|
+
"@ossy/consultancy/schema/opportunity.fitScore.description": "How well this matches, typically 1–10.",
|
|
24
80
|
"@ossy/consultancy/schema/opportunity.nextAction.label": "Next action",
|
|
81
|
+
"@ossy/consultancy/schema/opportunity.nextAction.description": "The next thing to do, and optionally when.",
|
|
25
82
|
"@ossy/consultancy/schema/opportunity.contactEmail.label": "Contact email",
|
|
83
|
+
"@ossy/consultancy/schema/opportunity.contactEmail.description": "Email for the buyer or recruiter.",
|
|
26
84
|
"@ossy/consultancy/schema/opportunity.contactName.label": "Contact name",
|
|
85
|
+
"@ossy/consultancy/schema/opportunity.contactName.description": "Name of the main contact.",
|
|
27
86
|
"@ossy/consultancy/schema/opportunity.linkedProposalId.label": "Linked proposal",
|
|
87
|
+
"@ossy/consultancy/schema/opportunity.linkedProposalId.description": "Related proposal, if one exists.",
|
|
28
88
|
"@ossy/consultancy/schema/opportunity.feedRef.label": "Feed reference",
|
|
89
|
+
"@ossy/consultancy/schema/opportunity.feedRef.description": "Id or URL from the original listing.",
|
|
90
|
+
|
|
29
91
|
"@ossy/consultancy/schema/proposal.opportunityId.label": "Opportunity",
|
|
92
|
+
"@ossy/consultancy/schema/proposal.opportunityId.description": "The opportunity this proposal belongs to.",
|
|
30
93
|
"@ossy/consultancy/schema/proposal.title.label": "Title",
|
|
94
|
+
"@ossy/consultancy/schema/proposal.title.description": "Name shown on the proposal.",
|
|
31
95
|
"@ossy/consultancy/schema/proposal.status.label": "Status",
|
|
96
|
+
"@ossy/consultancy/schema/proposal.status.description": "Draft, sent, accepted, or rejected.",
|
|
32
97
|
"@ossy/consultancy/schema/proposal.scope.label": "Scope",
|
|
98
|
+
"@ossy/consultancy/schema/proposal.scope.description": "What is included in the assignment.",
|
|
33
99
|
"@ossy/consultancy/schema/proposal.rate.label": "Rate",
|
|
100
|
+
"@ossy/consultancy/schema/proposal.rate.description": "Price or hourly rate offered.",
|
|
34
101
|
"@ossy/consultancy/schema/proposal.timeline.label": "Timeline",
|
|
102
|
+
"@ossy/consultancy/schema/proposal.timeline.description": "When the work would start and finish.",
|
|
35
103
|
"@ossy/consultancy/schema/proposal.body.label": "Body",
|
|
36
|
-
"@ossy/consultancy/schema/
|
|
37
|
-
"@ossy/consultancy/schema/vacation.start.label": "Start",
|
|
38
|
-
"@ossy/consultancy/schema/vacation.end.label": "End",
|
|
39
|
-
"@ossy/consultancy/schema/company-basic-info.name.label": "Name",
|
|
40
|
-
"@ossy/consultancy/schema/company-basic-info.registrationDate.label": "Registration date",
|
|
41
|
-
"@ossy/consultancy/schema/company-basic-info.vatNumber.label": "VAT number",
|
|
42
|
-
"@ossy/consultancy/schema/company-basic-info.vatRegistredFrom.label": "VAT registered from",
|
|
43
|
-
"@ossy/consultancy/schema/company-basic-info.vatPaymentResponsibilityFrom.label": "VAT payment responsibility from",
|
|
44
|
-
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.label": "VAT payment period",
|
|
45
|
-
"@ossy/consultancy/schema/company-basic-info.financialYearStart.label": "Financial year start",
|
|
46
|
-
"@ossy/consultancy/schema/company-basic-info.financialYearEnd.label": "Financial year end"
|
|
104
|
+
"@ossy/consultancy/schema/proposal.body.description": "Full proposal text."
|
|
47
105
|
}
|
package/src/index.js
CHANGED
|
@@ -7,3 +7,4 @@ export { default as vacationSchema } from './vacation.schema.js'
|
|
|
7
7
|
export { default as opportunitySchema } from './opportunity.schema.js'
|
|
8
8
|
export { default as proposalSchema } from './proposal.schema.js'
|
|
9
9
|
export { Definition } from './Definition.js'
|
|
10
|
+
export { CreateConsultancyButton } from './CreateConsultancyButton.jsx'
|
package/src/sv.translations.json
CHANGED
|
@@ -1,5 +1,105 @@
|
|
|
1
1
|
{
|
|
2
2
|
"consultancy/home.documentTitle": "Konsultverksamhet",
|
|
3
3
|
"consultancy.home.title": "Konsultverksamhet",
|
|
4
|
-
"consultancy.home.description": "Översikt över konsultverksamheten"
|
|
4
|
+
"consultancy.home.description": "Översikt över konsultverksamheten",
|
|
5
|
+
"consultancy.overview.fiscalYears": "Räkenskapsår",
|
|
6
|
+
"consultancy.overview.company": "Företag",
|
|
7
|
+
"consultancy.overview.noFiscalYears": "Inga räkenskapsår ännu.",
|
|
8
|
+
"consultancy.empty.title": "Här är tomt",
|
|
9
|
+
"consultancy.empty.text": "Lägg till företagsinfo, anställda, avtal och semester för att komma igång.",
|
|
10
|
+
|
|
11
|
+
"@ossy/consultancy/schema/company-basic-info.name.label": "Företagsnamn",
|
|
12
|
+
"@ossy/consultancy/schema/company-basic-info.name.description": "Bolagets registrerade namn.",
|
|
13
|
+
"@ossy/consultancy/schema/company-basic-info.registrationDate.label": "Registreringsdatum",
|
|
14
|
+
"@ossy/consultancy/schema/company-basic-info.registrationDate.description": "Datum då bolaget registrerades hos Bolagsverket. Används för att räkna ut räkenskapsår.",
|
|
15
|
+
"@ossy/consultancy/schema/company-basic-info.vatNumber.label": "Momsregistreringsnummer",
|
|
16
|
+
"@ossy/consultancy/schema/company-basic-info.vatNumber.description": "VAT-/momsnummer, t.ex. SE556123456701.",
|
|
17
|
+
"@ossy/consultancy/schema/company-basic-info.vatRegistredFrom.label": "Momsregistrerad från",
|
|
18
|
+
"@ossy/consultancy/schema/company-basic-info.vatRegistredFrom.description": "Datum då bolaget blev momsregistrerat.",
|
|
19
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentResponsibilityFrom.label": "Momsredovisningsskyldig från",
|
|
20
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentResponsibilityFrom.description": "Datum då skyldigheten att redovisa moms började.",
|
|
21
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.label": "Momsredovisningsperiod",
|
|
22
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.description": "Hur ofta momsdeklarationen lämnas in.",
|
|
23
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.option.month": "Månad",
|
|
24
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.option.quarter": "Kvartal",
|
|
25
|
+
"@ossy/consultancy/schema/company-basic-info.vatPaymentPeriod.option.year": "År",
|
|
26
|
+
"@ossy/consultancy/schema/company-basic-info.financialYearStart.label": "Räkenskapsårets startmånad",
|
|
27
|
+
"@ossy/consultancy/schema/company-basic-info.financialYearStart.description": "Månad då räkenskapsåret börjar.",
|
|
28
|
+
"@ossy/consultancy/schema/company-basic-info.financialYearEnd.label": "Räkenskapsårets slutmånad",
|
|
29
|
+
"@ossy/consultancy/schema/company-basic-info.financialYearEnd.description": "Månad då räkenskapsåret slutar.",
|
|
30
|
+
"@ossy/consultancy/schema/company-basic-info.holidayLocale.label": "Helgdagskalender",
|
|
31
|
+
"@ossy/consultancy/schema/company-basic-info.holidayLocale.description": "Land som används för röda dagar och helgdagar i prognoser och tidrapporter.",
|
|
32
|
+
|
|
33
|
+
"@ossy/consultancy/schema/employee.name.label": "Namn",
|
|
34
|
+
"@ossy/consultancy/schema/employee.name.description": "Den anställdas fullständiga namn.",
|
|
35
|
+
"@ossy/consultancy/schema/employee.monthlySalary.label": "Månadslön",
|
|
36
|
+
"@ossy/consultancy/schema/employee.monthlySalary.description": "Bruttolön per månad i SEK, före arbetsgivaravgifter.",
|
|
37
|
+
"@ossy/consultancy/schema/employee.workHoursPerDay.label": "Arbetstimmar per dag",
|
|
38
|
+
"@ossy/consultancy/schema/employee.workHoursPerDay.description": "Planerad tid en vanlig arbetsdag, t.ex. 8.",
|
|
39
|
+
"@ossy/consultancy/schema/employee.holidayDays.label": "Semesterdagar per år",
|
|
40
|
+
"@ossy/consultancy/schema/employee.holidayDays.description": "Antal betaldagar per år. Bokad ledighet läggs till som Semester.",
|
|
41
|
+
"@ossy/consultancy/schema/employee.startDate.label": "Anställningens start",
|
|
42
|
+
"@ossy/consultancy/schema/employee.startDate.description": "Första anställningsdagen. Prognosen räknas från detta datum.",
|
|
43
|
+
"@ossy/consultancy/schema/employee.endDate.label": "Anställningens slut",
|
|
44
|
+
"@ossy/consultancy/schema/employee.endDate.description": "Sista anställningsdagen. Lämna tomt om anställningen pågår.",
|
|
45
|
+
|
|
46
|
+
"@ossy/consultancy/schema/contract.employeeId.label": "Anställd",
|
|
47
|
+
"@ossy/consultancy/schema/contract.employeeId.description": "Vem avtalet gäller.",
|
|
48
|
+
"@ossy/consultancy/schema/contract.clientName.label": "Kund",
|
|
49
|
+
"@ossy/consultancy/schema/contract.clientName.description": "Kunden eller uppdraget avtalet avser.",
|
|
50
|
+
"@ossy/consultancy/schema/contract.hourlyCompensation.label": "Timarvode",
|
|
51
|
+
"@ossy/consultancy/schema/contract.hourlyCompensation.description": "Fakturerat arvode i SEK per timme.",
|
|
52
|
+
"@ossy/consultancy/schema/contract.startDate.label": "Avtalets startdatum",
|
|
53
|
+
"@ossy/consultancy/schema/contract.startDate.description": "Första dagen avtalet kan ge intäkt.",
|
|
54
|
+
"@ossy/consultancy/schema/contract.endDate.label": "Avtalets slutdatum",
|
|
55
|
+
"@ossy/consultancy/schema/contract.endDate.description": "Sista dagen på avtalet. Lämna tomt om det pågår.",
|
|
56
|
+
"@ossy/consultancy/schema/contract.noticePeriodInDays.label": "Uppsägningstid (dagar)",
|
|
57
|
+
"@ossy/consultancy/schema/contract.noticePeriodInDays.description": "Hur många dagars uppsägning avtalet kräver.",
|
|
58
|
+
"@ossy/consultancy/schema/contract.paymentTermsDueDate.label": "Betalningsvillkor",
|
|
59
|
+
"@ossy/consultancy/schema/contract.paymentTermsDueDate.description": "När fakturan förfaller, t.ex. 30 dagar netto.",
|
|
60
|
+
"@ossy/consultancy/schema/contract.paymentTermsInvoiceDate.label": "Fakturadatum",
|
|
61
|
+
"@ossy/consultancy/schema/contract.paymentTermsInvoiceDate.description": "När fakturan ställs ut i förhållande till leveransperioden.",
|
|
62
|
+
|
|
63
|
+
"@ossy/consultancy/schema/vacation.employeeId.label": "Anställd",
|
|
64
|
+
"@ossy/consultancy/schema/vacation.employeeId.description": "Vem som är ledig.",
|
|
65
|
+
"@ossy/consultancy/schema/vacation.start.label": "Första lediga dagen",
|
|
66
|
+
"@ossy/consultancy/schema/vacation.start.description": "Första semesterdagen (inklusive). De här dagarna faktureras inte.",
|
|
67
|
+
"@ossy/consultancy/schema/vacation.end.label": "Sista lediga dagen",
|
|
68
|
+
"@ossy/consultancy/schema/vacation.end.description": "Sista semesterdagen (inklusive).",
|
|
69
|
+
|
|
70
|
+
"@ossy/consultancy/schema/opportunity.title.label": "Titel",
|
|
71
|
+
"@ossy/consultancy/schema/opportunity.title.description": "Kort namn på leadet eller möjligheten.",
|
|
72
|
+
"@ossy/consultancy/schema/opportunity.source.label": "Källa",
|
|
73
|
+
"@ossy/consultancy/schema/opportunity.source.description": "Var möjligheten kom ifrån, t.ex. referens eller jobbannons.",
|
|
74
|
+
"@ossy/consultancy/schema/opportunity.status.label": "Status",
|
|
75
|
+
"@ossy/consultancy/schema/opportunity.status.description": "Var i pipelinen den här möjligheten är.",
|
|
76
|
+
"@ossy/consultancy/schema/opportunity.summary.label": "Sammanfattning",
|
|
77
|
+
"@ossy/consultancy/schema/opportunity.summary.description": "Vad uppdraget gäller och varför det kan passa.",
|
|
78
|
+
"@ossy/consultancy/schema/opportunity.fitScore.label": "Matchning",
|
|
79
|
+
"@ossy/consultancy/schema/opportunity.fitScore.description": "Hur väl det passar, oftast 1–10.",
|
|
80
|
+
"@ossy/consultancy/schema/opportunity.nextAction.label": "Nästa steg",
|
|
81
|
+
"@ossy/consultancy/schema/opportunity.nextAction.description": "Vad som ska göras härnäst, gärna med datum.",
|
|
82
|
+
"@ossy/consultancy/schema/opportunity.contactEmail.label": "Kontaktens e-post",
|
|
83
|
+
"@ossy/consultancy/schema/opportunity.contactEmail.description": "E-post till köpare eller rekryterare.",
|
|
84
|
+
"@ossy/consultancy/schema/opportunity.contactName.label": "Kontaktperson",
|
|
85
|
+
"@ossy/consultancy/schema/opportunity.contactName.description": "Namn på huvudsaklig kontakt.",
|
|
86
|
+
"@ossy/consultancy/schema/opportunity.linkedProposalId.label": "Kopplat anbud",
|
|
87
|
+
"@ossy/consultancy/schema/opportunity.linkedProposalId.description": "Relaterat anbud, om det finns.",
|
|
88
|
+
"@ossy/consultancy/schema/opportunity.feedRef.label": "Källreferens",
|
|
89
|
+
"@ossy/consultancy/schema/opportunity.feedRef.description": "Id eller URL från originalannonsen.",
|
|
90
|
+
|
|
91
|
+
"@ossy/consultancy/schema/proposal.opportunityId.label": "Möjlighet",
|
|
92
|
+
"@ossy/consultancy/schema/proposal.opportunityId.description": "Möjligheten det här anbudet tillhör.",
|
|
93
|
+
"@ossy/consultancy/schema/proposal.title.label": "Titel",
|
|
94
|
+
"@ossy/consultancy/schema/proposal.title.description": "Namn som visas på anbudet.",
|
|
95
|
+
"@ossy/consultancy/schema/proposal.status.label": "Status",
|
|
96
|
+
"@ossy/consultancy/schema/proposal.status.description": "Utkast, skickat, accepterat eller avslaget.",
|
|
97
|
+
"@ossy/consultancy/schema/proposal.scope.label": "Omfattning",
|
|
98
|
+
"@ossy/consultancy/schema/proposal.scope.description": "Vad som ingår i uppdraget.",
|
|
99
|
+
"@ossy/consultancy/schema/proposal.rate.label": "Pris",
|
|
100
|
+
"@ossy/consultancy/schema/proposal.rate.description": "Offererat pris eller timarvode.",
|
|
101
|
+
"@ossy/consultancy/schema/proposal.timeline.label": "Tidplan",
|
|
102
|
+
"@ossy/consultancy/schema/proposal.timeline.description": "När arbetet skulle starta och sluta.",
|
|
103
|
+
"@ossy/consultancy/schema/proposal.body.label": "Brödtext",
|
|
104
|
+
"@ossy/consultancy/schema/proposal.body.description": "Hela anbudstexten."
|
|
5
105
|
}
|
package/src/vacation.schema.js
CHANGED
|
@@ -4,9 +4,10 @@ export default {
|
|
|
4
4
|
name: 'Vacation',
|
|
5
5
|
id: ConsultancySchema.vacation,
|
|
6
6
|
categoryName: 'Consultancy',
|
|
7
|
+
icon: 'calendar',
|
|
7
8
|
fields: [
|
|
8
|
-
{ name: 'employeeId', type: '
|
|
9
|
-
{ name: 'start', type: '
|
|
10
|
-
{ name: 'end', type: '
|
|
9
|
+
{ name: 'employeeId', type: 'reference', of: ConsultancySchema.employee },
|
|
10
|
+
{ name: 'start', type: 'date' },
|
|
11
|
+
{ name: 'end', type: 'date' },
|
|
11
12
|
],
|
|
12
13
|
}
|