Skip to content

Commit b93fdf9

Browse files
authored
Merge branch 'frappe:develop' into fixes-new
2 parents 0bc9307 + a3bc4e5 commit b93fdf9

File tree

13 files changed

+167
-103
lines changed

13 files changed

+167
-103
lines changed

frontend/src/views/attendance/AttendanceRequestList.vue

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<script setup>
1313
import { IonPage } from "@ionic/vue"
1414
import ListView from "@/components/ListView.vue"
15+
import { inject } from "vue"
16+
17+
const __ = inject("$translate")
1518
1619
const ATTENDANCE_REQUEST_FIELDS = ["name", "reason", "from_date", "to_date", "docstatus"]
1720
const FILTER_CONFIG = [

frontend/src/views/attendance/EmployeeCheckinList.vue

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<script setup>
1313
import { IonPage } from "@ionic/vue"
1414
import ListView from "@/components/ListView.vue"
15+
import { inject } from "vue"
16+
17+
const __ = inject("$translate")
1518
1619
const EMPLOYEE_CHECKIN_FIELDS = ["name", "log_type", "time", "latitude", "longitude"]
1720

hrms/hr/doctype/employee_advance/employee_advance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def validate(self):
3232
self.set_pending_amount()
3333

3434
def on_cancel(self):
35-
self.ignore_linked_doctypes = "GL Entry"
35+
self.ignore_linked_doctypes = ("GL Entry", "Payment Ledger Entry")
3636
self.check_linked_payment_entry()
3737
self.set_status(update=True)
3838

hrms/hr/report/vehicle_expenses/vehicle_expenses.js

+20-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ frappe.query_reports["Vehicle Expenses"] = {
99
options: ["Fiscal Year", "Date Range"],
1010
default: ["Fiscal Year"],
1111
reqd: 1,
12+
on_change: () => {
13+
let filter_based_on = frappe.query_report.get_filter_value("filter_based_on");
14+
15+
if (filter_based_on == "Fiscal Year") {
16+
set_reqd_filter("fiscal_year", true);
17+
set_reqd_filter("from_date", false);
18+
set_reqd_filter("to_date", false);
19+
}
20+
if (filter_based_on == "Date Range") {
21+
set_reqd_filter("fiscal_year", false);
22+
set_reqd_filter("from_date", true);
23+
set_reqd_filter("to_date", true);
24+
}
25+
},
1226
},
1327
{
1428
fieldname: "fiscal_year",
@@ -17,21 +31,18 @@ frappe.query_reports["Vehicle Expenses"] = {
1731
options: "Fiscal Year",
1832
default: frappe.defaults.get_user_default("fiscal_year"),
1933
depends_on: "eval: doc.filter_based_on == 'Fiscal Year'",
20-
reqd: 1,
2134
},
2235
{
2336
fieldname: "from_date",
2437
label: __("From Date"),
2538
fieldtype: "Date",
26-
reqd: 1,
2739
depends_on: "eval: doc.filter_based_on == 'Date Range'",
2840
default: frappe.datetime.add_months(frappe.datetime.nowdate(), -12),
2941
},
3042
{
3143
fieldname: "to_date",
3244
label: __("To Date"),
3345
fieldtype: "Date",
34-
reqd: 1,
3546
depends_on: "eval: doc.filter_based_on == 'Date Range'",
3647
default: frappe.datetime.nowdate(),
3748
},
@@ -49,3 +60,9 @@ frappe.query_reports["Vehicle Expenses"] = {
4960
},
5061
],
5162
};
63+
64+
function set_reqd_filter(fieldname, is_reqd) {
65+
let filter = frappe.query_report.get_filter(fieldname);
66+
filter.df.reqd = is_reqd;
67+
filter.refresh();
68+
}

hrms/locale/es.po

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ msgstr ""
33
"Project-Id-Version: frappe\n"
44
"Report-Msgid-Bugs-To: [email protected]\n"
55
"POT-Creation-Date: 2024-11-10 09:33+0000\n"
6-
"PO-Revision-Date: 2024-11-11 18:36\n"
6+
"PO-Revision-Date: 2024-11-16 19:39\n"
77
"Last-Translator: [email protected]\n"
88
"Language-Team: Spanish\n"
99
"MIME-Version: 1.0\n"
@@ -275,7 +275,7 @@ msgstr ""
275275
#. Header text in the HR Workspace
276276
#: hrms/hr/workspace/hr/hr.json
277277
msgid "<span class=\"h4\"><b>Reports &amp; Masters</b></span>"
278-
msgstr ""
278+
msgstr "<span class=\"h4\"><b>Informes &amp; Datos Maestros</b></span>"
279279

280280
#. Header text in the Salary Payout Workspace
281281
#: hrms/payroll/workspace/salary_payout/salary_payout.json
@@ -302,7 +302,7 @@ msgstr ""
302302
#: hrms/payroll/workspace/salary_payout/salary_payout.json
303303
#: hrms/payroll/workspace/tax_&_benefits/tax_&_benefits.json
304304
msgid "<span class=\"h4\"><b>Your Shortcuts</b></span>"
305-
msgstr ""
305+
msgstr "<span class=\"h4\"><b>Tus accesos directos</b></span>"
306306

307307
#. Header text in the Shift & Attendance Workspace
308308
#: hrms/hr/workspace/shift_&_attendance/shift_&_attendance.json
@@ -3005,7 +3005,7 @@ msgstr "Cliente"
30053005
#. Option for the 'Roster Color' (Select) field in DocType 'Shift Type'
30063006
#: hrms/hr/doctype/shift_type/shift_type.json
30073007
msgid "Cyan"
3008-
msgstr ""
3008+
msgstr "Cian"
30093009

30103010
#. Label of the cycle_name (Data) field in DocType 'Appraisal Cycle'
30113011
#: hrms/hr/doctype/appraisal_cycle/appraisal_cycle.json
@@ -9199,7 +9199,7 @@ msgstr ""
91999199
#. Option for the 'Roster Color' (Select) field in DocType 'Shift Type'
92009200
#: hrms/hr/doctype/shift_type/shift_type.json
92019201
msgid "Orange"
9202-
msgstr ""
9202+
msgstr "Naranja"
92039203

92049204
#: hrms/hr/page/organizational_chart/organizational_chart.js:4
92059205
msgid "Organizational Chart"
@@ -9733,7 +9733,7 @@ msgstr "Trabajo por obra"
97339733
#. Option for the 'Roster Color' (Select) field in DocType 'Shift Type'
97349734
#: hrms/hr/doctype/shift_type/shift_type.json
97359735
msgid "Pink"
9736-
msgstr ""
9736+
msgstr "Rosa"
97379737

97389738
#. Label of the planned_vacancies (Int) field in DocType 'Job Opening'
97399739
#: hrms/hr/doctype/job_opening/job_opening.json
@@ -14099,7 +14099,7 @@ msgstr "Anual"
1409914099
#. Option for the 'Roster Color' (Select) field in DocType 'Shift Type'
1410014100
#: hrms/hr/doctype/shift_type/shift_type.json
1410114101
msgid "Yellow"
14102-
msgstr ""
14102+
msgstr "Amarillo"
1410314103

1410414104
#. Option for the 'Is Active' (Select) field in DocType 'Salary Structure'
1410514105
#. Option for the 'Is Default' (Select) field in DocType 'Salary Structure'

hrms/locale/fa.po

+15-15
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ msgstr ""
33
"Project-Id-Version: frappe\n"
44
"Report-Msgid-Bugs-To: [email protected]\n"
55
"POT-Creation-Date: 2024-11-10 09:33+0000\n"
6-
"PO-Revision-Date: 2024-11-12 19:06\n"
6+
"PO-Revision-Date: 2024-11-24 22:07\n"
77
"Last-Translator: [email protected]\n"
88
"Language-Team: Persian\n"
99
"MIME-Version: 1.0\n"
@@ -764,7 +764,7 @@ msgstr "تمام دارایی های تخصیص یافته باید قبل از
764764

765765
#: hrms/hr/doctype/employee_onboarding/employee_onboarding.py:48
766766
msgid "All the mandatory tasks for employee creation are not completed yet."
767-
msgstr "تمام وظایف اجباری برای ایجاد کارمند هنوز تکمیل نشده است."
767+
msgstr "تمام تسک‌ها اجباری برای ایجاد کارمند هنوز تکمیل نشده است."
768768

769769
#. Label of the allocate_based_on_leave_policy (Check) field in DocType 'Leave
770770
#. Control Panel'
@@ -1810,7 +1810,7 @@ msgstr "پایه و متغیر"
18101810
#. Label of the begin_on (Int) field in DocType 'Employee Boarding Activity'
18111811
#: hrms/hr/doctype/employee_boarding_activity/employee_boarding_activity.json
18121812
msgid "Begin On (Days)"
1813-
msgstr "شروع در (روزها)"
1813+
msgstr "شروع در (بر حسب روز)"
18141814

18151815
#. Label of the begin_check_in_before_shift_start_time (Int) field in DocType
18161816
#. 'Shift Type'
@@ -2215,7 +2215,7 @@ msgstr "مطالبه مزایا برای"
22152215
#. Label of the claim_date (Date) field in DocType 'Employee Benefit Claim'
22162216
#: hrms/payroll/doctype/employee_benefit_claim/employee_benefit_claim.json
22172217
msgid "Claim Date"
2218-
msgstr "تاریخ ادعا"
2218+
msgstr "تاریخ مطالبه"
22192219

22202220
#: frontend/src/views/Home.vue:47
22212221
#: frontend/src/views/expense_claim/Dashboard.vue:17
@@ -2234,13 +2234,13 @@ msgstr "ادعا کرد"
22342234
#: hrms/hr/report/employee_advance_summary/employee_advance_summary.py:69
22352235
#: hrms/payroll/doctype/employee_benefit_claim/employee_benefit_claim.json
22362236
msgid "Claimed Amount"
2237-
msgstr "مبلغ ادعا شده"
2237+
msgstr "مبلغ مطالبه شده"
22382238

22392239
#. Label of a Card Break in the Expense Claims Workspace
22402240
#: hrms/hr/workspace/expense_claims/expense_claims.json
22412241
#: hrms/overrides/dashboard_overrides.py:84
22422242
msgid "Claims"
2243-
msgstr "ادعاها"
2243+
msgstr "مطالبه‌ها"
22442244

22452245
#: frontend/src/components/ListFiltersActionSheet.vue:76
22462246
#: hrms/www/jobs/index.html:20 hrms/www/jobs/index.html:351
@@ -2547,7 +2547,7 @@ msgstr " خواص و مراجع کامپوننت"
25472547
#: hrms/payroll/doctype/salary_detail/salary_detail.json
25482548
#: hrms/payroll/doctype/taxable_salary_slab/taxable_salary_slab.json
25492549
msgid "Condition"
2550-
msgstr "وضعیت"
2550+
msgstr ""
25512551

25522552
#. Label of the configure_component_tab (Tab Break) field in DocType 'Salary
25532553
#. Component'
@@ -3788,7 +3788,7 @@ msgstr ""
37883788
#. Label of the duration (Int) field in DocType 'Employee Boarding Activity'
37893789
#: hrms/hr/doctype/employee_boarding_activity/employee_boarding_activity.json
37903790
msgid "Duration (Days)"
3791-
msgstr "مدت زمان (روزها)"
3791+
msgstr "مدت زمان (بر حسب روز)"
37923792

37933793
#: hrms/public/js/utils/index.js:208
37943794
msgid "ERROR({0}): {1}"
@@ -5461,7 +5461,7 @@ msgstr "منقضی تخصیص"
54615461
#. 'Leave Type'
54625462
#: hrms/hr/doctype/leave_type/leave_type.json
54635463
msgid "Expire Carry Forwarded Leaves (Days)"
5464-
msgstr "انقضای مرخصی‌های منتقل شده به دوره بعد (روزها)"
5464+
msgstr "انقضای مرخصی‌های منتقل شده به دوره بعد (بر حسب روز)"
54655465

54665466
#. Label of the expired (Check) field in DocType 'Leave Allocation'
54675467
#: hrms/hr/doctype/leave_allocation/leave_allocation.json
@@ -8071,7 +8071,7 @@ msgstr "چرخه را پیوند دهید و KRA را به هدف خود تگ ک
80718071

80728072
#: hrms/controllers/employee_boarding_controller.py:154
80738073
msgid "Linked Project {} and Tasks deleted."
8074-
msgstr "پروژه پیوند شده {} و وظایف حذف شدند."
8074+
msgstr "پروژه پیوند شده {} و تسک‌ها حذف شدند."
80758075

80768076
#. Label of the loan (Link) field in DocType 'Salary Slip Loan'
80778077
#: hrms/payroll/doctype/salary_slip_loan/salary_slip_loan.json
@@ -8718,7 +8718,7 @@ msgstr "مرخصی های جدید تخصیص داده شد"
87188718
#. Label of the no_of_days (Float) field in DocType 'Leave Control Panel'
87198719
#: hrms/hr/doctype/leave_control_panel/leave_control_panel.json
87208720
msgid "New Leaves Allocated (In Days)"
8721-
msgstr "مرخصی های جدید اختصاص داده شده (در چند روز)"
8721+
msgstr "مرخصی های جدید اختصاص داده شده (بر حسب روز)"
87228722

87238723
#. Description of the 'Create Shifts After' (Date) field in DocType 'Shift
87248724
#. Assignment Schedule'
@@ -11328,7 +11328,7 @@ msgstr "مبلغ تحریم شده"
1132811328

1132911329
#: hrms/hr/doctype/expense_claim/expense_claim.py:360
1133011330
msgid "Sanctioned Amount cannot be greater than Claim Amount in Row {0}."
11331-
msgstr "مبلغ تحریم شده نمی تواند بیشتر از مبلغ ادعا در ردیف {0} باشد."
11331+
msgstr "مبلغ تحریم شده نمی تواند بیشتر از مبلغ مطالبه در ردیف {0} باشد."
1133211332

1133311333
#: frontend/src/components/AttendanceCalendar.vue:118
1133411334
#: hrms/hr/doctype/leave_block_list/leave_block_list.js:62
@@ -12460,13 +12460,13 @@ msgstr "دقیقاً سالهای تکمیل شده را در نظر بگیری
1246012460
#: hrms/hr/doctype/employee_separation/employee_separation.js:31
1246112461
#: hrms/hr/doctype/expense_claim/expense_claim.json
1246212462
msgid "Task"
12463-
msgstr "وظیفه"
12463+
msgstr "تسک"
1246412464

1246512465
#. Label of the task_weight (Float) field in DocType 'Employee Boarding
1246612466
#. Activity'
1246712467
#: hrms/hr/doctype/employee_boarding_activity/employee_boarding_activity.json
1246812468
msgid "Task Weight"
12469-
msgstr "وزن وظیفه"
12469+
msgstr "وزن تسک"
1247012470

1247112471
#. Name of a Workspace
1247212472
#: hrms/payroll/workspace/tax_&_benefits/tax_&_benefits.json
@@ -13015,7 +13015,7 @@ msgstr "مجموع ساعات صورتحساب"
1301513015
#. Claim'
1301613016
#: hrms/hr/doctype/expense_claim/expense_claim.json
1301713017
msgid "Total Claimed Amount"
13018-
msgstr "کل مبلغ ادعا شده"
13018+
msgstr "کل مبلغ مطالبه شده"
1301913019

1302013020
#. Label of the total_declared_amount (Currency) field in DocType 'Employee Tax
1302113021
#. Exemption Declaration'

hrms/locale/main.pot

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Frappe HR VERSION\n"
99
"Report-Msgid-Bugs-To: [email protected]\n"
10-
"POT-Creation-Date: 2024-11-10 09:33+0000\n"
11-
"PO-Revision-Date: 2024-11-10 09:33+0000\n"
10+
"POT-Creation-Date: 2024-11-24 09:35+0000\n"
11+
"PO-Revision-Date: 2024-11-24 09:35+0000\n"
1212
"Last-Translator: [email protected]\n"
1313
"Language-Team: [email protected]\n"
1414
"MIME-Version: 1.0\n"
@@ -5868,7 +5868,7 @@ msgstr ""
58685868
#. Label of the from_date (Date) field in DocType 'Salary Structure Assignment'
58695869
#. Label of the from_date (Date) field in DocType 'Salary Withholding'
58705870
#. Label of the from_date (Date) field in DocType 'Salary Withholding Cycle'
5871-
#: frontend/src/views/attendance/AttendanceRequestList.vue:24
5871+
#: frontend/src/views/attendance/AttendanceRequestList.vue:27
58725872
#: frontend/src/views/attendance/ShiftRequestList.vue:57
58735873
#: hrms/hr/dashboard_chart_source/hiring_vs_attrition_count/hiring_vs_attrition_count.js:15
58745874
#: hrms/hr/doctype/attendance_request/attendance_request.json
@@ -8140,7 +8140,7 @@ msgid "Log Out"
81408140
msgstr ""
81418141

81428142
#. Label of the log_type (Select) field in DocType 'Employee Checkin'
8143-
#: frontend/src/views/attendance/EmployeeCheckinList.vue:22
8143+
#: frontend/src/views/attendance/EmployeeCheckinList.vue:25
81448144
#: hrms/hr/doctype/employee_checkin/employee_checkin.json
81458145
msgid "Log Type"
81468146
msgstr ""
@@ -11757,8 +11757,8 @@ msgstr ""
1175711757
#. Label of the shift (Link) field in DocType 'Attendance Request'
1175811758
#. Label of the shift (Link) field in DocType 'Employee Attendance Tool'
1175911759
#. Label of the shift (Link) field in DocType 'Employee Checkin'
11760-
#: frontend/src/views/attendance/AttendanceRequestList.vue:21
11761-
#: frontend/src/views/attendance/EmployeeCheckinList.vue:28
11760+
#: frontend/src/views/attendance/AttendanceRequestList.vue:24
11761+
#: frontend/src/views/attendance/EmployeeCheckinList.vue:31
1176211762
#: hrms/hr/doctype/attendance/attendance.json
1176311763
#: hrms/hr/doctype/attendance_request/attendance_request.json
1176411764
#: hrms/hr/doctype/employee_attendance_tool/employee_attendance_tool.json
@@ -12842,7 +12842,7 @@ msgstr ""
1284212842
#. Label of the to_date (Date) field in DocType 'Additional Salary'
1284312843
#. Label of the to_date (Date) field in DocType 'Salary Withholding'
1284412844
#. Label of the to_date (Date) field in DocType 'Salary Withholding Cycle'
12845-
#: frontend/src/views/attendance/AttendanceRequestList.vue:25
12845+
#: frontend/src/views/attendance/AttendanceRequestList.vue:28
1284612846
#: frontend/src/views/attendance/ShiftRequestList.vue:58
1284712847
#: hrms/hr/dashboard_chart_source/hiring_vs_attrition_count/hiring_vs_attrition_count.js:22
1284812848
#: hrms/hr/doctype/attendance_request/attendance_request.json

0 commit comments

Comments
 (0)