@axelor/aos-mobile-hr 7.2.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 +44 -0
- package/lib/api/currency-api.d.ts +4 -0
- package/lib/api/currency-api.js +32 -0
- package/lib/api/currency-api.js.map +1 -0
- package/lib/api/distance-api.d.ts +4 -0
- package/lib/api/distance-api.js +40 -0
- package/lib/api/distance-api.js.map +1 -0
- package/lib/api/expense-api.d.ts +37 -0
- package/lib/api/expense-api.js +136 -0
- package/lib/api/expense-api.js.map +1 -0
- package/lib/api/expense-config-api.d.ts +1 -0
- package/lib/api/expense-config-api.js +23 -0
- package/lib/api/expense-config-api.js.map +1 -0
- package/lib/api/expense-line-api.d.ts +24 -0
- package/lib/api/expense-line-api.js +111 -0
- package/lib/api/expense-line-api.js.map +1 -0
- package/lib/api/expense-type-api.d.ts +5 -0
- package/lib/api/expense-type-api.js +56 -0
- package/lib/api/expense-type-api.js.map +1 -0
- package/lib/api/index.d.ts +6 -0
- package/lib/api/index.js +24 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/kilometric-allow-param-api.d.ts +5 -0
- package/lib/api/kilometric-allow-param-api.js +44 -0
- package/lib/api/kilometric-allow-param-api.js.map +1 -0
- package/lib/api/project-api.d.ts +5 -0
- package/lib/api/project-api.js +39 -0
- package/lib/api/project-api.js.map +1 -0
- package/lib/components/atoms/ExpenseCard/ExpenseCard.d.ts +15 -0
- package/lib/components/atoms/ExpenseCard/ExpenseCard.js +130 -0
- package/lib/components/atoms/ExpenseCard/ExpenseCard.js.map +1 -0
- package/lib/components/atoms/ExpenseLineCard/ExpenseLineCard.d.ts +12 -0
- package/lib/components/atoms/ExpenseLineCard/ExpenseLineCard.js +106 -0
- package/lib/components/atoms/ExpenseLineCard/ExpenseLineCard.js.map +1 -0
- package/lib/components/atoms/index.d.ts +2 -0
- package/lib/components/atoms/index.js +20 -0
- package/lib/components/atoms/index.js.map +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.js +21 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/ExpenseAddPopup/ExpenseAddPopup.d.ts +7 -0
- package/lib/components/molecules/ExpenseAddPopup/ExpenseAddPopup.js +78 -0
- package/lib/components/molecules/ExpenseAddPopup/ExpenseAddPopup.js.map +1 -0
- package/lib/components/molecules/ExpenseDetailsValidationButton/ExpenseDetailsValidationButton.d.ts +5 -0
- package/lib/components/molecules/ExpenseDetailsValidationButton/ExpenseDetailsValidationButton.js +76 -0
- package/lib/components/molecules/ExpenseDetailsValidationButton/ExpenseDetailsValidationButton.js.map +1 -0
- package/lib/components/molecules/ExpenseLineDetailCard/ExpenseLineDetailCard.d.ts +11 -0
- package/lib/components/molecules/ExpenseLineDetailCard/ExpenseLineDetailCard.js +131 -0
- package/lib/components/molecules/ExpenseLineDetailCard/ExpenseLineDetailCard.js.map +1 -0
- package/lib/components/molecules/ExpenseLineValidationButton/ExpenseLineValidationButton.d.ts +6 -0
- package/lib/components/molecules/ExpenseLineValidationButton/ExpenseLineValidationButton.js +37 -0
- package/lib/components/molecules/ExpenseLineValidationButton/ExpenseLineValidationButton.js.map +1 -0
- package/lib/components/molecules/ExpenseRefusalPopup/ExpenseRefusalPopup.d.ts +9 -0
- package/lib/components/molecules/ExpenseRefusalPopup/ExpenseRefusalPopup.js +39 -0
- package/lib/components/molecules/ExpenseRefusalPopup/ExpenseRefusalPopup.js.map +1 -0
- package/lib/components/molecules/index.d.ts +5 -0
- package/lib/components/molecules/index.js +23 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/templates/BillableSwitchCard/BillableSwitchCard.d.ts +7 -0
- package/lib/components/templates/BillableSwitchCard/BillableSwitchCard.js +26 -0
- package/lib/components/templates/BillableSwitchCard/BillableSwitchCard.js.map +1 -0
- package/lib/components/templates/CityFormInput/CityFormInput.d.ts +9 -0
- package/lib/components/templates/CityFormInput/CityFormInput.js +76 -0
- package/lib/components/templates/CityFormInput/CityFormInput.js.map +1 -0
- package/lib/components/templates/CurrencySearchBar/CurrencySearchBar.d.ts +9 -0
- package/lib/components/templates/CurrencySearchBar/CurrencySearchBar.js +38 -0
- package/lib/components/templates/CurrencySearchBar/CurrencySearchBar.js.map +1 -0
- package/lib/components/templates/DistanceIncrement/DistanceIncrement.d.ts +9 -0
- package/lib/components/templates/DistanceIncrement/DistanceIncrement.js +46 -0
- package/lib/components/templates/DistanceIncrement/DistanceIncrement.js.map +1 -0
- package/lib/components/templates/ExpenseHeader/ExpenseHeader.d.ts +2 -0
- package/lib/components/templates/ExpenseHeader/ExpenseHeader.js +52 -0
- package/lib/components/templates/ExpenseHeader/ExpenseHeader.js.map +1 -0
- package/lib/components/templates/ExpenseLineTypeSwitch/ExpenseLineTypeSwitch.d.ts +4 -0
- package/lib/components/templates/ExpenseLineTypeSwitch/ExpenseLineTypeSwitch.js +63 -0
- package/lib/components/templates/ExpenseLineTypeSwitch/ExpenseLineTypeSwitch.js.map +1 -0
- package/lib/components/templates/ExpenseTypeSearchBar/ExpenseTypeSearchBar.d.ts +5 -0
- package/lib/components/templates/ExpenseTypeSearchBar/ExpenseTypeSearchBar.js +40 -0
- package/lib/components/templates/ExpenseTypeSearchBar/ExpenseTypeSearchBar.js.map +1 -0
- package/lib/components/templates/ExpenseWaitingValidationSearchBar/ExpenseWaitingValidationSearchBar.d.ts +12 -0
- package/lib/components/templates/ExpenseWaitingValidationSearchBar/ExpenseWaitingValidationSearchBar.js +33 -0
- package/lib/components/templates/ExpenseWaitingValidationSearchBar/ExpenseWaitingValidationSearchBar.js.map +1 -0
- package/lib/components/templates/KilometricAllowParamSearchBar/KilometricAllowParamSearchBar.d.ts +9 -0
- package/lib/components/templates/KilometricAllowParamSearchBar/KilometricAllowParamSearchBar.js +81 -0
- package/lib/components/templates/KilometricAllowParamSearchBar/KilometricAllowParamSearchBar.js.map +1 -0
- package/lib/components/templates/KilometricTypeSelectPicker/KilometricTypeSelectPicker.d.ts +8 -0
- package/lib/components/templates/KilometricTypeSelectPicker/KilometricTypeSelectPicker.js +37 -0
- package/lib/components/templates/KilometricTypeSelectPicker/KilometricTypeSelectPicker.js.map +1 -0
- package/lib/components/templates/ProjectSearchBar/ProjectSearchBar.d.ts +9 -0
- package/lib/components/templates/ProjectSearchBar/ProjectSearchBar.js +38 -0
- package/lib/components/templates/ProjectSearchBar/ProjectSearchBar.js.map +1 -0
- package/lib/components/templates/ToggleSwitchMode/ToggleSwitchMode.d.ts +6 -0
- package/lib/components/templates/ToggleSwitchMode/ToggleSwitchMode.js +34 -0
- package/lib/components/templates/ToggleSwitchMode/ToggleSwitchMode.js.map +1 -0
- package/lib/components/templates/index.d.ts +12 -0
- package/lib/components/templates/index.js +30 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +6 -0
- package/lib/features/asyncFunctions-index.js +24 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/currencySlice.d.ts +16 -0
- package/lib/features/currencySlice.js +49 -0
- package/lib/features/currencySlice.js.map +1 -0
- package/lib/features/distanceSlice.d.ts +22 -0
- package/lib/features/distanceSlice.js +76 -0
- package/lib/features/distanceSlice.js.map +1 -0
- package/lib/features/expenseConfigSlice.d.ts +14 -0
- package/lib/features/expenseConfigSlice.js +48 -0
- package/lib/features/expenseConfigSlice.js.map +1 -0
- package/lib/features/expenseLineSlice.d.ts +76 -0
- package/lib/features/expenseLineSlice.js +180 -0
- package/lib/features/expenseLineSlice.js.map +1 -0
- package/lib/features/expenseSlice.d.ts +105 -0
- package/lib/features/expenseSlice.js +314 -0
- package/lib/features/expenseSlice.js.map +1 -0
- package/lib/features/expenseTypeSlice.d.ts +16 -0
- package/lib/features/expenseTypeSlice.js +49 -0
- package/lib/features/expenseTypeSlice.js.map +1 -0
- package/lib/features/index.d.ts +8 -0
- package/lib/features/index.js +26 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/kilometricAllowParamSlice.d.ts +18 -0
- package/lib/features/kilometricAllowParamSlice.js +56 -0
- package/lib/features/kilometricAllowParamSlice.js.map +1 -0
- package/lib/features/projectSlice.d.ts +16 -0
- package/lib/features/projectSlice.js +49 -0
- package/lib/features/projectSlice.js.map +1 -0
- package/lib/hooks/use-hr-header-actions.d.ts +1 -0
- package/lib/hooks/use-hr-header-actions.js +53 -0
- package/lib/hooks/use-hr-header-actions.js.map +1 -0
- package/lib/i18n/en.json +68 -0
- package/lib/i18n/fr.json +68 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +66 -0
- package/lib/index.js.map +1 -0
- package/lib/models/forms.d.ts +2 -0
- package/lib/models/forms.js +183 -0
- package/lib/models/forms.js.map +1 -0
- package/lib/models/index.d.ts +4 -0
- package/lib/models/index.js +22 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/objectFields.d.ts +2 -0
- package/lib/models/objectFields.js +87 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +26 -0
- package/lib/models/searchFields.js.map +1 -0
- package/lib/models/sortFields.d.ts +2 -0
- package/lib/models/sortFields.js +26 -0
- package/lib/models/sortFields.js.map +1 -0
- package/lib/screens/ExpenseDetailsScreen.d.ts +5 -0
- package/lib/screens/ExpenseDetailsScreen.js +85 -0
- package/lib/screens/ExpenseDetailsScreen.js.map +1 -0
- package/lib/screens/ExpenseLineFormScreen.d.ts +5 -0
- package/lib/screens/ExpenseLineFormScreen.js +202 -0
- package/lib/screens/ExpenseLineFormScreen.js.map +1 -0
- package/lib/screens/ExpenseLinesListScreen.d.ts +4 -0
- package/lib/screens/ExpenseLinesListScreen.js +91 -0
- package/lib/screens/ExpenseLinesListScreen.js.map +1 -0
- package/lib/screens/ExpenseListScreen.d.ts +4 -0
- package/lib/screens/ExpenseListScreen.js +138 -0
- package/lib/screens/ExpenseListScreen.js.map +1 -0
- package/lib/screens/index.d.ts +38 -0
- package/lib/screens/index.js +52 -0
- package/lib/screens/index.js.map +1 -0
- package/lib/types/expense.d.ts +27 -0
- package/lib/types/expense.js +80 -0
- package/lib/types/expense.js.map +1 -0
- package/lib/types/expenseLine.d.ts +21 -0
- package/lib/types/expenseLine.js +57 -0
- package/lib/types/expenseLine.js.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.js +20 -0
- package/lib/types/index.js.map +1 -0
- package/package.json +50 -0
package/lib/i18n/en.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Hr_HumanRessources": "Human ressources",
|
|
3
|
+
"Hr_Hr": "HR",
|
|
4
|
+
"Hr_Expense": "Expense",
|
|
5
|
+
"Hr_Expenses": "Expenses",
|
|
6
|
+
"Hr_ExpenseLines": "Expense lines",
|
|
7
|
+
"Hr_NewExpenseLine": "New expense line",
|
|
8
|
+
"Hr_NewExpense": "Create a new expense",
|
|
9
|
+
"Hr_KilomectricTypeSelect_OneWay": "One-Way",
|
|
10
|
+
"Hr_KilomectricTypeSelect_RoundTrip": "Round Trip",
|
|
11
|
+
"Hr_ExpenseStatus_Draft": "Draft",
|
|
12
|
+
"Hr_ExpenseStatus_WaitingValidation": "Waiting validation",
|
|
13
|
+
"Hr_ExpenseStatus_Validate": "Validated",
|
|
14
|
+
"Hr_ExpenseStatus_Reimbursed": "Reimbursed",
|
|
15
|
+
"Hr_ExpenseStatus_Refused": "Refused",
|
|
16
|
+
"Hr_ExpenseStatus_Canceled": "Canceled",
|
|
17
|
+
"Hr_MyExpenses": "My expenses",
|
|
18
|
+
"Hr_ToValidate": "To validate",
|
|
19
|
+
"Hr_Period": "Period",
|
|
20
|
+
"Hr_Status": "Status",
|
|
21
|
+
"Hr_Employee": "Employee",
|
|
22
|
+
"Hr_General": "General",
|
|
23
|
+
"Hr_Kilometric": "Kilometric",
|
|
24
|
+
"Hr_ExpenseNumber": "Expense n°",
|
|
25
|
+
"Hr_TotalATI": "Total A.T.I.",
|
|
26
|
+
"Hr_TotalTax": "Total tax",
|
|
27
|
+
"Hr_Currency": "Currency",
|
|
28
|
+
"Hr_Project": "Project",
|
|
29
|
+
"Hr_ToInvoice": "To invoice",
|
|
30
|
+
"Hr_ExpenseType": "Expense type",
|
|
31
|
+
"Hr_ExpenseDate": "Expense date",
|
|
32
|
+
"Hr_Justification": "Justification",
|
|
33
|
+
"Hr_Comments": "Comments",
|
|
34
|
+
"Hr_KilometricAllowParam": "Kilometric allow param",
|
|
35
|
+
"Hr_KilometricTypeSelect": "Type",
|
|
36
|
+
"Hr_Distance": "Distance",
|
|
37
|
+
"Hr_FromCity": "Starting city",
|
|
38
|
+
"Hr_ToCity": "Arriving city",
|
|
39
|
+
"Hr_Send": "Send",
|
|
40
|
+
"Hr_Validate": "Validate",
|
|
41
|
+
"Hr_CreateExpenseLine": "Create expense line",
|
|
42
|
+
"Hr_Refuse": "Refuse",
|
|
43
|
+
"Hr_ReasonRefusal": "Reason for refusal",
|
|
44
|
+
"Hr_CityNotFound": "At least one of the two cities could not be located.",
|
|
45
|
+
"Hr_SliceAction_FetchExpenseLines": "fetch expense lines",
|
|
46
|
+
"Hr_SliceAction_SearchDraftExpense": "fetch draft expenses",
|
|
47
|
+
"Hr_SliceAction_FetchExpense": "fetch expenses",
|
|
48
|
+
"Hr_SliceAction_FetchMyExpense": "fetch my expense",
|
|
49
|
+
"Hr_SliceAction_FetchExpenseToValidate": "fetch expense to validate",
|
|
50
|
+
"Hr_SliceAction_FetchExpenseById": "fetch expense by id",
|
|
51
|
+
"Hr_SliceAction_FetchExpenseLinesByIds:": "fetch expense lines by ids",
|
|
52
|
+
"Hr_SliceAction_SearchKilometricExpenseLines:": "fetch kilometric expense lines",
|
|
53
|
+
"Hr_SliceAction_SearchGeneralExpenseLines": "search general expense lines",
|
|
54
|
+
"Hr_SliceAction_CreateExpenseLine": "create expense line",
|
|
55
|
+
"Hr_SliceAction_SearchKilometricAllowParam": "seach kilometric allow param",
|
|
56
|
+
"Hr_SliceAction_FetchExpenseType": "fetch expense types",
|
|
57
|
+
"Hr_SliceAction_FetchProjects": "fetch projects",
|
|
58
|
+
"Hr_SliceAction_FetchExpenseLineById": "fetch expense line by id",
|
|
59
|
+
"Hr_SliceAction_CreateExpense": "create expense",
|
|
60
|
+
"Hr_SliceAction_UpdateExpense": "update expense",
|
|
61
|
+
"Hr_SliceAction_SendExpense": "send expense",
|
|
62
|
+
"Hr_SliceAction_ValidateExpense": "validate expense",
|
|
63
|
+
"Hr_SliceAction_RefuseExpense": "refuse expense",
|
|
64
|
+
"Hr_SliceAction_DeleteExpenseLine": "delete orphan expense line",
|
|
65
|
+
"Hr_SliceAction_FetchCurrencies": "fetch currencies",
|
|
66
|
+
"Hr_SliceAction_FetchExpenseConfig": "fetch expense config",
|
|
67
|
+
"Hr_SliceAction_GetDistance": "get distance"
|
|
68
|
+
}
|
package/lib/i18n/fr.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Hr_HumanRessources": "Ressources humaines",
|
|
3
|
+
"Hr_Hr": "RH",
|
|
4
|
+
"Hr_ExpenseLines": "Ligne de frais",
|
|
5
|
+
"Hr_Expense": "Note de frais",
|
|
6
|
+
"Hr_Expenses": "Notes de frais",
|
|
7
|
+
"Hr_NewExpenseLine": "Nouvelle ligne de frais",
|
|
8
|
+
"Hr_NewExpense": "Créer une nouvelle note de frais",
|
|
9
|
+
"Hr_KilomectricTypeSelect_OneWay": "Aller-simple",
|
|
10
|
+
"Hr_KilomectricTypeSelect_RoundTrip": "Aller-retour",
|
|
11
|
+
"Hr_ExpenseStatus_Draft": "Brouillon",
|
|
12
|
+
"Hr_ExpenseStatus_WaitingValidation": "Attente validation",
|
|
13
|
+
"Hr_ExpenseStatus_Validate": "Validé",
|
|
14
|
+
"Hr_ExpenseStatus_Reimbursed": "Remboursé",
|
|
15
|
+
"Hr_ExpenseStatus_Refused": "Refusé",
|
|
16
|
+
"Hr_ExpenseStatus_Canceled": "Annulé",
|
|
17
|
+
"Hr_MyExpenses": "Mes notes de frais",
|
|
18
|
+
"Hr_ToValidate": "À valider",
|
|
19
|
+
"Hr_Period": "Période",
|
|
20
|
+
"Hr_Status": "Statut",
|
|
21
|
+
"Hr_Employee": "Employé",
|
|
22
|
+
"Hr_General": "Généraux",
|
|
23
|
+
"Hr_Kilometric": "Kilométriques",
|
|
24
|
+
"Hr_ExpenseNumber": "Note de frais n°",
|
|
25
|
+
"Hr_TotalATI": "Total TTC",
|
|
26
|
+
"Hr_TotalTax": "Montant TVA",
|
|
27
|
+
"Hr_Currency": "Devise",
|
|
28
|
+
"Hr_Project": "Projet",
|
|
29
|
+
"Hr_ToInvoice": "À facturer",
|
|
30
|
+
"Hr_ExpenseType": "Type de frais",
|
|
31
|
+
"Hr_ExpenseDate": "Date de dépense",
|
|
32
|
+
"Hr_Justification": "Justificatif",
|
|
33
|
+
"Hr_Comments": "Commentaires",
|
|
34
|
+
"Hr_KilometricTypeSelect": "Type",
|
|
35
|
+
"Hr_Distance": "Distance",
|
|
36
|
+
"Hr_FromCity": "Ville de départ",
|
|
37
|
+
"Hr_ToCity": "Ville d'arrivée",
|
|
38
|
+
"Hr_KilometricAllowParam": "Puissance fiscale",
|
|
39
|
+
"Hr_Send": "Envoyer",
|
|
40
|
+
"Hr_Validate": "Valider",
|
|
41
|
+
"Hr_CreateExpenseLine": "Créer une ligne de note de frais",
|
|
42
|
+
"Hr_Refuse": "Refuser",
|
|
43
|
+
"Hr_ReasonRefusal": "Motif de refus",
|
|
44
|
+
"Hr_CityNotFound": "Au moins une des deux villes n'a pas pu être localisée.",
|
|
45
|
+
"Hr_SliceAction_FetchExpenseLines": "récupération des lignes de frais",
|
|
46
|
+
"Hr_SliceAction_SearchDraftExpense": "récupération des notes de frais brouillon",
|
|
47
|
+
"Hr_SliceAction_FetchExpense": "récupération des notes de frais",
|
|
48
|
+
"Hr_SliceAction_FetchMyExpense": "récupération de mes notes de frais",
|
|
49
|
+
"Hr_SliceAction_FetchExpenseToValidate": "récupération des notes de frais à valider",
|
|
50
|
+
"Hr_SliceAction_FetchExpenseById": "récupération des notes de frais par id",
|
|
51
|
+
"Hr_SliceAction_FetchExpenseLinesByIds:": "récupération des lignes de note de frais par id",
|
|
52
|
+
"Hr_SliceAction_SearchKilometricExpenseLines:": "récupération des lignes de note de frais kilometriques",
|
|
53
|
+
"Hr_SliceAction_SearchGeneralExpenseLines": "récupération des lignes de note de frais générales",
|
|
54
|
+
"Hr_SliceAction_CreateExpenseLine": "création d'une ligne de frais",
|
|
55
|
+
"Hr_SliceAction_SearchKilometricAllowParam": "recherche sur les puissances fiscales",
|
|
56
|
+
"Hr_SliceAction_FetchExpenseType": "récuperation des types de frais",
|
|
57
|
+
"Hr_SliceAction_FetchProjects": "récupération des projets",
|
|
58
|
+
"Hr_SliceAction_FetchExpenseLineById": "récuperation de la ligne de frais par id",
|
|
59
|
+
"Hr_SliceAction_CreateExpense": "création d'une note de frais",
|
|
60
|
+
"Hr_SliceAction_UpdateExpense": "mise à jour de la note de frais",
|
|
61
|
+
"Hr_SliceAction_SendExpense": "envoie de la note de frais",
|
|
62
|
+
"Hr_SliceAction_ValidateExpense": "validation de la note de frais",
|
|
63
|
+
"Hr_SliceAction_RefuseExpense": "refus de la note de frais",
|
|
64
|
+
"Hr_SliceAction_DeleteExpenseLine": "suppression d'un ligne de frais orpheline",
|
|
65
|
+
"Hr_SliceAction_FetchCurrencies": "récupération des devises",
|
|
66
|
+
"Hr_SliceAction_FetchExpenseConfig": "récupération de la configuration des notes de frais",
|
|
67
|
+
"Hr_SliceAction_GetDistance": "récupération de la distance"
|
|
68
|
+
}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import enTranslations from './i18n/en.json';
|
|
19
|
+
import frTranslations from './i18n/fr.json';
|
|
20
|
+
import HrScreens from './screens/';
|
|
21
|
+
import { hr_modelAPI, hr_searchFields, hr_sortFields, hr_formsRegister, } from './models';
|
|
22
|
+
import * as hrReducers from './features';
|
|
23
|
+
import { useHrHeaders } from './hooks/use-hr-header-actions';
|
|
24
|
+
export const HrModule = {
|
|
25
|
+
name: 'app-hr',
|
|
26
|
+
title: 'Hr_HumanRessources',
|
|
27
|
+
subtitle: 'Hr_Hr',
|
|
28
|
+
icon: 'sitemap',
|
|
29
|
+
compatibilityAOS: {
|
|
30
|
+
moduleName: 'axelor-human-resource',
|
|
31
|
+
downToVersion: '7.2.0',
|
|
32
|
+
},
|
|
33
|
+
translations: {
|
|
34
|
+
en: enTranslations,
|
|
35
|
+
fr: frTranslations,
|
|
36
|
+
},
|
|
37
|
+
menus: {
|
|
38
|
+
hr_menu_expenseLines: {
|
|
39
|
+
title: 'Hr_ExpenseLines',
|
|
40
|
+
icon: 'receipt',
|
|
41
|
+
screen: 'ExpenseLinesListScreen',
|
|
42
|
+
},
|
|
43
|
+
hr_menu_expenses: {
|
|
44
|
+
title: 'Hr_Expenses',
|
|
45
|
+
icon: 'credit-card',
|
|
46
|
+
screen: 'ExpenseListScreen',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
screens: {
|
|
50
|
+
...HrScreens,
|
|
51
|
+
},
|
|
52
|
+
reducers: { ...hrReducers },
|
|
53
|
+
models: {
|
|
54
|
+
objectFields: { ...hr_modelAPI },
|
|
55
|
+
sortFields: { ...hr_sortFields },
|
|
56
|
+
searchFields: { ...hr_searchFields },
|
|
57
|
+
formsRegister: { ...hr_formsRegister },
|
|
58
|
+
headerRegisters: useHrHeaders,
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
export * from './api';
|
|
62
|
+
export * from './components';
|
|
63
|
+
export * from './features/asyncFunctions-index';
|
|
64
|
+
export * from './screens';
|
|
65
|
+
export * from './types';
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,WAAW,EACX,eAAe,EACf,aAAa,EACb,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,MAAM,QAAQ,GAAW;IAC9B,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oBAAoB;IAC3B,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,UAAU,EAAE,uBAAuB;QACnC,aAAa,EAAE,OAAO;KACvB;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,cAAc;KACnB;IACD,KAAK,EAAE;QACL,oBAAoB,EAAE;YACpB,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,wBAAwB;SACjC;QACD,gBAAgB,EAAE;YAChB,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,mBAAmB;SAC5B;KACF;IACD,OAAO,EAAE;QACP,GAAG,SAAS;KACb;IACD,QAAQ,EAAE,EAAC,GAAG,UAAU,EAAC;IACzB,MAAM,EAAE;QACN,YAAY,EAAE,EAAC,GAAG,WAAW,EAAC;QAC9B,UAAU,EAAE,EAAC,GAAG,aAAa,EAAC;QAC9B,YAAY,EAAE,EAAC,GAAG,eAAe,EAAC;QAClC,aAAa,EAAE,EAAC,GAAG,gBAAgB,EAAC;QACpC,eAAe,EAAE,YAAY;KAC9B;CACF,CAAC;AAEF,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { BillableSwitchCard, CurrencySearchBar, DistanceIncrement, CityFormInput, ExpenseTypeSearchBar, KilometricAllowParamSearchBar, KilometricTypeSelectPicker, ProjectSearchBar, ToggleSwitchMode, } from '../components';
|
|
19
|
+
import { ExpenseLine } from '../types';
|
|
20
|
+
import { updateExpenseDate } from '../features/kilometricAllowParamSlice';
|
|
21
|
+
import { needUpdateDistance, updateFromCity, updateToCity, } from '../features/distanceSlice';
|
|
22
|
+
export const hr_formsRegister = {
|
|
23
|
+
hr_Expenseline: {
|
|
24
|
+
modelName: 'com.axelor.apps.hr.db.ExpenseLine',
|
|
25
|
+
fields: {
|
|
26
|
+
companyName: {
|
|
27
|
+
titleKey: 'User_ActiveCompany',
|
|
28
|
+
type: 'string',
|
|
29
|
+
widget: 'default',
|
|
30
|
+
readonly: true,
|
|
31
|
+
hideIf: ({ storeState }) => !storeState.config.baseConfig.enableMultiCompany ||
|
|
32
|
+
storeState.company.companyList?.length === 1,
|
|
33
|
+
},
|
|
34
|
+
manageMode: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
widget: 'custom',
|
|
37
|
+
customComponent: ToggleSwitchMode,
|
|
38
|
+
hideIf: ({ objectState, storeState }) => objectState.hideToggle ||
|
|
39
|
+
!storeState.config.mobileSettings.isKilometricExpenseLineAllowed,
|
|
40
|
+
},
|
|
41
|
+
justificationMetaFile: {
|
|
42
|
+
titleKey: 'Hr_Justification',
|
|
43
|
+
type: 'object',
|
|
44
|
+
widget: 'file',
|
|
45
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.kilometric,
|
|
46
|
+
options: {
|
|
47
|
+
displayPreview: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
expenseDate: {
|
|
51
|
+
titleKey: 'Hr_ExpenseDate',
|
|
52
|
+
type: 'date',
|
|
53
|
+
widget: 'date',
|
|
54
|
+
required: true,
|
|
55
|
+
},
|
|
56
|
+
project: {
|
|
57
|
+
titleKey: 'Hr_Project',
|
|
58
|
+
type: 'object',
|
|
59
|
+
widget: 'custom',
|
|
60
|
+
customComponent: ProjectSearchBar,
|
|
61
|
+
hideIf: ({ storeState }) => !storeState.config.mobileSettings.isProjectInvoicingEnabled,
|
|
62
|
+
},
|
|
63
|
+
toInvoice: {
|
|
64
|
+
titleKey: 'Hr_ToInvoice',
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
widget: 'custom',
|
|
67
|
+
customComponent: BillableSwitchCard,
|
|
68
|
+
hideIf: ({ storeState }) => !storeState.config.mobileSettings.isProjectInvoicingEnabled,
|
|
69
|
+
},
|
|
70
|
+
expenseProduct: {
|
|
71
|
+
titleKey: 'Hr_ExpenseType',
|
|
72
|
+
type: 'object',
|
|
73
|
+
widget: 'custom',
|
|
74
|
+
customComponent: ExpenseTypeSearchBar,
|
|
75
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.kilometric,
|
|
76
|
+
requiredIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.general,
|
|
77
|
+
},
|
|
78
|
+
kilometricAllowParam: {
|
|
79
|
+
titleKey: 'Hr_KilometricAllowParam',
|
|
80
|
+
type: 'object',
|
|
81
|
+
widget: 'custom',
|
|
82
|
+
customComponent: KilometricAllowParamSearchBar,
|
|
83
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.general,
|
|
84
|
+
requiredIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.kilometric,
|
|
85
|
+
dependsOn: {
|
|
86
|
+
expenseDate: ({ newValue, dispatch }) => {
|
|
87
|
+
dispatch(updateExpenseDate(newValue));
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
kilometricTypeSelect: {
|
|
92
|
+
titleKey: 'Hr_KilometricTypeSelect',
|
|
93
|
+
type: 'object',
|
|
94
|
+
widget: 'custom',
|
|
95
|
+
customComponent: KilometricTypeSelectPicker,
|
|
96
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.general,
|
|
97
|
+
requiredIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.kilometric,
|
|
98
|
+
},
|
|
99
|
+
fromCity: {
|
|
100
|
+
titleKey: 'Hr_FromCity',
|
|
101
|
+
type: 'string',
|
|
102
|
+
widget: 'custom',
|
|
103
|
+
customComponent: CityFormInput,
|
|
104
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.general,
|
|
105
|
+
requiredIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.kilometric,
|
|
106
|
+
dependsOn: {
|
|
107
|
+
toCity: ({ newValue, dispatch, objectState }) => {
|
|
108
|
+
dispatch(updateToCity(newValue));
|
|
109
|
+
dispatch(needUpdateDistance(true));
|
|
110
|
+
return objectState?.fromCity;
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
options: {
|
|
114
|
+
isFromCity: true,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
toCity: {
|
|
118
|
+
titleKey: 'Hr_ToCity',
|
|
119
|
+
type: 'string',
|
|
120
|
+
widget: 'custom',
|
|
121
|
+
customComponent: CityFormInput,
|
|
122
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.general,
|
|
123
|
+
requiredIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.kilometric,
|
|
124
|
+
dependsOn: {
|
|
125
|
+
fromCity: ({ newValue, dispatch, objectState }) => {
|
|
126
|
+
dispatch(updateFromCity(newValue));
|
|
127
|
+
dispatch(needUpdateDistance(true));
|
|
128
|
+
return objectState?.toCity;
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
distance: {
|
|
133
|
+
titleKey: 'Hr_Distance',
|
|
134
|
+
type: 'number',
|
|
135
|
+
widget: 'custom',
|
|
136
|
+
customComponent: DistanceIncrement,
|
|
137
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.general,
|
|
138
|
+
},
|
|
139
|
+
currency: {
|
|
140
|
+
titleKey: 'Hr_Currency',
|
|
141
|
+
type: 'object',
|
|
142
|
+
widget: 'custom',
|
|
143
|
+
customComponent: CurrencySearchBar,
|
|
144
|
+
hideIf: ({ objectState, storeState }) => objectState.manageMode !== ExpenseLine.modes.general ||
|
|
145
|
+
!storeState.config.mobileSettings.isMultiCurrencyEnabled,
|
|
146
|
+
},
|
|
147
|
+
totalAmount: {
|
|
148
|
+
titleKey: 'Hr_TotalATI',
|
|
149
|
+
type: 'number',
|
|
150
|
+
widget: 'increment',
|
|
151
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.kilometric,
|
|
152
|
+
},
|
|
153
|
+
totalTax: {
|
|
154
|
+
titleKey: 'Hr_TotalTax',
|
|
155
|
+
type: 'number',
|
|
156
|
+
widget: 'increment',
|
|
157
|
+
hideIf: ({ objectState }) => objectState.manageMode === ExpenseLine.modes.kilometric,
|
|
158
|
+
readonlyIf: ({ objectState }) => objectState?.expenseProduct?.blockExpenseTax === true,
|
|
159
|
+
dependsOn: {
|
|
160
|
+
expenseProduct: ({ objectState, newValue }) => {
|
|
161
|
+
if (newValue?.blockExpenseTax === true) {
|
|
162
|
+
return 0;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
return objectState?.totalTax;
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
comments: {
|
|
171
|
+
titleKey: 'Hr_Comments',
|
|
172
|
+
type: 'string',
|
|
173
|
+
widget: 'default',
|
|
174
|
+
options: {
|
|
175
|
+
multiline: true,
|
|
176
|
+
adjustHeightWithLines: true,
|
|
177
|
+
style: { marginBottom: 40, width: '90%', alignSelf: 'center' },
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
//# sourceMappingURL=forms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/models/forms.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,6BAA6B,EAC7B,0BAA0B,EAC1B,gBAAgB,EAChB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ACvB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,WAAW;gBACnB,MAAM,EAAE,CAAC,EAAC,WAAW,EAAC,EAAE,EAAE,CACxB,WAAW,CAAC,UAAU,KAAK,WAAW,CAAC,KAAK,CAAC,UAAU;aAC1D;YACD,QAAQ,EAAE;gBACR,QAAQ,EAAE,aAAa;gBACvB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,WAAW;gBACnB,MAAM,EAAE,CAAC,EAAC,WAAW,EAAC,EAAE,EAAE,CACxB,WAAW,CAAC,UAAU,KAAK,WAAW,CAAC,KAAK,CAAC,UAAU;gBACzD,UAAU,EAAE,CAAC,EAAC,WAAW,EAAC,EAAE,EAAE,CAC5B,WAAW,EAAE,cAAc,EAAE,eAAe,KAAK,IAAI;gBACvD,SAAS,EAAE;oBACT,cAAc,EAAE,CAAC,EAAC,WAAW,EAAE,QAAQ,EAAC,EAAE,EAAE;wBAC1C,IAAI,QAAQ,EAAE,eAAe,KAAK,IAAI,EAAE;4BACtC,OAAO,CAAC,CAAC;yBACV;6BAAM;4BACL,OAAO,WAAW,EAAE,QAAQ,CAAC;yBAC9B;oBACH,CAAC;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,QAAQ,EAAE,aAAa;gBACvB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,SAAS;gBACjB,OAAO,EAAE;oBACP,SAAS,EAAE,IAAI;oBACf,qBAAqB,EAAE,IAAI;oBAC3B,KAAK,EAAE,EAAC,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAC;iBAC7D;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export { hr_formsRegister } from './forms';
|
|
19
|
+
export { hr_searchFields } from './searchFields';
|
|
20
|
+
export { hr_sortFields } from './sortFields';
|
|
21
|
+
export { hr_modelAPI } from './objectFields';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { schemaContructor } from '@axelor/aos-mobile-core';
|
|
19
|
+
export const hr_modelAPI = {
|
|
20
|
+
hr_currency: schemaContructor.object({
|
|
21
|
+
name: schemaContructor.string(),
|
|
22
|
+
symbol: schemaContructor.string(),
|
|
23
|
+
code: schemaContructor.string(),
|
|
24
|
+
}),
|
|
25
|
+
hr_expense: schemaContructor.object({
|
|
26
|
+
fullName: schemaContructor.string(),
|
|
27
|
+
statusSelect: schemaContructor.number(),
|
|
28
|
+
expenseSeq: schemaContructor.string(),
|
|
29
|
+
period: schemaContructor.subObject('code'),
|
|
30
|
+
inTaxTotal: schemaContructor.string(),
|
|
31
|
+
employee: schemaContructor
|
|
32
|
+
.subObject()
|
|
33
|
+
.concat(schemaContructor.object({ managerUser: schemaContructor.subObject() })),
|
|
34
|
+
kilometricExpenseLineList: schemaContructor
|
|
35
|
+
.array()
|
|
36
|
+
.of(schemaContructor.subObject()),
|
|
37
|
+
generalExpenseLineList: schemaContructor
|
|
38
|
+
.array()
|
|
39
|
+
.of(schemaContructor.subObject()),
|
|
40
|
+
}),
|
|
41
|
+
hr_expenseDraft: schemaContructor.object({
|
|
42
|
+
fullName: schemaContructor.string(),
|
|
43
|
+
expenseSeq: schemaContructor.string(),
|
|
44
|
+
}),
|
|
45
|
+
hr_expenseLines: schemaContructor.object({
|
|
46
|
+
expense: schemaContructor.subObject(),
|
|
47
|
+
expenseDate: schemaContructor.string(),
|
|
48
|
+
fromCity: schemaContructor.string(),
|
|
49
|
+
toCity: schemaContructor.string(),
|
|
50
|
+
project: schemaContructor.subObject(),
|
|
51
|
+
totalAmount: schemaContructor.string(),
|
|
52
|
+
expenseProduct: schemaContructor.subObject().concat(schemaContructor.object({
|
|
53
|
+
name: schemaContructor.string(),
|
|
54
|
+
blockExpenseTax: schemaContructor.boolean(),
|
|
55
|
+
})),
|
|
56
|
+
kilometricTypeSelect: schemaContructor.number(),
|
|
57
|
+
justificationMetaFile: schemaContructor.subObject(),
|
|
58
|
+
comments: schemaContructor.string(),
|
|
59
|
+
kilometricAllowParam: schemaContructor.subObject(),
|
|
60
|
+
distance: schemaContructor.number(),
|
|
61
|
+
totalTax: schemaContructor.string(),
|
|
62
|
+
toInvoice: schemaContructor.boolean(),
|
|
63
|
+
currency: schemaContructor.subObject('symbol'),
|
|
64
|
+
}),
|
|
65
|
+
hr_expenseType: schemaContructor.object({
|
|
66
|
+
name: schemaContructor.string(),
|
|
67
|
+
fullName: schemaContructor.string(),
|
|
68
|
+
blockExpenseTax: schemaContructor.boolean(),
|
|
69
|
+
}),
|
|
70
|
+
hr_kilomectricAllowParam: schemaContructor.object({
|
|
71
|
+
name: schemaContructor.string(),
|
|
72
|
+
code: schemaContructor.string(),
|
|
73
|
+
}),
|
|
74
|
+
hr_project: schemaContructor.object({
|
|
75
|
+
fullName: schemaContructor.string(),
|
|
76
|
+
name: schemaContructor.string(),
|
|
77
|
+
}),
|
|
78
|
+
auth_user: schemaContructor.object({
|
|
79
|
+
employee: schemaContructor.subObject().concat(schemaContructor.object({
|
|
80
|
+
hrManager: schemaContructor.boolean(),
|
|
81
|
+
employeeVehicleList: schemaContructor
|
|
82
|
+
.array()
|
|
83
|
+
.of(schemaContructor.subObject()),
|
|
84
|
+
})),
|
|
85
|
+
}),
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=objectFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectFields.js","sourceRoot":"","sources":["../../src/models/objectFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAe,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAiB;IACvC,WAAW,E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CAAC,MAAM,CAAC;YACtB,SAAS,EAAE,gBAAgB,CAAC,OAAO,EAAE;YACrC,mBAAmB,EAAE,gBAAgB;iBAClC,KAAK,EAAE;iBACP,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;SACpC,CAAC,CACH;KACF,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export const hr_searchFields = {
|
|
19
|
+
hr_currency: ['code', 'symbol', 'name', 'codeISO'],
|
|
20
|
+
hr_expense: ['employee.name', 'expenseSeq'],
|
|
21
|
+
hr_expenseLines: ['expenseDate', 'project.fullName'],
|
|
22
|
+
hr_expenseType: ['name', 'fullName'],
|
|
23
|
+
hr_kilomectricAllowParam: ['name', 'code'],
|
|
24
|
+
hr_project: ['name', 'fullName'],
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=searchFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchFields.js","sourceRoot":"","sources":["../../src/models/searchFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,CAAC,MAAM,eAAe,GAAiB;IAC3C,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC;IAClD,UAAU,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC;IAC3C,eAAe,EAAE,CAAC,aAAa,EAAE,kBAAkB,CAAC;IACpD,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;IACpC,wBAAwB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;CACjC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export const hr_sortFields = {
|
|
19
|
+
hr_currency: ['name'],
|
|
20
|
+
hr_expense: ['createdOn'],
|
|
21
|
+
hr_expenseLines: ['expenseDate', 'createdOn'],
|
|
22
|
+
hr_expenseType: ['name', 'fullName'],
|
|
23
|
+
hr_kilomectricAllowParam: ['name', 'code'],
|
|
24
|
+
hr_project: ['name', 'fullName'],
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=sortFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortFields.js","sourceRoot":"","sources":["../../src/models/sortFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,CAAC,MAAM,aAAa,GAAe;IACvC,WAAW,EAAE,CAAC,MAAM,CAAC;IACrB,UAAU,EAAE,CAAC,WAAW,CAAC;IACzB,eAAe,EAAE,CAAC,aAAa,EAAE,WAAW,CAAC;IAC7C,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;IACpC,wBAAwB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;CACjC,CAAC"}
|