@open-mercato/core 0.6.6-develop.6361.1.e790d2aa34 → 0.6.6-develop.6363.1.03c5e3429a
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/dist/modules/attachments/backend/storage/attachments/page.meta.js +1 -7
- package/dist/modules/attachments/backend/storage/attachments/page.meta.js.map +2 -2
- package/dist/modules/auth/api/admin/nav.js +1 -1
- package/dist/modules/auth/api/admin/nav.js.map +1 -1
- package/dist/modules/business_rules/backend/logs/page.meta.js +1 -10
- package/dist/modules/business_rules/backend/logs/page.meta.js.map +2 -2
- package/dist/modules/business_rules/backend/rules/page.meta.js +1 -10
- package/dist/modules/business_rules/backend/rules/page.meta.js.map +2 -2
- package/dist/modules/business_rules/backend/sets/page.meta.js +1 -12
- package/dist/modules/business_rules/backend/sets/page.meta.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/categories/page.meta.js +1 -8
- package/dist/modules/catalog/backend/catalog/categories/page.meta.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/page.meta.js +1 -9
- package/dist/modules/catalog/backend/catalog/products/page.meta.js.map +2 -2
- package/dist/modules/communication_channels/backend/communication_channels/channels/page.meta.js +1 -21
- package/dist/modules/communication_channels/backend/communication_channels/channels/page.meta.js.map +2 -2
- package/dist/modules/currencies/backend/currencies/page.meta.js +1 -19
- package/dist/modules/currencies/backend/currencies/page.meta.js.map +2 -2
- package/dist/modules/currencies/backend/exchange-rates/page.meta.js +1 -10
- package/dist/modules/currencies/backend/exchange-rates/page.meta.js.map +2 -2
- package/dist/modules/customers/backend/calendar/page.meta.js +1 -10
- package/dist/modules/customers/backend/calendar/page.meta.js.map +2 -2
- package/dist/modules/customers/backend/customer-tasks/page.meta.js +1 -10
- package/dist/modules/customers/backend/customer-tasks/page.meta.js.map +2 -2
- package/dist/modules/customers/backend/customers/companies/page.meta.js +1 -22
- package/dist/modules/customers/backend/customers/companies/page.meta.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/page.meta.js +1 -19
- package/dist/modules/customers/backend/customers/deals/page.meta.js.map +2 -2
- package/dist/modules/customers/backend/customers/people/page.meta.js +1 -10
- package/dist/modules/customers/backend/customers/people/page.meta.js.map +2 -2
- package/dist/modules/inbox_ops/backend/inbox-ops/page.meta.js +1 -8
- package/dist/modules/inbox_ops/backend/inbox-ops/page.meta.js.map +2 -2
- package/dist/modules/messages/backend/page.meta.js +1 -17
- package/dist/modules/messages/backend/page.meta.js.map +2 -2
- package/dist/modules/resources/backend/resources/resource-types/page.meta.js +1 -8
- package/dist/modules/resources/backend/resources/resource-types/page.meta.js.map +2 -2
- package/dist/modules/resources/backend/resources/resources/page.meta.js +1 -9
- package/dist/modules/resources/backend/resources/resources/page.meta.js.map +2 -2
- package/dist/modules/sales/backend/sales/channels/page.meta.js +1 -10
- package/dist/modules/sales/backend/sales/channels/page.meta.js.map +2 -2
- package/dist/modules/sales/backend/sales/documents/create/page.meta.js +1 -9
- package/dist/modules/sales/backend/sales/documents/create/page.meta.js.map +2 -2
- package/dist/modules/sales/backend/sales/orders/page.meta.js +1 -19
- package/dist/modules/sales/backend/sales/orders/page.meta.js.map +2 -2
- package/dist/modules/sales/backend/sales/quotes/page.meta.js +1 -10
- package/dist/modules/sales/backend/sales/quotes/page.meta.js.map +2 -2
- package/dist/modules/sales/components/documents/AdjustmentDialog.js +11 -0
- package/dist/modules/sales/components/documents/AdjustmentDialog.js.map +2 -2
- package/dist/modules/sales/data/validators.js +17 -2
- package/dist/modules/sales/data/validators.js.map +2 -2
- package/dist/modules/staff/backend/staff/leave-requests/page.meta.js +1 -10
- package/dist/modules/staff/backend/staff/leave-requests/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/my-availability/page.meta.js +1 -8
- package/dist/modules/staff/backend/staff/my-availability/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/my-leave-requests/page.meta.js +1 -10
- package/dist/modules/staff/backend/staff/my-leave-requests/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/team-members/page.meta.js +1 -8
- package/dist/modules/staff/backend/staff/team-members/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/team-roles/page.meta.js +1 -9
- package/dist/modules/staff/backend/staff/team-roles/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/teams/page.meta.js +1 -10
- package/dist/modules/staff/backend/staff/teams/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/page.meta.js +1 -8
- package/dist/modules/staff/backend/staff/timesheets/page.meta.js.map +2 -2
- package/dist/modules/workflows/backend/definitions/page.meta.js +1 -9
- package/dist/modules/workflows/backend/definitions/page.meta.js.map +2 -2
- package/dist/modules/workflows/backend/events/page.meta.js +1 -9
- package/dist/modules/workflows/backend/events/page.meta.js.map +2 -2
- package/dist/modules/workflows/backend/instances/page.meta.js +1 -7
- package/dist/modules/workflows/backend/instances/page.meta.js.map +2 -2
- package/dist/modules/workflows/backend/tasks/page.meta.js +1 -8
- package/dist/modules/workflows/backend/tasks/page.meta.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/attachments/backend/storage/attachments/page.meta.ts +1 -9
- package/src/modules/auth/api/admin/nav.ts +1 -1
- package/src/modules/business_rules/backend/logs/page.meta.ts +1 -12
- package/src/modules/business_rules/backend/rules/page.meta.ts +1 -12
- package/src/modules/business_rules/backend/sets/page.meta.ts +1 -14
- package/src/modules/catalog/backend/catalog/categories/page.meta.ts +1 -10
- package/src/modules/catalog/backend/catalog/products/page.meta.ts +1 -11
- package/src/modules/communication_channels/backend/communication_channels/channels/page.meta.ts +1 -23
- package/src/modules/currencies/backend/currencies/page.meta.ts +1 -22
- package/src/modules/currencies/backend/exchange-rates/page.meta.ts +1 -12
- package/src/modules/customers/backend/calendar/page.meta.ts +1 -12
- package/src/modules/customers/backend/customer-tasks/page.meta.ts +1 -12
- package/src/modules/customers/backend/customers/companies/page.meta.ts +1 -24
- package/src/modules/customers/backend/customers/deals/page.meta.ts +1 -21
- package/src/modules/customers/backend/customers/people/page.meta.ts +1 -12
- package/src/modules/inbox_ops/backend/inbox-ops/page.meta.ts +1 -10
- package/src/modules/messages/backend/page.meta.ts +1 -19
- package/src/modules/resources/backend/resources/resource-types/page.meta.ts +1 -10
- package/src/modules/resources/backend/resources/resources/page.meta.ts +1 -11
- package/src/modules/sales/backend/sales/channels/page.meta.ts +1 -12
- package/src/modules/sales/backend/sales/documents/create/page.meta.ts +1 -11
- package/src/modules/sales/backend/sales/orders/page.meta.ts +1 -21
- package/src/modules/sales/backend/sales/quotes/page.meta.ts +1 -12
- package/src/modules/sales/components/documents/AdjustmentDialog.tsx +16 -0
- package/src/modules/sales/data/validators.ts +17 -2
- package/src/modules/sales/i18n/de.json +1 -0
- package/src/modules/sales/i18n/en.json +1 -0
- package/src/modules/sales/i18n/es.json +1 -0
- package/src/modules/sales/i18n/pl.json +1 -0
- package/src/modules/staff/backend/staff/leave-requests/page.meta.ts +1 -12
- package/src/modules/staff/backend/staff/my-availability/page.meta.ts +1 -10
- package/src/modules/staff/backend/staff/my-leave-requests/page.meta.ts +1 -12
- package/src/modules/staff/backend/staff/team-members/page.meta.ts +1 -10
- package/src/modules/staff/backend/staff/team-roles/page.meta.ts +1 -11
- package/src/modules/staff/backend/staff/teams/page.meta.ts +1 -12
- package/src/modules/staff/backend/staff/timesheets/page.meta.ts +1 -10
- package/src/modules/workflows/backend/definitions/page.meta.ts +1 -11
- package/src/modules/workflows/backend/events/page.meta.ts +1 -11
- package/src/modules/workflows/backend/instances/page.meta.ts +1 -9
- package/src/modules/workflows/backend/tasks/page.meta.ts +1 -10
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const resourceTypesIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('path', { d: 'M3 5h6l2 3h10v11H3z' }),
|
|
7
|
-
React.createElement('path', { d: 'M3 5v14' }),
|
|
8
|
-
)
|
|
9
|
-
|
|
10
1
|
export const metadata = {
|
|
11
2
|
requireAuth: true,
|
|
12
3
|
requireFeatures: ['resources.manage_resources'],
|
|
@@ -15,7 +6,7 @@ export const metadata = {
|
|
|
15
6
|
pageGroup: 'Resource planning',
|
|
16
7
|
pageGroupKey: 'resources.nav.group',
|
|
17
8
|
pageOrder: 30,
|
|
18
|
-
icon:
|
|
9
|
+
icon: 'folder-tree',
|
|
19
10
|
breadcrumb: [
|
|
20
11
|
{ label: 'Resource types', labelKey: 'resources.resourceTypes.page.title' },
|
|
21
12
|
],
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const resourcesIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('path', { d: 'M3 7l9-4 9 4-9 4-9-4z' }),
|
|
7
|
-
React.createElement('path', { d: 'M3 7v10l9 4 9-4V7' }),
|
|
8
|
-
React.createElement('path', { d: 'M12 11v10' }),
|
|
9
|
-
)
|
|
10
|
-
|
|
11
1
|
export const metadata = {
|
|
12
2
|
requireAuth: true,
|
|
13
3
|
requireFeatures: ['resources.view'],
|
|
@@ -16,6 +6,6 @@ export const metadata = {
|
|
|
16
6
|
pageGroup: 'Resource planning',
|
|
17
7
|
pageGroupKey: 'resources.nav.group',
|
|
18
8
|
pageOrder: 31,
|
|
19
|
-
icon:
|
|
9
|
+
icon: 'box',
|
|
20
10
|
breadcrumb: [{ label: 'Resources', labelKey: 'resources.resources.page.title' }],
|
|
21
11
|
}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const globeIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('circle', { cx: 12, cy: 12, r: 10 }),
|
|
7
|
-
React.createElement('path', { d: 'M2 12h20' }),
|
|
8
|
-
React.createElement('path', { d: 'M12 2a15 15 0 0 1 0 20' }),
|
|
9
|
-
React.createElement('path', { d: 'M12 2a15 15 0 0 0 0 20' }),
|
|
10
|
-
)
|
|
11
|
-
|
|
12
1
|
export const metadata = {
|
|
13
2
|
requireAuth: true,
|
|
14
3
|
requireFeatures: ['sales.channels.manage'],
|
|
@@ -18,7 +7,7 @@ export const metadata = {
|
|
|
18
7
|
pageGroupKey: 'customers~sales.nav.group',
|
|
19
8
|
pagePriority: 40,
|
|
20
9
|
pageOrder: 120,
|
|
21
|
-
icon:
|
|
10
|
+
icon: 'globe',
|
|
22
11
|
breadcrumb: [
|
|
23
12
|
{ label: 'Sales', labelKey: 'customers~sales.nav.group', href: '/backend/sales/channels' },
|
|
24
13
|
{ label: 'Channels', labelKey: 'sales.channels.nav.title' },
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const createIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('path', { d: 'M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z' }),
|
|
7
|
-
React.createElement('polyline', { points: '14 2 14 8 20 8' }),
|
|
8
|
-
React.createElement('path', { d: 'M12 11v6M9 14h6' }),
|
|
9
|
-
)
|
|
10
|
-
|
|
11
1
|
export const metadata = {
|
|
12
2
|
requireAuth: true,
|
|
13
3
|
requireFeatures: ['sales.orders.manage', 'sales.quotes.manage'],
|
|
@@ -17,7 +7,7 @@ export const metadata = {
|
|
|
17
7
|
pageGroupKey: 'customers~sales.nav.group',
|
|
18
8
|
pagePriority: 40,
|
|
19
9
|
pageOrder: 130,
|
|
20
|
-
icon:
|
|
10
|
+
icon: 'file-text',
|
|
21
11
|
breadcrumb: [
|
|
22
12
|
{ label: 'Sales', labelKey: 'customers~sales.nav.group', href: '/backend/sales/channels' },
|
|
23
13
|
{ label: 'Create document', labelKey: 'sales.documents.create.title' },
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const currencyIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{
|
|
6
|
-
width: 16,
|
|
7
|
-
height: 16,
|
|
8
|
-
viewBox: '0 0 24 24',
|
|
9
|
-
fill: 'none',
|
|
10
|
-
stroke: 'currentColor',
|
|
11
|
-
strokeWidth: 2,
|
|
12
|
-
strokeLinecap: 'round',
|
|
13
|
-
strokeLinejoin: 'round',
|
|
14
|
-
},
|
|
15
|
-
React.createElement('circle', { cx: 12, cy: 12, r: 9 }),
|
|
16
|
-
React.createElement('path', { d: 'M12 7v10' }),
|
|
17
|
-
React.createElement('path', { d: 'M8.5 10.5C8.5 8.57 10 7 12.5 7H14' }),
|
|
18
|
-
React.createElement('path', { d: 'M15.5 13.5C15.5 15.43 14 17 11.5 17H10' }),
|
|
19
|
-
)
|
|
20
|
-
|
|
21
1
|
export const metadata = {
|
|
22
2
|
requireAuth: true,
|
|
23
3
|
requireFeatures: ['sales.orders.view'],
|
|
@@ -27,6 +7,6 @@ export const metadata = {
|
|
|
27
7
|
pageGroupKey: 'customers~sales.nav.group',
|
|
28
8
|
pagePriority: 40,
|
|
29
9
|
pageOrder: 90,
|
|
30
|
-
icon:
|
|
10
|
+
icon: 'receipt',
|
|
31
11
|
breadcrumb: [{ label: 'Orders', labelKey: 'sales.orders.list.title' }],
|
|
32
12
|
} as const
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const cartIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('circle', { cx: 9, cy: 20, r: 1.5 }),
|
|
7
|
-
React.createElement('circle', { cx: 17, cy: 20, r: 1.5 }),
|
|
8
|
-
React.createElement('path', { d: 'M3 4h2l1 10h11l2-7H6' }),
|
|
9
|
-
React.createElement('path', { d: 'M5 6h15' }),
|
|
10
|
-
)
|
|
11
|
-
|
|
12
1
|
export const metadata = {
|
|
13
2
|
requireAuth: true,
|
|
14
3
|
requireFeatures: ['sales.quotes.view'],
|
|
@@ -18,6 +7,6 @@ export const metadata = {
|
|
|
18
7
|
pageGroupKey: 'customers~sales.nav.group',
|
|
19
8
|
pagePriority: 40,
|
|
20
9
|
pageOrder: 100,
|
|
21
|
-
icon:
|
|
10
|
+
icon: 'shopping-cart',
|
|
22
11
|
breadcrumb: [{ label: 'Quotes', labelKey: 'sales.quotes.list.title' }],
|
|
23
12
|
} as const
|
|
@@ -698,6 +698,22 @@ export function AdjustmentDialog({
|
|
|
698
698
|
)
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
+
const resolvedKind =
|
|
702
|
+
typeof values.kind === 'string' && values.kind.trim().length ? values.kind.trim() : 'custom'
|
|
703
|
+
if (resolvedKind === 'return') {
|
|
704
|
+
const hasNonZeroValue =
|
|
705
|
+
calculationMode === 'rate'
|
|
706
|
+
? Number.isFinite(percentageRate) && percentageRate !== 0
|
|
707
|
+
: (Number.isFinite(amountNet) && amountNet !== 0) ||
|
|
708
|
+
(Number.isFinite(amountGross) && amountGross !== 0)
|
|
709
|
+
if (!hasNonZeroValue) {
|
|
710
|
+
const message = t(
|
|
711
|
+
'sales.documents.adjustments.errorReturnZero',
|
|
712
|
+
'Return adjustments must use a non-zero amount. Create the return through the Returns tab instead.'
|
|
713
|
+
)
|
|
714
|
+
throw createCrudFormError(message, { amountNet: message })
|
|
715
|
+
}
|
|
716
|
+
}
|
|
701
717
|
const customFields = collectCustomFieldValues(values, {
|
|
702
718
|
transform: (value) => normalizeCustomFieldSubmitValue(value),
|
|
703
719
|
})
|
|
@@ -434,6 +434,8 @@ export const RETURN_ADJUSTMENT_POSITIVE_NET_MESSAGE =
|
|
|
434
434
|
'Return adjustments must use a non-positive amountNet (returns reduce the total).'
|
|
435
435
|
export const RETURN_ADJUSTMENT_POSITIVE_GROSS_MESSAGE =
|
|
436
436
|
'Return adjustments must use a non-positive amountGross (returns reduce the total).'
|
|
437
|
+
export const RETURN_ADJUSTMENT_ZERO_MESSAGE =
|
|
438
|
+
'Return adjustments must use a non-zero amount. Create the return through the Returns tab instead of recording a zero-value Return adjustment.'
|
|
437
439
|
export const DISCOUNT_ADJUSTMENT_NEGATIVE_NET_MESSAGE =
|
|
438
440
|
'Discount adjustments must use a non-negative amountNet (discounts reduce the total).'
|
|
439
441
|
export const DISCOUNT_ADJUSTMENT_NEGATIVE_GROSS_MESSAGE =
|
|
@@ -482,20 +484,33 @@ export const enforceAdjustmentSign = (
|
|
|
482
484
|
) => {
|
|
483
485
|
if (!value.kind) return
|
|
484
486
|
if (value.kind === 'return') {
|
|
485
|
-
|
|
487
|
+
const netIsPositive = typeof value.amountNet === 'number' && value.amountNet > 0
|
|
488
|
+
const grossIsPositive = typeof value.amountGross === 'number' && value.amountGross > 0
|
|
489
|
+
if (netIsPositive) {
|
|
486
490
|
ctx.addIssue({
|
|
487
491
|
code: z.ZodIssueCode.custom,
|
|
488
492
|
message: RETURN_ADJUSTMENT_POSITIVE_NET_MESSAGE,
|
|
489
493
|
path: ['amountNet'],
|
|
490
494
|
})
|
|
491
495
|
}
|
|
492
|
-
if (
|
|
496
|
+
if (grossIsPositive) {
|
|
493
497
|
ctx.addIssue({
|
|
494
498
|
code: z.ZodIssueCode.custom,
|
|
495
499
|
message: RETURN_ADJUSTMENT_POSITIVE_GROSS_MESSAGE,
|
|
496
500
|
path: ['amountGross'],
|
|
497
501
|
})
|
|
498
502
|
}
|
|
503
|
+
if (!netIsPositive && !grossIsPositive) {
|
|
504
|
+
const netIsNegative = typeof value.amountNet === 'number' && value.amountNet < 0
|
|
505
|
+
const grossIsNegative = typeof value.amountGross === 'number' && value.amountGross < 0
|
|
506
|
+
if (!netIsNegative && !grossIsNegative) {
|
|
507
|
+
ctx.addIssue({
|
|
508
|
+
code: z.ZodIssueCode.custom,
|
|
509
|
+
message: RETURN_ADJUSTMENT_ZERO_MESSAGE,
|
|
510
|
+
path: ['amountNet'],
|
|
511
|
+
})
|
|
512
|
+
}
|
|
513
|
+
}
|
|
499
514
|
return
|
|
500
515
|
}
|
|
501
516
|
const messages = NON_NEGATIVE_SIGN_MESSAGES[value.kind]
|
|
@@ -463,6 +463,7 @@
|
|
|
463
463
|
"sales.documents.adjustments.errorDelete": "Anpassung konnte nicht gelöscht werden.",
|
|
464
464
|
"sales.documents.adjustments.errorLoad": "Anpassungen konnten nicht geladen werden.",
|
|
465
465
|
"sales.documents.adjustments.errorRate": "Geben Sie einen Prozentsatz ein.",
|
|
466
|
+
"sales.documents.adjustments.errorReturnZero": "Rückgabe-Anpassungen müssen einen Betrag ungleich null verwenden. Erstellen Sie die Rückgabe über den Tab „Rückgaben“, anstatt eine Rückgabe-Anpassung mit dem Wert null zu erfassen.",
|
|
466
467
|
"sales.documents.adjustments.errorSave": "Anpassung konnte nicht gespeichert werden.",
|
|
467
468
|
"sales.documents.adjustments.errorScope": "Organisation und Mandant sind erforderlich.",
|
|
468
469
|
"sales.documents.adjustments.kind": "Typ",
|
|
@@ -463,6 +463,7 @@
|
|
|
463
463
|
"sales.documents.adjustments.errorDelete": "Failed to delete adjustment.",
|
|
464
464
|
"sales.documents.adjustments.errorLoad": "Failed to load adjustments.",
|
|
465
465
|
"sales.documents.adjustments.errorRate": "Enter a percentage rate.",
|
|
466
|
+
"sales.documents.adjustments.errorReturnZero": "Return adjustments must use a non-zero amount. Create the return through the Returns tab instead.",
|
|
466
467
|
"sales.documents.adjustments.errorSave": "Failed to save adjustment.",
|
|
467
468
|
"sales.documents.adjustments.errorScope": "Organization and tenant are required.",
|
|
468
469
|
"sales.documents.adjustments.kind": "Kind",
|
|
@@ -463,6 +463,7 @@
|
|
|
463
463
|
"sales.documents.adjustments.errorDelete": "No se pudo eliminar el ajuste.",
|
|
464
464
|
"sales.documents.adjustments.errorLoad": "No se pudieron cargar los ajustes.",
|
|
465
465
|
"sales.documents.adjustments.errorRate": "Introduce un porcentaje.",
|
|
466
|
+
"sales.documents.adjustments.errorReturnZero": "Los ajustes de devolución deben usar un importe distinto de cero. Crea la devolución desde la pestaña Devoluciones en lugar de registrar un ajuste de devolución con valor cero.",
|
|
466
467
|
"sales.documents.adjustments.errorSave": "No se pudo guardar el ajuste.",
|
|
467
468
|
"sales.documents.adjustments.errorScope": "Se requieren organización y arrendatario.",
|
|
468
469
|
"sales.documents.adjustments.kind": "Tipo",
|
|
@@ -463,6 +463,7 @@
|
|
|
463
463
|
"sales.documents.adjustments.errorDelete": "Nie udało się usunąć korekty.",
|
|
464
464
|
"sales.documents.adjustments.errorLoad": "Nie udało się wczytać korekt.",
|
|
465
465
|
"sales.documents.adjustments.errorRate": "Wprowadź stawkę procentową.",
|
|
466
|
+
"sales.documents.adjustments.errorReturnZero": "Korekty zwrotu muszą mieć kwotę różną od zera. Utwórz zwrot na karcie Zwroty zamiast dodawać korektę zwrotu o wartości zero.",
|
|
466
467
|
"sales.documents.adjustments.errorSave": "Nie udało się zapisać korekty.",
|
|
467
468
|
"sales.documents.adjustments.errorScope": "Wymagane są identyfikatory organizacji i dzierżawcy.",
|
|
468
469
|
"sales.documents.adjustments.kind": "Typ",
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const leaveRequestsIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('rect', { x: 3, y: 4, width: 18, height: 18, rx: 2, ry: 2 }),
|
|
7
|
-
React.createElement('line', { x1: 16, y1: 2, x2: 16, y2: 6 }),
|
|
8
|
-
React.createElement('line', { x1: 8, y1: 2, x2: 8, y2: 6 }),
|
|
9
|
-
React.createElement('line', { x1: 3, y1: 10, x2: 21, y2: 10 }),
|
|
10
|
-
)
|
|
11
|
-
|
|
12
1
|
export const metadata = {
|
|
13
2
|
requireAuth: true,
|
|
14
3
|
requireFeatures: ['staff.leave_requests.manage'],
|
|
@@ -17,6 +6,6 @@ export const metadata = {
|
|
|
17
6
|
pageGroup: 'Employees',
|
|
18
7
|
pageGroupKey: 'staff.nav.group',
|
|
19
8
|
pageOrder: 90,
|
|
20
|
-
icon:
|
|
9
|
+
icon: 'calendar-check',
|
|
21
10
|
breadcrumb: [{ label: 'Leave requests', labelKey: 'staff.leaveRequests.page.title' }],
|
|
22
11
|
}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const myAvailabilityIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('circle', { cx: 12, cy: 12, r: 10 }),
|
|
7
|
-
React.createElement('polyline', { points: '12 6 12 12 16 14' }),
|
|
8
|
-
)
|
|
9
|
-
|
|
10
1
|
export const metadata = {
|
|
11
2
|
requireAuth: true,
|
|
12
3
|
requireFeatures: ['staff.my_availability.view'],
|
|
@@ -15,6 +6,6 @@ export const metadata = {
|
|
|
15
6
|
pageGroup: 'Employees',
|
|
16
7
|
pageGroupKey: 'staff.nav.group',
|
|
17
8
|
pageOrder: 92,
|
|
18
|
-
icon:
|
|
9
|
+
icon: 'clock',
|
|
19
10
|
breadcrumb: [{ label: 'My availability', labelKey: 'staff.myAvailability.page.title' }],
|
|
20
11
|
}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const myLeaveRequestsIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('rect', { x: 3, y: 4, width: 18, height: 18, rx: 2, ry: 2 }),
|
|
7
|
-
React.createElement('line', { x1: 16, y1: 2, x2: 16, y2: 6 }),
|
|
8
|
-
React.createElement('line', { x1: 8, y1: 2, x2: 8, y2: 6 }),
|
|
9
|
-
React.createElement('line', { x1: 3, y1: 10, x2: 21, y2: 10 }),
|
|
10
|
-
)
|
|
11
|
-
|
|
12
1
|
export const metadata = {
|
|
13
2
|
requireAuth: true,
|
|
14
3
|
requireFeatures: ['staff.my_leave_requests.view'],
|
|
@@ -17,6 +6,6 @@ export const metadata = {
|
|
|
17
6
|
pageGroup: 'Employees',
|
|
18
7
|
pageGroupKey: 'staff.nav.group',
|
|
19
8
|
pageOrder: 91,
|
|
20
|
-
icon:
|
|
9
|
+
icon: 'calendar-check',
|
|
21
10
|
breadcrumb: [{ label: 'My leave requests', labelKey: 'staff.leaveRequests.my.title' }],
|
|
22
11
|
}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const teamIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('circle', { cx: 12, cy: 8, r: 3 }),
|
|
7
|
-
React.createElement('path', { d: 'M4 20c0-4 4-6 8-6s8 2 8 6' }),
|
|
8
|
-
)
|
|
9
|
-
|
|
10
1
|
export const metadata = {
|
|
11
2
|
requireAuth: true,
|
|
12
3
|
requireFeatures: ['staff.manage_team'],
|
|
@@ -15,6 +6,6 @@ export const metadata = {
|
|
|
15
6
|
pageGroup: 'Employees',
|
|
16
7
|
pageGroupKey: 'staff.nav.group',
|
|
17
8
|
pageOrder: 80,
|
|
18
|
-
icon:
|
|
9
|
+
icon: 'user',
|
|
19
10
|
breadcrumb: [{ label: 'Team members', labelKey: 'staff.teamMembers.page.title' }],
|
|
20
11
|
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const briefcaseIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('rect', { x: 2, y: 7, width: 20, height: 14, rx: 2, ry: 2 }),
|
|
7
|
-
React.createElement('path', { d: 'M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2' }),
|
|
8
|
-
React.createElement('path', { d: 'M2 13h20' }),
|
|
9
|
-
)
|
|
10
|
-
|
|
11
1
|
export const metadata = {
|
|
12
2
|
requireAuth: true,
|
|
13
3
|
requireFeatures: ['staff.manage_team'],
|
|
@@ -16,6 +6,6 @@ export const metadata = {
|
|
|
16
6
|
pageGroup: 'Employees',
|
|
17
7
|
pageGroupKey: 'staff.nav.group',
|
|
18
8
|
pageOrder: 81,
|
|
19
|
-
icon:
|
|
9
|
+
icon: 'briefcase',
|
|
20
10
|
breadcrumb: [{ label: 'Team roles', labelKey: 'staff.teamRoles.page.title' }],
|
|
21
11
|
}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const teamsIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('circle', { cx: 8, cy: 8, r: 3 }),
|
|
7
|
-
React.createElement('circle', { cx: 16, cy: 8, r: 3 }),
|
|
8
|
-
React.createElement('path', { d: 'M3 20c0-3 3-5 5-5' }),
|
|
9
|
-
React.createElement('path', { d: 'M21 20c0-3-3-5-5-5' }),
|
|
10
|
-
)
|
|
11
|
-
|
|
12
1
|
export const metadata = {
|
|
13
2
|
requireAuth: true,
|
|
14
3
|
requireFeatures: ['staff.manage_team'],
|
|
@@ -17,6 +6,6 @@ export const metadata = {
|
|
|
17
6
|
pageGroup: 'Employees',
|
|
18
7
|
pageGroupKey: 'staff.nav.group',
|
|
19
8
|
pageOrder: 79,
|
|
20
|
-
icon:
|
|
9
|
+
icon: 'users',
|
|
21
10
|
breadcrumb: [{ label: 'Teams', labelKey: 'staff.teams.page.title' }],
|
|
22
11
|
}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const clockIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('circle', { cx: 12, cy: 12, r: 10 }),
|
|
7
|
-
React.createElement('path', { d: 'M12 6v6l4 2' }),
|
|
8
|
-
)
|
|
9
|
-
|
|
10
1
|
export const metadata = {
|
|
11
2
|
requireAuth: true,
|
|
12
3
|
requireFeatures: ['staff.timesheets.view'],
|
|
@@ -15,6 +6,6 @@ export const metadata = {
|
|
|
15
6
|
pageGroup: 'Employees',
|
|
16
7
|
pageGroupKey: 'staff.nav.group',
|
|
17
8
|
pageOrder: 85,
|
|
18
|
-
icon:
|
|
9
|
+
icon: 'clock',
|
|
19
10
|
breadcrumb: [{ label: 'My Timesheets', labelKey: 'staff.timesheets.nav.my_timesheets' }],
|
|
20
11
|
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const definitionsIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('path', { d: 'M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z' }),
|
|
7
|
-
React.createElement('polyline', { points: '3.27 6.96 12 12.01 20.73 6.96' }),
|
|
8
|
-
React.createElement('line', { x1: '12', y1: '22.08', x2: '12', y2: '12' }),
|
|
9
|
-
)
|
|
10
|
-
|
|
11
1
|
export const metadata = {
|
|
12
2
|
requireAuth: true,
|
|
13
3
|
requireFeatures: ['workflows.view'],
|
|
@@ -17,6 +7,6 @@ export const metadata = {
|
|
|
17
7
|
pageGroupKey: 'workflows.module.name',
|
|
18
8
|
pagePriority: 10,
|
|
19
9
|
pageOrder: 100,
|
|
20
|
-
icon:
|
|
10
|
+
icon: 'workflow',
|
|
21
11
|
breadcrumb: [{ label: 'Workflows', labelKey: 'workflows.module.name' }],
|
|
22
12
|
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const eventsIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('path', { d: 'M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2' }),
|
|
7
|
-
React.createElement('circle', { cx: '9', cy: '7', r: '4' }),
|
|
8
|
-
React.createElement('polyline', { points: '16 11 18 13 22 9' }),
|
|
9
|
-
)
|
|
10
|
-
|
|
11
1
|
export const metadata = {
|
|
12
2
|
requireAuth: true,
|
|
13
3
|
requireFeatures: ['workflows.view_logs'],
|
|
@@ -17,7 +7,7 @@ export const metadata = {
|
|
|
17
7
|
pageGroupKey: 'workflows.module.name',
|
|
18
8
|
pagePriority: 40,
|
|
19
9
|
pageOrder: 130,
|
|
20
|
-
icon:
|
|
10
|
+
icon: 'activity',
|
|
21
11
|
breadcrumb: [
|
|
22
12
|
{ label: 'Workflows', labelKey: 'workflows.module.name' },
|
|
23
13
|
{ label: 'Events', labelKey: 'workflows.events.plural' },
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const instancesIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('path', { d: 'M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z' }),
|
|
7
|
-
)
|
|
8
|
-
|
|
9
1
|
export const metadata = {
|
|
10
2
|
requireAuth: true,
|
|
11
3
|
requireFeatures: ['workflows.view_instances'],
|
|
@@ -15,7 +7,7 @@ export const metadata = {
|
|
|
15
7
|
pageGroupKey: 'workflows.module.name',
|
|
16
8
|
pagePriority: 20,
|
|
17
9
|
pageOrder: 110,
|
|
18
|
-
icon:
|
|
10
|
+
icon: 'wrench',
|
|
19
11
|
breadcrumb: [
|
|
20
12
|
{ label: 'Workflows', labelKey: 'workflows.module.name' },
|
|
21
13
|
{ label: 'Instances', labelKey: 'workflows.instances.plural' },
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const tasksIcon = React.createElement(
|
|
4
|
-
'svg',
|
|
5
|
-
{ width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },
|
|
6
|
-
React.createElement('path', { d: 'M9 11l3 3L22 4' }),
|
|
7
|
-
React.createElement('path', { d: 'M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11' }),
|
|
8
|
-
)
|
|
9
|
-
|
|
10
1
|
export const metadata = {
|
|
11
2
|
requireAuth: true,
|
|
12
3
|
requireFeatures: ['workflows.view_tasks'],
|
|
@@ -16,7 +7,7 @@ export const metadata = {
|
|
|
16
7
|
pageGroupKey: 'workflows.module.name',
|
|
17
8
|
pagePriority: 30,
|
|
18
9
|
pageOrder: 120,
|
|
19
|
-
icon:
|
|
10
|
+
icon: 'check-square',
|
|
20
11
|
breadcrumb: [
|
|
21
12
|
{ label: 'Workflows', labelKey: 'workflows.module.name' },
|
|
22
13
|
{ label: 'Tasks', labelKey: 'workflows.tasks.plural' },
|