-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: delivery note and purchase receipt items added
- Loading branch information
1 parent
f999595
commit f2c612f
Showing
8 changed files
with
221 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
frappe.listview_settings["Delivery Note"] = { | ||
onload: function (listview) { | ||
if (frappe.user.has_role("Store Dept")) { | ||
listview.columns = listview.columns.filter(function (col) { | ||
if (col.df) { | ||
return col.df.fieldname !== "grand_total"; | ||
} | ||
return true; | ||
}); | ||
listview.render_header(listview.columns); | ||
} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
frappe.listview_settings["Purchase Receipt"] = { | ||
onload: function (listview) { | ||
if (frappe.user.has_role("Store Dept")) { | ||
listview.columns = listview.columns.filter(function (col) { | ||
if (col.df) { | ||
return col.df.fieldname !== "grand_total"; | ||
} | ||
return true; | ||
}); | ||
listview.render_header(listview.columns); | ||
} | ||
}, | ||
}; |