Skip to content

Commit

Permalink
fix: Accept Supplier Values is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninad1306 committed Aug 21, 2024
1 parent 48572d2 commit 8453b5f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"fieldtype": "Select",
"in_standard_filter": 1,
"label": "Action",
"options": "No Action\nAccept My Values\nAccept Supplier Values\nIgnore\nPending"
"options": "No Action\nAccept\nIgnore\nPending"
},
{
"fieldname": "link_doctype",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ frappe.ui.form.on("Purchase Reconciliation Tool", {
);
frm.add_custom_button(__("dropdown-divider"), () => {}, __("Actions"));
}
["Accept My Values", "Accept Supplier Values", "Pending", "Ignore"].forEach(
["Accept", "Pending", "Ignore"].forEach(
action =>
frm.add_custom_button(
__(action),
Expand Down Expand Up @@ -346,8 +346,7 @@ class PurchaseReconciliationTool {
fieldtype: "Select",
options: [
"No Action",
"Accept My Values",
"Accept Supplier Values",
"Accept",
"Ignore",
"Pending",
],
Expand Down Expand Up @@ -976,8 +975,7 @@ class DetailViewDialog {
else
actions.push(
"Unlink",
"Accept My Values",
"Accept Supplier Values",
"Accept",
"Pending"
);

Expand Down Expand Up @@ -1027,8 +1025,7 @@ class DetailViewDialog {
if (action == "Ignore") return "btn-secondary";
if (action == "Create") return "btn-primary not-grey";
if (action == "Link") return "btn-primary not-grey btn-link disabled";
if (action == "Accept My Values") return "btn-primary not-grey";
if (action == "Accept Supplier Values") return "btn-primary not-grey";
if (action == "Accept") return "btn-primary not-grey";
}

toggle_link_btn(disabled) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
)

STATUS_MAP = {
"Accept My Values": "Reconciled",
"Accept Supplier Values": "Reconciled",
"Accept": "Reconciled",
"Pending": "Unreconciled",
"Ignore": "Ignored",
}
Expand Down
1 change: 1 addition & 0 deletions india_compliance/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ india_compliance.patches.v14.delete_not_generated_gstr_import_log
india_compliance.patches.v14.enable_sales_through_ecommerce_operator
execute:from india_compliance.gst_india.setup import set_default_print_settings; set_default_print_settings()
india_compliance.patches.v15.migrate_gstr1_log_to_returns_log
india_compliance.patches.v15.update_action_for_gst_inward_supply
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import frappe


def execute():
docs = frappe.get_all(
"GST Inward Supply",
filters={"action": ["in", ["Accept My Values", "Accept Supplier Values"]]},
pluck="name",
)

for doc in docs:
frappe.db.set_value("GST Inward Supply", doc, "action", "Accept")

0 comments on commit 8453b5f

Please sign in to comment.