Skip to content

Commit

Permalink
chore: Configured etims action button in bom to show only after submit.
Browse files Browse the repository at this point in the history
Added bom shortcut to workspace.
  • Loading branch information
GichanaMayaka committed May 8, 2024
1 parent 074d331 commit 124b860
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 31 deletions.
2 changes: 1 addition & 1 deletion kenya_compliance/kenya_compliance/overrides/client/bom.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ frappe.ui.form.on(doctype, {
itemCode = response.custom_item_code_etims;
});

if (!frm.is_new()) {
if (!frm.is_new() && frm.doc.docstatus === 1) {
frm.add_custom_button(
__("Submit Item Composition"),
function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@
"type": "Link"
},
{
"description": "These DocTypes hold error logs to assist in troubleshooting and debugging",
"hidden": 0,
"is_query_report": 0,
"label": "Item Information",
"label": "Logs and Troubleshooting",
"link_count": 4,
"link_type": "DocType",
"onboard": 0,
Expand All @@ -173,134 +174,143 @@
{
"hidden": 0,
"is_query_report": 0,
"label": "eTims Item Classifications",
"label": "Error Log",
"link_count": 0,
"link_to": "Navari KRA eTims Item Classification",
"link_to": "Error Log",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Item Tax Templates",
"label": "Integration Requests",
"link_count": 0,
"link_to": "Item Tax Template",
"link_to": "Integration Request",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "eTims Imported Items",
"label": "Background Jobs",
"link_count": 0,
"link_to": "Navari eTims Registered Imported Item",
"link_to": "RQ Job",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Items",
"label": "Scheduled Jobs",
"link_count": 0,
"link_to": "Item",
"link_to": "Scheduled Job Type",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"description": "These DocTypes hold error logs to assist in troubleshooting and debugging",
"hidden": 0,
"is_query_report": 0,
"label": "Logs and Troubleshooting",
"link_count": 4,
"label": "Branch and Users",
"link_count": 3,
"link_type": "DocType",
"onboard": 0,
"type": "Card Break"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Error Log",
"label": "eTims Users",
"link_count": 0,
"link_to": "Error Log",
"link_to": "Navari eTims User",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Integration Requests",
"label": "eTims Branches",
"link_count": 0,
"link_to": "Integration Request",
"link_to": "Navari eTims Branch",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Background Jobs",
"label": "Warehouses",
"link_count": 0,
"link_to": "RQ Job",
"link_to": "Warehouse",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Scheduled Jobs",
"label": "Item Information",
"link_count": 5,
"link_type": "DocType",
"onboard": 0,
"type": "Card Break"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "eTims Item Classifications",
"link_count": 0,
"link_to": "Scheduled Job Type",
"link_to": "Navari KRA eTims Item Classification",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Branch and Users",
"link_count": 3,
"label": "Item Tax Templates",
"link_count": 0,
"link_to": "Item Tax Template",
"link_type": "DocType",
"onboard": 0,
"type": "Card Break"
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "eTims Users",
"label": "eTims Imported Items",
"link_count": 0,
"link_to": "Navari eTims User",
"link_to": "Navari eTims Registered Imported Item",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "eTims Branches",
"label": "Items",
"link_count": 0,
"link_to": "Navari eTims Branch",
"link_to": "Item",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
},
{
"hidden": 0,
"is_query_report": 0,
"label": "Warehouses",
"label": "BOM",
"link_count": 0,
"link_to": "Warehouse",
"link_to": "BOM",
"link_type": "DocType",
"onboard": 0,
"type": "Link"
}
],
"modified": "2024-05-07 13:22:54.970603",
"modified": "2024-05-08 11:43:15.592880",
"modified_by": "Administrator",
"module": "Kenya Compliance",
"name": "eTims Integration",
Expand Down

0 comments on commit 124b860

Please sign in to comment.