fix: Purchase Receipt Form Cleanup (#21232)

This commit is contained in:
Marica
2020-04-21 13:15:05 +05:30
committed by GitHub
parent 9942acd9d4
commit bda0ddf1cf
3 changed files with 91 additions and 57 deletions

View File

@@ -1,24 +1,31 @@
{ {
"actions": [],
"creation": "2013-02-22 01:27:42", "creation": "2013-02-22 01:27:42",
"doctype": "DocType", "doctype": "DocType",
"editable_grid": 1, "editable_grid": 1,
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"main_item_code", "main_item_code",
"rm_item_code",
"description", "description",
"batch_no", "bom_detail_no",
"serial_no",
"col_break1", "col_break1",
"required_qty", "rm_item_code",
"consumed_qty",
"stock_uom", "stock_uom",
"rate",
"amount",
"conversion_factor", "conversion_factor",
"current_stock",
"reference_name", "reference_name",
"bom_detail_no" "secbreak_1",
"rate",
"col_break2",
"amount",
"secbreak_2",
"required_qty",
"col_break3",
"consumed_qty",
"current_stock",
"secbreak_3",
"batch_no",
"col_break4",
"serial_no"
], ],
"fields": [ "fields": [
{ {
@@ -152,11 +159,36 @@
"oldfieldname": "bom_detail_no", "oldfieldname": "bom_detail_no",
"oldfieldtype": "Data", "oldfieldtype": "Data",
"read_only": 1 "read_only": 1
},
{
"fieldname": "secbreak_1",
"fieldtype": "Section Break"
},
{
"fieldname": "col_break2",
"fieldtype": "Column Break"
},
{
"fieldname": "secbreak_2",
"fieldtype": "Section Break"
},
{
"fieldname": "col_break3",
"fieldtype": "Column Break"
},
{
"fieldname": "secbreak_3",
"fieldtype": "Section Break"
},
{
"fieldname": "col_break4",
"fieldtype": "Column Break"
} }
], ],
"idx": 1, "idx": 1,
"istable": 1, "istable": 1,
"modified": "2019-11-21 16:25:29.909112", "links": [],
"modified": "2020-04-10 18:09:33.997618",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Buying", "module": "Buying",
"name": "Purchase Receipt Item Supplied", "name": "Purchase Receipt Item Supplied",

View File

@@ -16,10 +16,10 @@
"supplier_name", "supplier_name",
"supplier_delivery_note", "supplier_delivery_note",
"column_break1", "column_break1",
"company",
"posting_date", "posting_date",
"posting_time", "posting_time",
"set_posting_time", "set_posting_time",
"company",
"is_return", "is_return",
"return_against", "return_against",
"section_addresses", "section_addresses",
@@ -49,11 +49,6 @@
"items_section", "items_section",
"scan_barcode", "scan_barcode",
"items", "items",
"pricing_rule_details",
"pricing_rules",
"get_current_stock",
"raw_material_details",
"supplied_items",
"section_break0", "section_break0",
"total_qty", "total_qty",
"base_total", "base_total",
@@ -62,6 +57,12 @@
"total_net_weight", "total_net_weight",
"total", "total",
"net_total", "net_total",
"total_net_weight",
"pricing_rule_details",
"pricing_rules",
"raw_material_details",
"get_current_stock",
"supplied_items",
"taxes_charges_section", "taxes_charges_section",
"tax_category", "tax_category",
"shipping_col", "shipping_col",
@@ -113,13 +114,13 @@
"auto_repeat", "auto_repeat",
"printing_settings", "printing_settings",
"letter_head", "letter_head",
"select_print_heading",
"language", "language",
"group_same_items",
"column_break_97",
"other_details",
"instructions", "instructions",
"column_break_97",
"select_print_heading",
"other_details",
"remarks", "remarks",
"group_same_items",
"transporter_info", "transporter_info",
"transporter_name", "transporter_name",
"column_break5", "column_break5",
@@ -404,6 +405,7 @@
"fieldtype": "Section Break" "fieldtype": "Section Break"
}, },
{ {
"description": "Sets 'Accepted Warehouse' in each row of the items table.",
"fieldname": "set_warehouse", "fieldname": "set_warehouse",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Accepted Warehouse", "label": "Accepted Warehouse",
@@ -411,7 +413,7 @@
"print_hide": 1 "print_hide": 1
}, },
{ {
"description": "Warehouse where you are maintaining stock of rejected items", "description": "Sets 'Rejected Warehouse' in each row of the items table.",
"fieldname": "rejected_warehouse", "fieldname": "rejected_warehouse",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Rejected Warehouse", "label": "Rejected Warehouse",
@@ -429,7 +431,7 @@
"default": "No", "default": "No",
"fieldname": "is_subcontracted", "fieldname": "is_subcontracted",
"fieldtype": "Select", "fieldtype": "Select",
"label": "Raw Materials Supplied", "label": "Raw Materials Consumed",
"oldfieldname": "is_subcontracted", "oldfieldname": "is_subcontracted",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"options": "No\nYes", "options": "No\nYes",
@@ -465,6 +467,7 @@
"reqd": 1 "reqd": 1
}, },
{ {
"collapsible": 1,
"fieldname": "pricing_rule_details", "fieldname": "pricing_rule_details",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Pricing Rules" "label": "Pricing Rules"
@@ -477,9 +480,10 @@
"read_only": 1 "read_only": 1
}, },
{ {
"depends_on": "supplied_items",
"fieldname": "get_current_stock", "fieldname": "get_current_stock",
"fieldtype": "Button", "fieldtype": "Button",
"label": "Get current stock", "label": "Get Current Stock",
"oldfieldtype": "Button", "oldfieldtype": "Button",
"options": "get_current_stock", "options": "get_current_stock",
"print_hide": 1 "print_hide": 1
@@ -489,7 +493,7 @@
"collapsible_depends_on": "supplied_items", "collapsible_depends_on": "supplied_items",
"fieldname": "raw_material_details", "fieldname": "raw_material_details",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Raw Materials Supplied", "label": "Raw Materials Consumed",
"oldfieldtype": "Section Break", "oldfieldtype": "Section Break",
"options": "fa fa-table", "options": "fa fa-table",
"print_hide": 1, "print_hide": 1,
@@ -498,7 +502,7 @@
{ {
"fieldname": "supplied_items", "fieldname": "supplied_items",
"fieldtype": "Table", "fieldtype": "Table",
"label": "Supplied Items", "label": "Consumed Items",
"no_copy": 1, "no_copy": 1,
"oldfieldname": "pr_raw_material_details", "oldfieldname": "pr_raw_material_details",
"oldfieldtype": "Table", "oldfieldtype": "Table",
@@ -1082,7 +1086,7 @@
"idx": 261, "idx": 261,
"is_submittable": 1, "is_submittable": 1,
"links": [], "links": [],
"modified": "2020-04-17 13:06:26.970288", "modified": "2020-04-18 18:02:18.020763",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Purchase Receipt", "name": "Purchase Receipt",

View File

@@ -15,15 +15,11 @@
"item_name", "item_name",
"section_break_4", "section_break_4",
"description", "description",
"item_group",
"brand", "brand",
"image_section", "image_column",
"item_group",
"image", "image",
"image_view", "image_view",
"manufacture_details",
"manufacturer",
"column_break_16",
"manufacturer_part_no",
"received_and_accepted", "received_and_accepted",
"received_qty", "received_qty",
"qty", "qty",
@@ -32,6 +28,7 @@
"uom", "uom",
"stock_uom", "stock_uom",
"conversion_factor", "conversion_factor",
"stock_qty",
"retain_sample", "retain_sample",
"sample_quantity", "sample_quantity",
"rate_and_amount", "rate_and_amount",
@@ -60,11 +57,6 @@
"rm_supp_cost", "rm_supp_cost",
"landed_cost_voucher_amount", "landed_cost_voucher_amount",
"billed_amt", "billed_amt",
"item_weight_details",
"weight_per_unit",
"total_weight",
"column_break_41",
"weight_uom",
"warehouse_and_reference", "warehouse_and_reference",
"warehouse", "warehouse",
"rejected_warehouse", "rejected_warehouse",
@@ -77,20 +69,27 @@
"asset_category", "asset_category",
"schedule_date", "schedule_date",
"quality_inspection", "quality_inspection",
"stock_qty",
"purchase_order_item", "purchase_order_item",
"material_request_item", "material_request_item",
"section_break_45", "section_break_45",
"allow_zero_valuation_rate", "allow_zero_valuation_rate",
"bom", "bom",
"col_break5",
"serial_no", "serial_no",
"col_break5",
"include_exploded_items",
"batch_no", "batch_no",
"column_break_48",
"rejected_serial_no", "rejected_serial_no",
"expense_account", "expense_account",
"include_exploded_items",
"item_tax_rate", "item_tax_rate",
"item_weight_details",
"weight_per_unit",
"total_weight",
"column_break_41",
"weight_uom",
"manufacture_details",
"manufacturer",
"column_break_16",
"manufacturer_part_no",
"accounting_dimensions_section", "accounting_dimensions_section",
"project", "project",
"dimension_col_break", "dimension_col_break",
@@ -526,7 +525,7 @@
{ {
"fieldname": "stock_qty", "fieldname": "stock_qty",
"fieldtype": "Float", "fieldtype": "Float",
"label": "Qty as per Stock UOM", "label": "Accepted Qty as per Stock UOM",
"oldfieldname": "stock_qty", "oldfieldname": "stock_qty",
"oldfieldtype": "Currency", "oldfieldtype": "Currency",
"print_hide": 1, "print_hide": 1,
@@ -553,17 +552,13 @@
"fieldname": "batch_no", "fieldname": "batch_no",
"fieldtype": "Link", "fieldtype": "Link",
"in_list_view": 1, "in_list_view": 1,
"label": "Batch No!", "label": "Batch No",
"no_copy": 1, "no_copy": 1,
"oldfieldname": "batch_no", "oldfieldname": "batch_no",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"options": "Batch", "options": "Batch",
"print_hide": 1 "print_hide": 1
}, },
{
"fieldname": "column_break_48",
"fieldtype": "Column Break"
},
{ {
"depends_on": "eval:!doc.is_fixed_asset", "depends_on": "eval:!doc.is_fixed_asset",
"fieldname": "rejected_serial_no", "fieldname": "rejected_serial_no",
@@ -658,6 +653,7 @@
"read_only": 1 "read_only": 1
}, },
{ {
"fetch_from": "item_code.brand",
"fieldname": "brand", "fieldname": "brand",
"fieldtype": "Link", "fieldtype": "Link",
"hidden": 1, "hidden": 1,
@@ -669,9 +665,9 @@
"read_only": 1 "read_only": 1
}, },
{ {
"fetch_from": "item_code.item_group",
"fieldname": "item_group", "fieldname": "item_group",
"fieldtype": "Link", "fieldtype": "Link",
"hidden": 1,
"label": "Item Group", "label": "Item Group",
"oldfieldname": "item_group", "oldfieldname": "item_group",
"oldfieldtype": "Link", "oldfieldtype": "Link",
@@ -748,22 +744,19 @@
"fieldname": "section_break_80", "fieldname": "section_break_80",
"fieldtype": "Section Break" "fieldtype": "Section Break"
}, },
{
"collapsible": 1,
"fieldname": "image_section",
"fieldtype": "Section Break",
"label": "Image"
},
{ {
"fieldname": "material_request", "fieldname": "material_request",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Material Request", "label": "Material Request",
"options": "Material Request" "options": "Material Request",
"read_only": 1
}, },
{ {
"fieldname": "material_request_item", "fieldname": "material_request_item",
"fieldtype": "Data", "fieldtype": "Data",
"label": "Material Request Item" "hidden": 1,
"label": "Material Request Item",
"read_only": 1
}, },
{ {
"fieldname": "expense_account", "fieldname": "expense_account",
@@ -826,12 +819,17 @@
"ignore_user_permissions": 1, "ignore_user_permissions": 1,
"label": "Supplier Warehouse", "label": "Supplier Warehouse",
"options": "Warehouse" "options": "Warehouse"
},
{
"collapsible": 1,
"fieldname": "image_column",
"fieldtype": "Column Break"
} }
], ],
"idx": 1, "idx": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2020-04-07 18:38:21.141558", "modified": "2020-04-10 19:01:21.154963",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Purchase Receipt Item", "name": "Purchase Receipt Item",