Skip to content

Commit

Permalink
fix: rename report to ICUtility
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Aug 7, 2024
1 parent fb9bae3 commit a47cb51
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ frappe.ui.form.on("Purchase Reconciliation Tool", {
});

frappe.realtime.on("data_reconciliation", message => {
const { data, filters, creation, report_name} = message;
const { data, filters, creation, report_name } = message;

frm.report_name = report_name
frm.is_latest_data = true
frm.report_name = report_name;
frm.is_latest_data = true;

const same_filter = filter_fields.every(
field => frm.doc[field] === filters[field]
Expand Down Expand Up @@ -166,11 +166,11 @@ frappe.ui.form.on("Purchase Reconciliation Tool", {
method: "frappe.core.doctype.prepared_report.prepared_report.get_reports_in_queued_state",
args: {
filters: filetrs_to_pass,
report_name: "Purchase Reconciliation Tool",
report_name: "ICUtility",
},
});
if (message.length) {
frappe.msgprint("A report is alerady in queued");
frappe.msgprint(__("A report is alerady in queued"));
return;
}
frm.call("generate_reconciliation_data", {
Expand Down Expand Up @@ -1127,13 +1127,13 @@ class DetailViewDialog {
}
}

update_report_status(){
if(this.frm.is_latest_data == false) return;
update_report_status() {
if (this.frm.is_latest_data == false) return;
frappe.call({
method: "india_compliance.gst_india.doctype.purchase_reconciliation_tool.purchase_reconciliation_tool.update_report_filters",
args : { report_name : this.frm.report_name },
})
this.frm.is_latest_data = false
args: { report_name: this.frm.report_name },
});
this.frm.is_latest_data = false;
}

_get_button_css(action) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ def generate_reconciliation_data(self, force_update=False):

def reconcile(self, force_update=False):
doc_name = get_completed_prepared_report(
self.get_reco_doc(), frappe.session.user, "Purchase Reconciliation Tool"
self.get_reco_doc(), frappe.session.user, "ICUtility"
)
if doc_name and not force_update:
self.attachment_data(doc_name)
else:
make_prepared_report("Purchase Reconciliation Tool", self.get_reco_doc())
make_prepared_report("ICUtility", self.get_reco_doc())

@frappe.whitelist()
def attachment_data(self, name):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2024, Resilient Tech and contributors
// For license information, please see license.txt

frappe.query_reports["Purchase Reconciliation Tool"] = {
frappe.query_reports["ICUtility"] = {
"filters": [

]
Expand Down
33 changes: 33 additions & 0 deletions india_compliance/gst_india/report/icutility/icutility.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"add_total_row": 0,
"columns": [],
"creation": "2024-08-07 15:29:53.228497",
"disabled": 0,
"docstatus": 0,
"doctype": "Report",
"filters": [],
"idx": 0,
"is_standard": "Yes",
"letter_head": "",
"letterhead": null,
"modified": "2024-08-07 15:31:18.427400",
"modified_by": "Administrator",
"module": "GST India",
"name": "ICUtility",
"owner": "Administrator",
"prepared_report": 0,
"ref_doctype": "Purchase Reconciliation Tool",
"report_name": "ICUtility",
"report_type": "Script Report",
"roles": [
{
"role": "System Manager"
},
{
"role": "Accounts Manager"
},
{
"role": "Accounts User"
}
]
}

This file was deleted.

0 comments on commit a47cb51

Please sign in to comment.