Skip to content

Commit 28c5fbd

Browse files
authored
Merge pull request #53116 from frappe/version-16-hotfix
2 parents e671f5a + 282d8b1 commit 28c5fbd

63 files changed

Lines changed: 2293 additions & 984 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

erpnext/accounts/doctype/fiscal_year/fiscal_year.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ def validate(self):
3333
self.validate_dates()
3434
self.validate_overlap()
3535

36+
def on_update(self):
37+
frappe.cache().delete_key("fiscal_years")
38+
39+
def on_trash(self):
40+
frappe.cache().delete_key("fiscal_years")
41+
3642
def validate_dates(self):
3743
self.validate_from_to_dates("year_start_date", "year_end_date")
3844
if self.is_short_year:

erpnext/accounts/doctype/journal_entry/journal_entry.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,6 @@ erpnext.accounts.JournalEntry = class JournalEntry extends frappe.ui.form.Contro
303303
erpnext.accounts.dimensions.setup_dimension_filters(this.frm, this.frm.doctype);
304304
}
305305

306-
onload_post_render() {
307-
this.frm.get_field("accounts").grid.set_multiple_add("account");
308-
}
309-
310306
load_defaults() {
311307
//this.frm.show_print_first = true;
312308
if (this.frm.doc.__islocal && this.frm.doc.company) {

erpnext/accounts/doctype/journal_entry/journal_entry.json

Lines changed: 69 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,15 @@
1010
"field_order": [
1111
"entry_type_and_date",
1212
"company",
13-
"is_system_generated",
14-
"title",
1513
"voucher_type",
16-
"naming_series",
17-
"process_deferred_accounting",
18-
"reversal_of",
1914
"column_break1",
20-
"from_template",
15+
"naming_series",
2116
"posting_date",
22-
"finance_book",
17+
"multi_currency",
2318
"apply_tds",
2419
"tax_withholding_category",
20+
"is_system_generated",
21+
"amended_from",
2522
"section_break_tcvw",
2623
"for_all_stock_asset_accounts",
2724
"column_break_wpau",
@@ -30,52 +27,60 @@
3027
"get_balance_for_periodic_accounting",
3128
"2_add_edit_gl_entries",
3229
"accounts",
33-
"section_break99",
34-
"cheque_no",
35-
"cheque_date",
36-
"user_remark",
37-
"column_break99",
30+
"section_break_ouaq",
3831
"total_debit",
32+
"column_break_cixu",
3933
"total_credit",
4034
"difference",
4135
"get_balance",
42-
"multi_currency",
43-
"total_amount_currency",
44-
"total_amount",
45-
"total_amount_in_words",
36+
"section_break99",
37+
"cheque_no",
38+
"cheque_date",
39+
"clearance_date",
40+
"column_break_oizh",
41+
"user_remark",
42+
"subscription_section",
43+
"auto_repeat",
44+
"tax_withholding_tab",
4645
"section_tax_withholding_entry",
4746
"tax_withholding_group",
4847
"ignore_tax_withholding_threshold",
4948
"override_tax_withholding_entries",
5049
"tax_withholding_entries",
50+
"more_info_tab",
5151
"reference",
52-
"clearance_date",
53-
"remark",
54-
"inter_company_journal_entry_reference",
5552
"column_break98",
5653
"bill_no",
5754
"bill_date",
5855
"due_date",
56+
"column_break_isfa",
57+
"inter_company_journal_entry_reference",
58+
"process_deferred_accounting",
59+
"reversal_of",
60+
"payment_order",
61+
"stock_entry",
62+
"printing_settings",
63+
"pay_to_recd_from",
64+
"letter_head",
65+
"select_print_heading",
66+
"column_break_35",
67+
"total_amount_currency",
68+
"total_amount",
69+
"total_amount_in_words",
5970
"write_off",
6071
"write_off_based_on",
6172
"get_outstanding_invoices",
6273
"column_break_30",
6374
"write_off_amount",
64-
"printing_settings",
65-
"pay_to_recd_from",
66-
"column_break_35",
67-
"letter_head",
68-
"select_print_heading",
6975
"addtional_info",
70-
"mode_of_payment",
71-
"payment_order",
72-
"party_not_required",
73-
"column_break3",
7476
"is_opening",
75-
"stock_entry",
76-
"subscription_section",
77-
"auto_repeat",
78-
"amended_from"
77+
"finance_book",
78+
"from_template",
79+
"title",
80+
"column_break3",
81+
"remark",
82+
"mode_of_payment",
83+
"party_not_required"
7984
],
8085
"fields": [
8186
{
@@ -155,6 +160,7 @@
155160
{
156161
"fieldname": "2_add_edit_gl_entries",
157162
"fieldtype": "Section Break",
163+
"hide_border": 1,
158164
"oldfieldtype": "Section Break",
159165
"options": "fa fa-table"
160166
},
@@ -202,10 +208,6 @@
202208
"oldfieldtype": "Small Text",
203209
"print_hide": 1
204210
},
205-
{
206-
"fieldname": "column_break99",
207-
"fieldtype": "Column Break"
208-
},
209211
{
210212
"fieldname": "total_debit",
211213
"fieldtype": "Currency",
@@ -429,7 +431,7 @@
429431
"collapsible": 1,
430432
"fieldname": "addtional_info",
431433
"fieldtype": "Section Break",
432-
"label": "More Information",
434+
"label": "Additional Info",
433435
"oldfieldtype": "Section Break",
434436
"options": "fa fa-file-text"
435437
},
@@ -476,7 +478,7 @@
476478
{
477479
"fieldname": "subscription_section",
478480
"fieldtype": "Section Break",
479-
"label": "Subscription Section"
481+
"label": "Subscription"
480482
},
481483
{
482484
"allow_on_submit": 1,
@@ -593,12 +595,10 @@
593595
"no_copy": 1
594596
},
595597
{
596-
"collapsible": 1,
597598
"collapsible_depends_on": "eval: doc.apply_tds && doc.docstatus == 0",
598599
"depends_on": "eval: doc.apply_tds",
599600
"fieldname": "section_tax_withholding_entry",
600-
"fieldtype": "Section Break",
601-
"label": "Tax Withholding Entry"
601+
"fieldtype": "Section Break"
602602
},
603603
{
604604
"fieldname": "tax_withholding_group",
@@ -624,6 +624,33 @@
624624
"label": "Tax Withholding Entries",
625625
"options": "Tax Withholding Entry",
626626
"read_only_depends_on": "eval: !doc.override_tax_withholding_entries"
627+
},
628+
{
629+
"fieldname": "more_info_tab",
630+
"fieldtype": "Tab Break",
631+
"label": "More Info"
632+
},
633+
{
634+
"fieldname": "section_break_ouaq",
635+
"fieldtype": "Section Break"
636+
},
637+
{
638+
"fieldname": "column_break_cixu",
639+
"fieldtype": "Column Break"
640+
},
641+
{
642+
"fieldname": "column_break_oizh",
643+
"fieldtype": "Column Break"
644+
},
645+
{
646+
"fieldname": "column_break_isfa",
647+
"fieldtype": "Column Break"
648+
},
649+
{
650+
"depends_on": "eval: doc.apply_tds",
651+
"fieldname": "tax_withholding_tab",
652+
"fieldtype": "Tab Break",
653+
"label": "Tax Withholding"
627654
}
628655
],
629656
"icon": "fa fa-file-text",
@@ -638,7 +665,7 @@
638665
"table_fieldname": "payment_entries"
639666
}
640667
],
641-
"modified": "2026-02-03 14:40:39.944524",
668+
"modified": "2026-02-16 16:06:10.468482",
642669
"modified_by": "Administrator",
643670
"module": "Accounts",
644671
"name": "Journal Entry",

erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"fields": [
4444
{
4545
"bold": 1,
46-
"columns": 2,
46+
"columns": 4,
4747
"fieldname": "account",
4848
"fieldtype": "Link",
4949
"in_global_search": 1,
@@ -191,7 +191,6 @@
191191
{
192192
"fieldname": "reference_name",
193193
"fieldtype": "Dynamic Link",
194-
"in_list_view": 1,
195194
"label": "Reference Name",
196195
"no_copy": 1,
197196
"options": "reference_type",
@@ -294,7 +293,7 @@
294293
"idx": 1,
295294
"istable": 1,
296295
"links": [],
297-
"modified": "2026-02-19 17:01:22.642454",
296+
"modified": "2026-02-16 16:04:16.022407",
298297
"modified_by": "Administrator",
299298
"module": "Accounts",
300299
"name": "Journal Entry Account",

erpnext/accounts/doctype/payment_entry/payment_entry.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,8 +1065,12 @@ def set_total_allocated_amount(self):
10651065
total_allocated_amount += flt(d.allocated_amount)
10661066
base_total_allocated_amount += self.calculate_base_allocated_amount_for_reference(d)
10671067

1068-
self.total_allocated_amount = abs(total_allocated_amount)
1069-
self.base_total_allocated_amount = abs(base_total_allocated_amount)
1068+
self.total_allocated_amount = flt(
1069+
abs(total_allocated_amount), self.precision("total_allocated_amount")
1070+
)
1071+
self.base_total_allocated_amount = flt(
1072+
abs(base_total_allocated_amount), self.precision("base_total_allocated_amount")
1073+
)
10701074

10711075
def set_unallocated_amount(self):
10721076
self.unallocated_amount = 0

erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@
44
frappe.ui.form.on("POS Closing Entry", {
55
onload: async function (frm) {
66
frm.ignore_doctypes_on_cancel_all = ["POS Invoice Merge Log", "Sales Invoice"];
7-
frm.set_query("pos_profile", function (doc) {
8-
return {
9-
filters: { user: doc.user },
10-
};
11-
});
12-
13-
frm.set_query("user", function (doc) {
14-
return {
15-
query: "erpnext.accounts.doctype.pos_closing_entry.pos_closing_entry.get_cashiers",
16-
filters: { parent: doc.pos_profile },
17-
};
18-
});
19-
207
frm.set_query("pos_opening_entry", function (doc) {
218
return { filters: { status: "Open", docstatus: 1 } };
229
});

erpnext/accounts/doctype/pos_invoice/pos_invoice.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,16 @@
159159
"language",
160160
"column_break_84",
161161
"select_print_heading",
162+
"utm_analytics_section",
163+
"utm_source",
164+
"utm_medium",
165+
"column_break_bhao",
166+
"utm_campaign",
162167
"more_information",
163168
"inter_company_invoice_reference",
164169
"customer_group",
165170
"is_discounted",
166171
"col_break23",
167-
"utm_source",
168-
"utm_campaign",
169-
"utm_medium",
170-
"column_break_gpiw",
171172
"status",
172173
"more_info",
173174
"debit_to",
@@ -1541,10 +1542,6 @@
15411542
"fieldtype": "Check",
15421543
"label": "Update Billed Amount in Delivery Note"
15431544
},
1544-
{
1545-
"fieldname": "column_break_gpiw",
1546-
"fieldtype": "Column Break"
1547-
},
15481545
{
15491546
"fieldname": "utm_medium",
15501547
"fieldtype": "Link",
@@ -1612,12 +1609,22 @@
16121609
"no_copy": 1,
16131610
"options": "Item Wise Tax Detail",
16141611
"print_hide": 1
1612+
},
1613+
{
1614+
"collapsible": 1,
1615+
"fieldname": "utm_analytics_section",
1616+
"fieldtype": "Section Break",
1617+
"label": "UTM Analytics"
1618+
},
1619+
{
1620+
"fieldname": "column_break_bhao",
1621+
"fieldtype": "Column Break"
16151622
}
16161623
],
16171624
"icon": "fa fa-file-text",
16181625
"is_submittable": 1,
16191626
"links": [],
1620-
"modified": "2026-01-29 21:20:51.376875",
1627+
"modified": "2026-02-10 14:23:07.181782",
16211628
"modified_by": "Administrator",
16221629
"module": "Accounts",
16231630
"name": "POS Invoice",

erpnext/accounts/doctype/pos_profile/pos_profile.json

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
"disabled",
1313
"column_break_9",
1414
"warehouse",
15-
"utm_source",
16-
"utm_campaign",
17-
"utm_medium",
1815
"company_address",
1916
"section_break_15",
2017
"applicable_for_users",
@@ -61,7 +58,13 @@
6158
"accounting_dimensions_section",
6259
"cost_center",
6360
"dimension_col_break",
64-
"project"
61+
"project",
62+
"utm_analytics_section",
63+
"utm_source",
64+
"column_break_tvls",
65+
"utm_campaign",
66+
"column_break_xygw",
67+
"utm_medium"
6568
],
6669
"fields": [
6770
{
@@ -430,6 +433,20 @@
430433
"fieldname": "allow_partial_payment",
431434
"fieldtype": "Check",
432435
"label": "Allow Partial Payment"
436+
},
437+
{
438+
"fieldname": "column_break_tvls",
439+
"fieldtype": "Column Break"
440+
},
441+
{
442+
"fieldname": "column_break_xygw",
443+
"fieldtype": "Column Break"
444+
},
445+
{
446+
"collapsible": 1,
447+
"fieldname": "utm_analytics_section",
448+
"fieldtype": "Section Break",
449+
"label": "Campaign"
433450
}
434451
],
435452
"grid_page_length": 50,
@@ -458,7 +475,7 @@
458475
"link_fieldname": "pos_profile"
459476
}
460477
],
461-
"modified": "2025-06-24 11:19:19.834905",
478+
"modified": "2026-02-10 14:24:48.597412",
462479
"modified_by": "Administrator",
463480
"module": "Accounts",
464481
"name": "POS Profile",

0 commit comments

Comments
 (0)