Skip to content

Commit

Permalink
Merge pull request #2 from navariltd/mapper
Browse files Browse the repository at this point in the history
Activity mapper, workspace under payrol
  • Loading branch information
maniamartial authored May 21, 2024
2 parents 139cb61 + d089280 commit 5ac4271
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 13 deletions.
3 changes: 3 additions & 0 deletions nl_piece_rate_pay/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},

]

doctype_js = {"Activity Type" : "nl_piece_rate_pay/client_scripts/activity_type_mapper.js"}

# Includes in <head>
# ------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

frappe.ui.form.on('Activity Type', {
refresh: function(frm) {

frm.add_custom_button(__("Casual Item Cost"), function () {
frappe.route_options = { activity_type: frm.doc.name };
frappe.set_route("List", "Casual Activity Item");
});
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
{
"default": "0",
"description": "per day",
"description": "per item",
"fieldname": "costing_rate",
"fieldtype": "Currency",
"label": "Costing Rate"
Expand All @@ -76,9 +76,9 @@
}
],
"links": [],
"modified": "2024-04-23 07:58:13.804557",
"modified": "2024-05-21 17:23:40.990331",
"modified_by": "Administrator",
"module": "CSF KE",
"module": "NL Piece Rate Pay",
"name": "Casual Activity Item",
"naming_rule": "Expression (old style)",
"owner": "Administrator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"links": [],
"modified": "2024-04-28 08:27:43.330454",
"modified_by": "Administrator",
"module": "CSF KE",
"module": "NL Piece Rate Pay",
"name": "Casual Payment Record",
"owner": "Administrator",
"permissions": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"links": [],
"modified": "2024-04-24 12:56:07.842413",
"modified_by": "Administrator",
"module": "CSF KE",
"module": "NL Piece Rate Pay",
"name": "Casual Payroll Payout",
"naming_rule": "Expression",
"owner": "Administrator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"links": [],
"modified": "2024-04-24 12:54:32.929154",
"modified_by": "Administrator",
"module": "CSF KE",
"module": "NL Piece Rate Pay",
"name": "Casual Payroll Payout Employee",
"owner": "Administrator",
"permissions": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"links": [],
"modified": "2024-04-22 12:42:45.132037",
"modified_by": "Administrator",
"module": "CSF KE",
"module": "NL Piece Rate Pay",
"name": "Casual Payroll Payout Item",
"owner": "Administrator",
"permissions": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
{
"charts": [],
"content": "[{\"id\":\"TFGWHXtT34\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Casual Piece Rate</span>\",\"col\":12}},{\"id\":\"SIfGwCveBT\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Casual Activity Item\",\"col\":3}},{\"id\":\"CeZ63AmI5-\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Casual Salary Structure Assignment Tool\",\"col\":3}},{\"id\":\"Z5YADe8s5V\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Casual Payroll Payout\",\"col\":3}}]",
"creation": "2024-05-20 09:37:30.945724",
"content": "[{\"id\":\"9HGm55y889\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Casual Piece Rate</span>\",\"col\":12}},{\"id\":\"TIbQgaOmvH\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Casual Activity Item\",\"col\":4}},{\"id\":\"RlDQdF5EOc\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Casual Salary Structure Assignment Tool\",\"col\":4}},{\"id\":\"JCgieJP-fC\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Casual Daily Payroll Payout\",\"col\":4}}]",
"creation": "2024-05-21 17:19:45.641814",
"custom_blocks": [],
"docstatus": 0,
"doctype": "Workspace",
"for_user": "",
"hide_custom": 0,
"icon": "money-coins-1",
"idx": 0,
"indicator_color": "green",
"is_hidden": 0,
"label": "Casual Piece Rate",
"links": [],
"modified": "2024-05-20 09:39:21.348316",
"modified": "2024-05-21 17:21:49.926551",
"modified_by": "Administrator",
"module": "NL Piece Rate Pay",
"name": "Casual Piece Rate",
"number_cards": [],
"owner": "Administrator",
"parent_page": "",
"parent_page": "Payroll",
"public": 1,
"quick_lists": [],
"roles": [],
"sequence_id": 58.0,
"sequence_id": 46.0,
"shortcuts": [
{
"color": "Grey",
Expand All @@ -43,7 +44,7 @@
{
"color": "Grey",
"doc_view": "List",
"label": "Casual Payroll Payout",
"label": "Casual Daily Payroll Payout",
"link_to": "Casual Payroll Payout",
"stats_filter": "[]",
"type": "DocType"
Expand Down

0 comments on commit 5ac4271

Please sign in to comment.