feat: Init Pick Ticket and Pick Ticket Item

This commit is contained in:
Suraj Shetty 2019-07-12 11:56:42 +05:30
parent bd055a858c
commit 32371c8755
7 changed files with 179 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on('Pick Ticket', {
// onload: function(frm) {
// }
});

View File

@ -0,0 +1,79 @@
{
"creation": "2019-07-11 16:03:13.681045",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"reference_doctype",
"reference_name",
"company",
"column_break_4",
"group_warehouse",
"section_break_6",
"items"
],
"fields": [
{
"fieldname": "reference_doctype",
"fieldtype": "Select",
"label": "Reference Document Type",
"options": "Sales Order\nWork Order"
},
{
"fieldname": "reference_name",
"fieldtype": "Dynamic Link",
"label": "Reference Name",
"options": "reference_doctype"
},
{
"fieldname": "items",
"fieldtype": "Table",
"label": "Items",
"options": "Pick Ticket Item"
},
{
"description": "Items under this warehouse will be suggested",
"fieldname": "group_warehouse",
"fieldtype": "Link",
"label": "Group Warehouse",
"options": "Warehouse"
},
{
"fieldname": "company",
"fieldtype": "Link",
"label": "Company",
"options": "Company"
},
{
"fieldname": "column_break_4",
"fieldtype": "Column Break"
},
{
"fieldname": "section_break_6",
"fieldtype": "Section Break"
}
],
"modified": "2019-07-12 11:42:03.508514",
"modified_by": "Administrator",
"module": "Stock",
"name": "Pick Ticket",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"quick_entry": 1,
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}

View File

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class PickTicket(Document):
pass

View File

@ -0,0 +1,72 @@
{
"creation": "2019-07-11 16:01:22.832885",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"item",
"item_name",
"description",
"reference_document_item",
"warehouse",
"qty",
"picked_qty"
],
"fields": [
{
"fieldname": "item",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Item",
"options": "Item"
},
{
"fieldname": "qty",
"fieldtype": "Float",
"in_list_view": 1,
"label": "Qty"
},
{
"fieldname": "picked_qty",
"fieldtype": "Float",
"in_list_view": 1,
"label": "Picked Qty"
},
{
"fieldname": "warehouse",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Warehouse",
"options": "Warehouse"
},
{
"fetch_from": "item.item_name",
"fieldname": "item_name",
"fieldtype": "Data",
"label": "Item Name"
},
{
"fetch_from": "item.description",
"fieldname": "description",
"fieldtype": "Text",
"label": "Description"
},
{
"fieldname": "reference_document_item",
"fieldtype": "Data",
"hidden": 1,
"label": "Reference Document Item"
}
],
"istable": 1,
"modified": "2019-07-11 16:34:52.853146",
"modified_by": "Administrator",
"module": "Stock",
"name": "Pick Ticket Item",
"owner": "Administrator",
"permissions": [],
"quick_entry": 1,
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}

View File

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class PickTicketItem(Document):
pass