Skip to content

Commit

Permalink
fix: Party Name in SOA print when viewed from Customer/Supplier master (
Browse files Browse the repository at this point in the history
#34597)

fix: Party Name in SOA print when viewd from Customer/Supplier master
  • Loading branch information
deepeshgarg007 authored Mar 28, 2023
1 parent 12ad2aa commit 50c1172
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions erpnext/accounts/report/general_ledger/general_ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ frappe.query_reports["General Ledger"] = {
{
"fieldname":"party_type",
"label": __("Party Type"),
"fieldtype": "Link",
"options": "Party Type",
"default": "",
"fieldtype": "Autocomplete",
options: Object.keys(frappe.boot.party_account_types),
on_change: function() {
frappe.query_report.set_filter_value('party', "");
}
Expand Down
2 changes: 1 addition & 1 deletion erpnext/buying/doctype/supplier/supplier.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ frappe.ui.form.on("Supplier", {
// custom buttons
frm.add_custom_button(__('Accounting Ledger'), function () {
frappe.set_route('query-report', 'General Ledger',
{ party_type: 'Supplier', party: frm.doc.name });
{ party_type: 'Supplier', party: frm.doc.name, party_name: frm.doc.supplier_name });
}, __("View"));

frm.add_custom_button(__('Accounts Payable'), function () {
Expand Down
2 changes: 1 addition & 1 deletion erpnext/selling/doctype/customer/customer.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ frappe.ui.form.on("Customer", {

frm.add_custom_button(__('Accounting Ledger'), function () {
frappe.set_route('query-report', 'General Ledger',
{party_type: 'Customer', party: frm.doc.name});
{party_type: 'Customer', party: frm.doc.name, party_name: frm.doc.customer_name});
}, __('View'));

frm.add_custom_button(__('Pricing Rule'), function () {
Expand Down

0 comments on commit 50c1172

Please sign in to comment.