diff --git a/accounts/doctype/sales_invoice/sales_invoice.txt b/accounts/doctype/sales_invoice/sales_invoice.txt
index c69cda1427..f5eb3564ee 100644
--- a/accounts/doctype/sales_invoice/sales_invoice.txt
+++ b/accounts/doctype/sales_invoice/sales_invoice.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-05-24 19:29:05",
"docstatus": 0,
- "modified": "2013-06-05 14:42:44",
+ "modified": "2013-06-05 18:53:03",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -48,15 +48,6 @@
"print_hide": 1,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "column_break0",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
- "print_hide": 0,
- "read_only": 0,
- "width": "50%"
- },
{
"description": "To manage multiple series please go to Setup > Manage Series",
"doctype": "DocField",
@@ -71,26 +62,6 @@
"read_only": 0,
"reqd": 1
},
- {
- "doctype": "DocField",
- "fieldname": "is_pos",
- "fieldtype": "Check",
- "label": "Is POS",
- "oldfieldname": "is_pos",
- "oldfieldtype": "Check",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "update_stock",
- "fieldtype": "Check",
- "label": "Update Stock",
- "oldfieldname": "update_stock",
- "oldfieldtype": "Check",
- "print_hide": 1,
- "read_only": 0
- },
{
"description": "The account to which you will pay (have paid) the money to.",
"doctype": "DocField",
@@ -175,6 +146,32 @@
"oldfieldtype": "Column Break",
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "amended_from",
+ "fieldtype": "Link",
+ "label": "Amended From",
+ "no_copy": 1,
+ "oldfieldname": "amended_from",
+ "oldfieldtype": "Link",
+ "options": "Sales Invoice",
+ "print_hide": 1,
+ "read_only": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "company",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Company",
+ "oldfieldname": "company",
+ "oldfieldtype": "Link",
+ "options": "Company",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1,
+ "search_index": 0
+ },
{
"default": "Today",
"description": "The date at which current entry will get or has actually executed.",
@@ -211,11 +208,105 @@
"fieldname": "mode_of_payment",
"fieldtype": "Select",
"label": "Mode of Payment",
+ "no_copy": 0,
"oldfieldname": "mode_of_payment",
"oldfieldtype": "Select",
"options": "link:Mode of Payment",
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "is_pos",
+ "fieldtype": "Check",
+ "label": "Is POS",
+ "oldfieldname": "is_pos",
+ "oldfieldtype": "Check",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "update_stock",
+ "fieldtype": "Check",
+ "label": "Update Stock",
+ "oldfieldname": "update_stock",
+ "oldfieldtype": "Check",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "currency_section",
+ "fieldtype": "Section Break",
+ "label": "Price List and Currency",
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "currency",
+ "fieldtype": "Link",
+ "label": "Currency",
+ "oldfieldname": "currency",
+ "oldfieldtype": "Select",
+ "options": "Currency",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "default": "1.00",
+ "description": "Rate at which Customer Currency is converted to customer's base currency",
+ "doctype": "DocField",
+ "fieldname": "conversion_rate",
+ "fieldtype": "Float",
+ "label": "Conversion Rate",
+ "oldfieldname": "conversion_rate",
+ "oldfieldtype": "Currency",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break2",
+ "fieldtype": "Column Break",
+ "read_only": 0,
+ "width": "50%"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "price_list_name",
+ "fieldtype": "Select",
+ "label": "Price List",
+ "oldfieldname": "price_list_name",
+ "oldfieldtype": "Select",
+ "options": "link:Price List",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "description": "Select the currency in which price list is maintained",
+ "doctype": "DocField",
+ "fieldname": "price_list_currency",
+ "fieldtype": "Link",
+ "label": "Price List Currency",
+ "options": "Currency",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "description": "Rate at which Price list currency is converted to customer's base currency",
+ "doctype": "DocField",
+ "fieldname": "plc_conversion_rate",
+ "fieldtype": "Float",
+ "label": "Price List Currency Conversion Rate",
+ "no_copy": 0,
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1
+ },
{
"doctype": "DocField",
"fieldname": "items",
@@ -236,6 +327,23 @@
"read_only": 0,
"reqd": 1
},
+ {
+ "doctype": "DocField",
+ "fieldname": "packing_list",
+ "fieldtype": "Section Break",
+ "label": "Packing List",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "packing_details",
+ "fieldtype": "Table",
+ "label": "Packing Details",
+ "options": "Delivery Note Packing Item",
+ "print_hide": 1,
+ "read_only": 0
+ },
{
"doctype": "DocField",
"fieldname": "sales_bom_help",
@@ -251,13 +359,6 @@
"options": "Simple",
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "col_break26",
- "fieldtype": "Column Break",
- "read_only": 0,
- "width": "50%"
- },
{
"description": "Select Items from Sales Order",
"doctype": "DocField",
@@ -300,12 +401,12 @@
},
{
"doctype": "DocField",
- "fieldname": "recalculate_values",
- "fieldtype": "Button",
- "label": "Re-Calculate Values",
- "oldfieldtype": "Button",
- "print_hide": 1,
- "read_only": 0
+ "fieldname": "net_total_export",
+ "fieldtype": "Currency",
+ "label": "Net Total (Export)",
+ "options": "currency",
+ "print_hide": 0,
+ "read_only": 1
},
{
"doctype": "DocField",
@@ -321,92 +422,13 @@
},
{
"doctype": "DocField",
- "fieldname": "net_total_export",
- "fieldtype": "Currency",
- "label": "Net Total (Export)",
- "options": "currency",
- "print_hide": 0,
- "read_only": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "currency_section",
- "fieldtype": "Section Break",
- "label": "Price List and Currency",
+ "fieldname": "recalculate_values",
+ "fieldtype": "Button",
+ "label": "Re-Calculate Values",
+ "oldfieldtype": "Button",
+ "print_hide": 1,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "col_break27",
- "fieldtype": "Column Break",
- "read_only": 0,
- "width": "50%"
- },
- {
- "doctype": "DocField",
- "fieldname": "price_list_name",
- "fieldtype": "Select",
- "label": "Price List",
- "oldfieldname": "price_list_name",
- "oldfieldtype": "Select",
- "options": "link:Price List",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1
- },
- {
- "description": "Select the currency in which price list is maintained",
- "doctype": "DocField",
- "fieldname": "price_list_currency",
- "fieldtype": "Link",
- "label": "Price List Currency",
- "options": "Currency",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1
- },
- {
- "description": "Rate at which Price list currency is converted to customer's base currency",
- "doctype": "DocField",
- "fieldname": "plc_conversion_rate",
- "fieldtype": "Float",
- "label": "Price List Currency Conversion Rate",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "column_break2",
- "fieldtype": "Column Break",
- "read_only": 0,
- "width": "50%"
- },
- {
- "doctype": "DocField",
- "fieldname": "currency",
- "fieldtype": "Link",
- "label": "Currency",
- "oldfieldname": "currency",
- "oldfieldtype": "Select",
- "options": "Currency",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1
- },
- {
- "default": "1.00",
- "description": "Rate at which Customer Currency is converted to customer's base currency",
- "doctype": "DocField",
- "fieldname": "conversion_rate",
- "fieldtype": "Float",
- "label": "Conversion Rate",
- "oldfieldname": "conversion_rate",
- "oldfieldtype": "Currency",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1
- },
{
"doctype": "DocField",
"fieldname": "taxes",
@@ -426,6 +448,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_38",
+ "fieldtype": "Column Break"
+ },
{
"doctype": "DocField",
"fieldname": "get_charges",
@@ -435,6 +462,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_40",
+ "fieldtype": "Section Break"
+ },
{
"allow_on_submit": 1,
"doctype": "DocField",
@@ -448,13 +480,27 @@
},
{
"doctype": "DocField",
- "fieldname": "calculate_charges",
- "fieldtype": "Button",
- "label": "Calculate Taxes and Charges",
- "oldfieldtype": "Button",
+ "fieldname": "other_charges_calculation",
+ "fieldtype": "HTML",
+ "label": "Taxes and Charges Calculation",
+ "oldfieldtype": "HTML",
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_43",
+ "fieldtype": "Section Break"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "other_charges_total_export",
+ "fieldtype": "Currency",
+ "label": "Total Taxes and Charges (Export)",
+ "options": "currency",
+ "print_hide": 1,
+ "read_only": 1
+ },
{
"doctype": "DocField",
"fieldname": "other_charges_total",
@@ -468,19 +514,15 @@
},
{
"doctype": "DocField",
- "fieldname": "other_charges_total_export",
- "fieldtype": "Currency",
- "label": "Total Taxes and Charges (Export)",
- "options": "currency",
- "print_hide": 1,
- "read_only": 1
+ "fieldname": "column_break_45",
+ "fieldtype": "Column Break"
},
{
"doctype": "DocField",
- "fieldname": "other_charges_calculation",
- "fieldtype": "HTML",
- "label": "Taxes and Charges Calculation",
- "oldfieldtype": "HTML",
+ "fieldname": "calculate_charges",
+ "fieldtype": "Button",
+ "label": "Calculate Taxes and Charges",
+ "oldfieldtype": "Button",
"print_hide": 1,
"read_only": 0
},
@@ -493,6 +535,61 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "grand_total_export",
+ "fieldtype": "Currency",
+ "in_list_view": 1,
+ "label": "Grand Total (Export)",
+ "oldfieldname": "grand_total_export",
+ "oldfieldtype": "Currency",
+ "options": "currency",
+ "print_hide": 0,
+ "read_only": 1,
+ "reqd": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "rounded_total_export",
+ "fieldtype": "Currency",
+ "label": "Rounded Total (Export)",
+ "oldfieldname": "rounded_total_export",
+ "oldfieldtype": "Currency",
+ "options": "currency",
+ "print_hide": 0,
+ "read_only": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "in_words_export",
+ "fieldtype": "Data",
+ "label": "In Words (Export)",
+ "oldfieldname": "in_words_export",
+ "oldfieldtype": "Data",
+ "print_hide": 0,
+ "read_only": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "gross_profit",
+ "fieldtype": "Currency",
+ "label": "Gross Profit",
+ "oldfieldname": "gross_profit",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "print_hide": 1,
+ "read_only": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "gross_profit_percent",
+ "fieldtype": "Float",
+ "label": "Gross Profit (%)",
+ "oldfieldname": "gross_profit_percent",
+ "oldfieldtype": "Currency",
+ "print_hide": 1,
+ "read_only": 1
+ },
{
"doctype": "DocField",
"fieldname": "column_break5",
@@ -564,67 +661,33 @@
},
{
"doctype": "DocField",
- "fieldname": "column_break6",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
+ "fieldname": "advances",
+ "fieldtype": "Section Break",
+ "label": "Advances",
+ "oldfieldtype": "Section Break",
"print_hide": 1,
- "read_only": 0,
- "width": "50%"
+ "read_only": 0
},
{
"doctype": "DocField",
- "fieldname": "grand_total_export",
- "fieldtype": "Currency",
- "in_list_view": 1,
- "label": "Grand Total (Export)",
- "oldfieldname": "grand_total_export",
- "oldfieldtype": "Currency",
- "options": "currency",
- "print_hide": 0,
- "read_only": 1,
- "reqd": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "rounded_total_export",
- "fieldtype": "Currency",
- "label": "Rounded Total (Export)",
- "oldfieldname": "rounded_total_export",
- "oldfieldtype": "Currency",
- "options": "currency",
- "print_hide": 0,
- "read_only": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "in_words_export",
- "fieldtype": "Data",
- "label": "In Words (Export)",
- "oldfieldname": "in_words_export",
- "oldfieldtype": "Data",
- "print_hide": 0,
- "read_only": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "gross_profit",
- "fieldtype": "Currency",
- "label": "Gross Profit",
- "oldfieldname": "gross_profit",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
+ "fieldname": "get_advances_received",
+ "fieldtype": "Button",
+ "label": "Get Advances Received",
+ "oldfieldtype": "Button",
+ "options": "get_advances",
"print_hide": 1,
- "read_only": 1
+ "read_only": 0
},
{
"doctype": "DocField",
- "fieldname": "gross_profit_percent",
- "fieldtype": "Float",
- "label": "Gross Profit (%)",
- "oldfieldname": "gross_profit_percent",
- "oldfieldtype": "Currency",
+ "fieldname": "advance_adjustment_details",
+ "fieldtype": "Table",
+ "label": "Sales Invoice Advance",
+ "oldfieldname": "advance_adjustment_details",
+ "oldfieldtype": "Table",
+ "options": "Sales Invoice Advance",
"print_hide": 1,
- "read_only": 1
+ "read_only": 0
},
{
"doctype": "DocField",
@@ -723,6 +786,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_71",
+ "fieldtype": "Column Break"
+ },
{
"doctype": "DocField",
"fieldname": "get_terms",
@@ -732,6 +800,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_73",
+ "fieldtype": "Section Break"
+ },
{
"doctype": "DocField",
"fieldname": "terms",
@@ -746,9 +819,33 @@
"doctype": "DocField",
"fieldname": "contact_section",
"fieldtype": "Section Break",
+ "hidden": 0,
"label": "Contact Info",
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "territory",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Territory",
+ "options": "Territory",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1,
+ "search_index": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "customer_group",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Customer Group",
+ "options": "Customer Group",
+ "print_hide": 1,
+ "read_only": 0,
+ "search_index": 0
+ },
{
"doctype": "DocField",
"fieldname": "col_break23",
@@ -774,36 +871,6 @@
"print_hide": 1,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "col_break24",
- "fieldtype": "Column Break",
- "read_only": 0,
- "width": "50%"
- },
- {
- "doctype": "DocField",
- "fieldname": "territory",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Territory",
- "options": "Territory",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1,
- "search_index": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "customer_group",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Customer Group",
- "options": "Customer Group",
- "print_hide": 1,
- "read_only": 0,
- "search_index": 0
- },
{
"doctype": "DocField",
"fieldname": "more_info",
@@ -814,13 +881,40 @@
"read_only": 0
},
{
+ "description": "Track this Sales Invoice against any Project",
"doctype": "DocField",
- "fieldname": "column_break7",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
- "print_hide": 1,
+ "fieldname": "project_name",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Project Name",
+ "oldfieldname": "project_name",
+ "oldfieldtype": "Link",
+ "options": "Project",
"read_only": 0,
- "width": "50%"
+ "search_index": 1
+ },
+ {
+ "depends_on": "eval:doc.source == 'Campaign'",
+ "doctype": "DocField",
+ "fieldname": "campaign",
+ "fieldtype": "Link",
+ "label": "Campaign",
+ "oldfieldname": "campaign",
+ "oldfieldtype": "Link",
+ "options": "Campaign",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "source",
+ "fieldtype": "Select",
+ "label": "Source",
+ "oldfieldname": "source",
+ "oldfieldtype": "Select",
+ "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
+ "print_hide": 1,
+ "read_only": 0
},
{
"default": "No",
@@ -837,40 +931,6 @@
"read_only": 0,
"search_index": 0
},
- {
- "description": "Actual Invoice Date",
- "doctype": "DocField",
- "fieldname": "aging_date",
- "fieldtype": "Date",
- "label": "Aging Date",
- "oldfieldname": "aging_date",
- "oldfieldtype": "Date",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "posting_time",
- "fieldtype": "Time",
- "label": "Posting Time",
- "no_copy": 1,
- "oldfieldname": "posting_time",
- "oldfieldtype": "Time",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "allow_on_submit": 1,
- "doctype": "DocField",
- "fieldname": "letter_head",
- "fieldtype": "Select",
- "label": "Letter Head",
- "oldfieldname": "letter_head",
- "oldfieldtype": "Select",
- "options": "link:Letter Head",
- "print_hide": 1,
- "read_only": 0
- },
{
"doctype": "DocField",
"fieldname": "c_form_applicable",
@@ -893,29 +953,24 @@
"read_only": 1
},
{
- "depends_on": "eval:doc.source == 'Campaign'",
"doctype": "DocField",
- "fieldname": "campaign",
- "fieldtype": "Link",
- "label": "Campaign",
- "oldfieldname": "campaign",
- "oldfieldtype": "Link",
- "options": "Campaign",
+ "fieldname": "column_break8",
+ "fieldtype": "Column Break",
+ "oldfieldtype": "Column Break",
"print_hide": 1,
"read_only": 0
},
{
- "description": "Track this Sales Invoice against any Project",
+ "allow_on_submit": 1,
"doctype": "DocField",
- "fieldname": "project_name",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Project Name",
- "oldfieldname": "project_name",
- "oldfieldtype": "Link",
- "options": "Project",
- "read_only": 0,
- "search_index": 1
+ "fieldname": "letter_head",
+ "fieldtype": "Select",
+ "label": "Letter Head",
+ "oldfieldname": "letter_head",
+ "oldfieldtype": "Select",
+ "options": "link:Letter Head",
+ "print_hide": 1,
+ "read_only": 0
},
{
"allow_on_submit": 1,
@@ -933,37 +988,26 @@
},
{
"doctype": "DocField",
- "fieldname": "column_break8",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
+ "fieldname": "posting_time",
+ "fieldtype": "Time",
+ "label": "Posting Time",
+ "no_copy": 1,
+ "oldfieldname": "posting_time",
+ "oldfieldtype": "Time",
"print_hide": 1,
"read_only": 0
},
{
+ "description": "Actual Invoice Date",
"doctype": "DocField",
- "fieldname": "source",
- "fieldtype": "Select",
- "label": "Source",
- "oldfieldname": "source",
- "oldfieldtype": "Select",
- "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
+ "fieldname": "aging_date",
+ "fieldtype": "Date",
+ "label": "Aging Date",
+ "oldfieldname": "aging_date",
+ "oldfieldtype": "Date",
"print_hide": 1,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "company",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Company",
- "oldfieldname": "company",
- "oldfieldtype": "Link",
- "options": "Company",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1,
- "search_index": 0
- },
{
"doctype": "DocField",
"fieldname": "fiscal_year",
@@ -979,41 +1023,6 @@
"reqd": 1,
"search_index": 0
},
- {
- "doctype": "DocField",
- "fieldname": "amended_from",
- "fieldtype": "Link",
- "label": "Amended From",
- "no_copy": 1,
- "oldfieldname": "amended_from",
- "oldfieldtype": "Link",
- "options": "Sales Invoice",
- "print_hide": 1,
- "read_only": 1
- },
- {
- "description": "The date at which current entry is corrected in the system.",
- "doctype": "DocField",
- "fieldname": "amendment_date",
- "fieldtype": "Date",
- "label": "Amendment Date",
- "no_copy": 1,
- "oldfieldname": "amendment_date",
- "oldfieldtype": "Date",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "depends_on": "eval:!doc.__islocal",
- "doctype": "DocField",
- "fieldname": "cancel_reason",
- "fieldtype": "Data",
- "label": "Cancel Reason",
- "oldfieldname": "cancel_reason",
- "oldfieldtype": "Data",
- "print_hide": 1,
- "read_only": 1
- },
{
"doctype": "DocField",
"fieldname": "remarks",
@@ -1026,53 +1035,6 @@
"read_only": 0,
"reqd": 0
},
- {
- "doctype": "DocField",
- "fieldname": "advances",
- "fieldtype": "Section Break",
- "label": "Advances",
- "oldfieldtype": "Section Break",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "get_advances_received",
- "fieldtype": "Button",
- "label": "Get Advances Received",
- "oldfieldtype": "Button",
- "options": "get_advances",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "advance_adjustment_details",
- "fieldtype": "Table",
- "label": "Sales Invoice Advance",
- "oldfieldname": "advance_adjustment_details",
- "oldfieldtype": "Table",
- "options": "Sales Invoice Advance",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "packing_list",
- "fieldtype": "Section Break",
- "label": "Packing List",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "packing_details",
- "fieldtype": "Table",
- "label": "Packing Details",
- "options": "Delivery Note Packing Item",
- "print_hide": 1,
- "read_only": 0
- },
{
"doctype": "DocField",
"fieldname": "sales_team_section_break",
diff --git a/buying/doctype/purchase_common/purchase_common.js b/buying/doctype/purchase_common/purchase_common.js
index dfcafed273..eee7984a2b 100644
--- a/buying/doctype/purchase_common/purchase_common.js
+++ b/buying/doctype/purchase_common/purchase_common.js
@@ -309,6 +309,12 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
delete item["rate"];
});
}
+
+ if(!wn.meta.get_docfield(item.doctype, "item_tax_amount", item.parent || item.name)) {
+ $.each(this.frm.item_doclist, function(i, item) {
+ delete item["item_tax_amount"];
+ });
+ }
},
calculate_outstanding_amount: function() {
@@ -326,9 +332,10 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
// stored for valuation
//
// TODO: rename item_tax_amount to valuation_tax_amount
- if(["Valuation", "Valuation and Total"].indexOf(tax.category) != -1) {
- // accumulate only if tax is for Valuation / Valuation and Total
- item.item_tax_amount += flt(current_tax_amount, precision("item_tax_amount", item));
+ if(["Valuation", "Valuation and Total"].indexOf(tax.category) != -1 &&
+ wn.meta.get_docfield(item.doctype, "item_tax_amount", item.parent || item.name)) {
+ // accumulate only if tax is for Valuation / Valuation and Total
+ item.item_tax_amount += flt(current_tax_amount, precision("item_tax_amount", item));
}
},
diff --git a/controllers/buying_controller.py b/controllers/buying_controller.py
index 312fb8ed9a..f1cfc10a98 100644
--- a/controllers/buying_controller.py
+++ b/controllers/buying_controller.py
@@ -167,7 +167,7 @@ class BuyingController(StockController):
for item in self.item_doclist:
item.purchase_rate = item.rate
del item.fields["rate"]
-
+
if not self.meta.get_field("item_tax_amount", parentfield=self.fname):
for item in self.item_doclist:
del item.fields["item_tax_amount"]
@@ -179,8 +179,9 @@ class BuyingController(StockController):
TODO: rename item_tax_amount to valuation_tax_amount
"""
- if tax.category in ["Valuation", "Valuation and Total"]:
- item.item_tax_amount += flt(current_tax_amount, self.precision("item_tax_amount", item))
+ if tax.category in ["Valuation", "Valuation and Total"] and \
+ self.meta.get_field("item_tax_amount", parentfield=self.fname):
+ item.item_tax_amount += flt(current_tax_amount, self.precision("item_tax_amount", item))
# update valuation rate
def update_valuation_rate(self, parentfield):
diff --git a/public/images/favicon.ico b/public/images/favicon.ico
index c50923e247..4fbf3f27ce 100644
Binary files a/public/images/favicon.ico and b/public/images/favicon.ico differ
diff --git a/public/images/splash.svg b/public/images/splash.svg
index 0a48c17f45..3f9fa8867a 100644
--- a/public/images/splash.svg
+++ b/public/images/splash.svg
@@ -12,12 +12,14 @@
id="svg2"
version="1.1"
inkscape:version="0.48.2 r9819"
- sodipodi:docname="erpnext-logo-2013 - flat-ui-colors.svg"
+ sodipodi:docname="splash-mono.svg"
inkscape:export-filename="/Users/anandpdoshi/Dropbox/erpnext/logo 2013/erpnext-logo-2013 other colors 3.png"
inkscape:export-xdpi="167.56363"
inkscape:export-ydpi="167.56363"
viewBox="0 0 680 820"
- preserveAspectRatio="xMidyMid meet">
+ preserveAspectRatio="xMidyMid meet"
+ width="100%"
+ height="100%">
+ style="display:inline;opacity:0.90000000000000002;fill:#bdc3c7;fill-opacity:1" />
+ style="display:inline;opacity:0.90000000000000002;fill:#bdc3c7;fill-opacity:1" />
diff --git a/public/js/conf.js b/public/js/conf.js
index 1054bfc38b..bf9dd00829 100644
--- a/public/js/conf.js
+++ b/public/js/conf.js
@@ -15,8 +15,8 @@ wn.modules_path = 'erpnext';
// add toolbar icon
$(document).bind('toolbar_setup', function() {
- $('.navbar-brand').html((wn.boot.website_settings.brand_html || 'erpnext') +
- ' ')
+ $('.navbar-brand').html(wn.boot.website_settings.brand_html ||
+ ('erpnext'))
.css('max-width', '200px').css('overflow', 'hidden')
.hover(function() {
$(this).find('.icon-home').addClass('navbar-icon-home-hover');
diff --git a/public/js/startup.css b/public/js/startup.css
index bfcbe844d8..1cc808d2e7 100644
--- a/public/js/startup.css
+++ b/public/js/startup.css
@@ -59,4 +59,11 @@ span, div, td, input, textarea, button, select {
.show-all-reports {
margin-top: 5px;
font-size: 11px;
+}
+
+/* toolbar */
+.toolbar-splash {
+ width: 32px;
+ height: 32px;
+ margin: -11px auto;
}
\ No newline at end of file
diff --git a/selling/doctype/quotation/quotation.txt b/selling/doctype/quotation/quotation.txt
index 885fc821d6..1017221bf6 100644
--- a/selling/doctype/quotation/quotation.txt
+++ b/selling/doctype/quotation/quotation.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-05-24 19:29:08",
"docstatus": 0,
- "modified": "2013-06-05 14:43:03",
+ "modified": "2013-06-05 19:07:51",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -170,6 +170,34 @@
"read_only": 0,
"width": "50%"
},
+ {
+ "doctype": "DocField",
+ "fieldname": "amended_from",
+ "fieldtype": "Data",
+ "label": "Amended From",
+ "no_copy": 1,
+ "oldfieldname": "amended_from",
+ "oldfieldtype": "Data",
+ "print_hide": 1,
+ "read_only": 1,
+ "width": "150px"
+ },
+ {
+ "description": "Select the relevant company name if you have multiple companies.",
+ "doctype": "DocField",
+ "fieldname": "company",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Company",
+ "oldfieldname": "company",
+ "oldfieldtype": "Link",
+ "options": "Company",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "width": "150px"
+ },
{
"default": "Today",
"description": "The date at which current entry is made in system.",
@@ -201,110 +229,6 @@
"reqd": 1,
"search_index": 0
},
- {
- "doctype": "DocField",
- "fieldname": "items",
- "fieldtype": "Section Break",
- "label": "Items",
- "oldfieldtype": "Section Break",
- "print_hide": 0,
- "read_only": 0,
- "search_index": 0
- },
- {
- "allow_on_submit": 1,
- "doctype": "DocField",
- "fieldname": "quotation_details",
- "fieldtype": "Table",
- "label": "Quotation Items",
- "oldfieldname": "quotation_details",
- "oldfieldtype": "Table",
- "options": "Quotation Item",
- "read_only": 0,
- "reqd": 1,
- "width": "40px"
- },
- {
- "doctype": "DocField",
- "fieldname": "sec_break23",
- "fieldtype": "Section Break",
- "options": "Simple",
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "col_break34",
- "fieldtype": "Column Break",
- "read_only": 0,
- "width": "50%"
- },
- {
- "doctype": "DocField",
- "fieldname": "net_total",
- "fieldtype": "Currency",
- "label": "Net Total*",
- "no_copy": 0,
- "oldfieldname": "net_total",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "print_hide": 1,
- "read_only": 1,
- "reqd": 0,
- "width": "100px"
- },
- {
- "doctype": "DocField",
- "fieldname": "net_total_export",
- "fieldtype": "Currency",
- "label": "Net Total (Export)",
- "options": "currency",
- "read_only": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "recalculate_values",
- "fieldtype": "Button",
- "label": "Re-Calculate Values",
- "oldfieldtype": "Button",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "col_break35",
- "fieldtype": "Column Break",
- "read_only": 0,
- "width": "50%"
- },
- {
- "description": "To create Quotation against Opportunity, Select Opportunity No. and click on 'Pull Opportunity Details' ",
- "doctype": "DocField",
- "fieldname": "enq_no",
- "fieldtype": "Link",
- "hidden": 0,
- "in_filter": 1,
- "label": "Opportunity No",
- "no_copy": 0,
- "oldfieldname": "enq_no",
- "oldfieldtype": "Link",
- "options": "Opportunity",
- "print_hide": 0,
- "read_only": 0,
- "report_hide": 0,
- "search_index": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "pull_enquiry_detail",
- "fieldtype": "Button",
- "hidden": 0,
- "label": "Pull Opportunity Detail",
- "no_copy": 0,
- "oldfieldtype": "Button",
- "print_hide": 0,
- "read_only": 0,
- "report_hide": 0
- },
{
"doctype": "DocField",
"fieldname": "section_break0",
@@ -312,6 +236,43 @@
"label": "Price List and Currency",
"read_only": 0
},
+ {
+ "description": "Customer's currency - If you want to select a currency that is not the default currency, then you must also specify the Currency Conversion Rate.",
+ "doctype": "DocField",
+ "fieldname": "currency",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Currency",
+ "oldfieldname": "currency",
+ "oldfieldtype": "Select",
+ "options": "Currency",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "width": "100px"
+ },
+ {
+ "default": "1.00",
+ "description": "Rate at which customer's currency is converted to company's base currency",
+ "doctype": "DocField",
+ "fieldname": "conversion_rate",
+ "fieldtype": "Float",
+ "label": "Conversion Rate",
+ "oldfieldname": "conversion_rate",
+ "oldfieldtype": "Currency",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1,
+ "width": "100px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break2",
+ "fieldtype": "Column Break",
+ "read_only": 0,
+ "width": "50%"
+ },
{
"description": "Select the price list as entered in \"Price List\" master. This will pull the reference rates of items against this price list as specified in \"Item\" master.",
"doctype": "DocField",
@@ -351,40 +312,100 @@
},
{
"doctype": "DocField",
- "fieldname": "column_break2",
+ "fieldname": "items",
+ "fieldtype": "Section Break",
+ "label": "Items",
+ "oldfieldtype": "Section Break",
+ "print_hide": 0,
+ "read_only": 0,
+ "search_index": 0
+ },
+ {
+ "allow_on_submit": 1,
+ "doctype": "DocField",
+ "fieldname": "quotation_details",
+ "fieldtype": "Table",
+ "label": "Quotation Items",
+ "oldfieldname": "quotation_details",
+ "oldfieldtype": "Table",
+ "options": "Quotation Item",
+ "read_only": 0,
+ "reqd": 1,
+ "width": "40px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "sec_break23",
+ "fieldtype": "Section Break",
+ "options": "Simple",
+ "read_only": 0
+ },
+ {
+ "description": "To create Quotation against Opportunity, Select Opportunity No. and click on 'Pull Opportunity Details' ",
+ "doctype": "DocField",
+ "fieldname": "enq_no",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "in_filter": 1,
+ "label": "Opportunity No",
+ "no_copy": 0,
+ "oldfieldname": "enq_no",
+ "oldfieldtype": "Link",
+ "options": "Opportunity",
+ "print_hide": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "search_index": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "pull_enquiry_detail",
+ "fieldtype": "Button",
+ "hidden": 0,
+ "label": "Pull Opportunity Detail",
+ "no_copy": 0,
+ "oldfieldtype": "Button",
+ "print_hide": 0,
+ "read_only": 0,
+ "report_hide": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "col_break34",
"fieldtype": "Column Break",
"read_only": 0,
"width": "50%"
},
{
- "description": "Customer's currency - If you want to select a currency that is not the default currency, then you must also specify the Currency Conversion Rate.",
"doctype": "DocField",
- "fieldname": "currency",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Currency",
- "oldfieldname": "currency",
- "oldfieldtype": "Select",
- "options": "Currency",
+ "fieldname": "net_total_export",
+ "fieldtype": "Currency",
+ "label": "Net Total (Export)",
+ "options": "currency",
+ "read_only": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "net_total",
+ "fieldtype": "Currency",
+ "label": "Net Total*",
+ "no_copy": 0,
+ "oldfieldname": "net_total",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
"print_hide": 1,
- "read_only": 0,
- "reqd": 1,
- "search_index": 0,
+ "read_only": 1,
+ "reqd": 0,
"width": "100px"
},
{
- "default": "1.00",
- "description": "Rate at which customer's currency is converted to company's base currency",
"doctype": "DocField",
- "fieldname": "conversion_rate",
- "fieldtype": "Float",
- "label": "Conversion Rate",
- "oldfieldname": "conversion_rate",
- "oldfieldtype": "Currency",
+ "fieldname": "recalculate_values",
+ "fieldtype": "Button",
+ "label": "Re-Calculate Values",
+ "oldfieldtype": "Button",
"print_hide": 1,
- "read_only": 0,
- "reqd": 1,
- "width": "100px"
+ "read_only": 0
},
{
"doctype": "DocField",
@@ -406,6 +427,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_34",
+ "fieldtype": "Column Break"
+ },
{
"doctype": "DocField",
"fieldname": "get_charges",
@@ -416,6 +442,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_36",
+ "fieldtype": "Section Break"
+ },
{
"doctype": "DocField",
"fieldname": "other_charges",
@@ -428,13 +459,27 @@
},
{
"doctype": "DocField",
- "fieldname": "calculate_charges",
- "fieldtype": "Button",
- "label": "Calculate Taxes and Charges",
- "oldfieldtype": "Button",
+ "fieldname": "other_charges_calculation",
+ "fieldtype": "HTML",
+ "label": "Taxes and Charges Calculation",
+ "oldfieldtype": "HTML",
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_39",
+ "fieldtype": "Section Break"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "other_charges_total_export",
+ "fieldtype": "Currency",
+ "label": "Taxes and Charges Total (Export)",
+ "options": "currency",
+ "print_hide": 1,
+ "read_only": 1
+ },
{
"doctype": "DocField",
"fieldname": "other_charges_total",
@@ -448,19 +493,15 @@
},
{
"doctype": "DocField",
- "fieldname": "other_charges_total_export",
- "fieldtype": "Currency",
- "label": "Taxes and Charges Total (Export)",
- "options": "currency",
- "print_hide": 1,
- "read_only": 1
+ "fieldname": "column_break_42",
+ "fieldtype": "Column Break"
},
{
"doctype": "DocField",
- "fieldname": "other_charges_calculation",
- "fieldtype": "HTML",
- "label": "Taxes and Charges Calculation",
- "oldfieldtype": "HTML",
+ "fieldname": "calculate_charges",
+ "fieldtype": "Button",
+ "label": "Calculate Taxes and Charges",
+ "oldfieldtype": "Button",
"print_hide": 1,
"read_only": 0
},
@@ -473,55 +514,6 @@
"print_hide": 1,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "grand_total",
- "fieldtype": "Currency",
- "label": "Grand Total*",
- "no_copy": 0,
- "oldfieldname": "grand_total",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "print_hide": 1,
- "read_only": 1,
- "reqd": 0,
- "width": "200px"
- },
- {
- "doctype": "DocField",
- "fieldname": "rounded_total",
- "fieldtype": "Currency",
- "label": "Rounded Total",
- "no_copy": 0,
- "oldfieldname": "rounded_total",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "print_hide": 1,
- "read_only": 1,
- "width": "200px"
- },
- {
- "description": "In Words will be visible once you save the Quotation.",
- "doctype": "DocField",
- "fieldname": "in_words",
- "fieldtype": "Data",
- "label": "In Words",
- "no_copy": 0,
- "oldfieldname": "in_words",
- "oldfieldtype": "Data",
- "print_hide": 1,
- "read_only": 1,
- "width": "200px"
- },
- {
- "doctype": "DocField",
- "fieldname": "column_break3",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
- "print_hide": 1,
- "read_only": 0,
- "width": "50%"
- },
{
"doctype": "DocField",
"fieldname": "grand_total_export",
@@ -563,6 +555,55 @@
"read_only": 1,
"width": "200px"
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break3",
+ "fieldtype": "Column Break",
+ "oldfieldtype": "Column Break",
+ "print_hide": 1,
+ "read_only": 0,
+ "width": "50%"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "grand_total",
+ "fieldtype": "Currency",
+ "label": "Grand Total*",
+ "no_copy": 0,
+ "oldfieldname": "grand_total",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "print_hide": 1,
+ "read_only": 1,
+ "reqd": 0,
+ "width": "200px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "rounded_total",
+ "fieldtype": "Currency",
+ "label": "Rounded Total",
+ "no_copy": 0,
+ "oldfieldname": "rounded_total",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "print_hide": 1,
+ "read_only": 1,
+ "width": "200px"
+ },
+ {
+ "description": "In Words will be visible once you save the Quotation.",
+ "doctype": "DocField",
+ "fieldname": "in_words",
+ "fieldtype": "Data",
+ "label": "In Words",
+ "no_copy": 0,
+ "oldfieldname": "in_words",
+ "oldfieldtype": "Data",
+ "print_hide": 1,
+ "read_only": 1,
+ "width": "200px"
+ },
{
"description": "Add Terms and Conditions for the Quotation like Payment Terms, Validity of Offer etc. You can also prepare a Terms and Conditions Master and use the Template",
"doctype": "DocField",
@@ -585,6 +626,11 @@
"read_only": 0,
"report_hide": 1
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_54",
+ "fieldtype": "Column Break"
+ },
{
"doctype": "DocField",
"fieldname": "get_terms",
@@ -593,6 +639,11 @@
"oldfieldtype": "Button",
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_56",
+ "fieldtype": "Section Break"
+ },
{
"doctype": "DocField",
"fieldname": "terms",
@@ -609,6 +660,35 @@
"label": "Contact Info",
"read_only": 0
},
+ {
+ "description": "Will be fetched from Customer",
+ "doctype": "DocField",
+ "fieldname": "territory",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "in_filter": 1,
+ "label": "Territory",
+ "options": "Territory",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1,
+ "search_index": 0
+ },
+ {
+ "depends_on": "customer",
+ "doctype": "DocField",
+ "fieldname": "customer_group",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Customer Group",
+ "oldfieldname": "customer_group",
+ "oldfieldtype": "Link",
+ "options": "Customer Group",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 0,
+ "search_index": 0
+ },
{
"depends_on": "customer",
"doctype": "DocField",
@@ -642,42 +722,6 @@
"read_only": 0,
"reqd": 0
},
- {
- "doctype": "DocField",
- "fieldname": "col_break99",
- "fieldtype": "Column Break",
- "read_only": 0,
- "width": "50%"
- },
- {
- "description": "Will be fetched from Customer",
- "doctype": "DocField",
- "fieldname": "territory",
- "fieldtype": "Link",
- "hidden": 0,
- "in_filter": 1,
- "label": "Territory",
- "options": "Territory",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1,
- "search_index": 0
- },
- {
- "depends_on": "customer",
- "doctype": "DocField",
- "fieldname": "customer_group",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Customer Group",
- "oldfieldname": "customer_group",
- "oldfieldtype": "Link",
- "options": "Customer Group",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 0,
- "search_index": 0
- },
{
"description": "Filling in additional information about the Quotation will help you analyze your data better.",
"doctype": "DocField",
@@ -689,32 +733,18 @@
"read_only": 0
},
{
- "allow_on_submit": 1,
"doctype": "DocField",
- "fieldname": "letter_head",
- "fieldtype": "Select",
- "label": "Letter Head",
- "oldfieldname": "letter_head",
- "oldfieldtype": "Select",
- "options": "link:Letter Head",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "description": "Select the relevant company name if you have multiple companies.",
- "doctype": "DocField",
- "fieldname": "company",
+ "fieldname": "campaign",
"fieldtype": "Link",
- "in_filter": 1,
- "label": "Company",
- "oldfieldname": "company",
+ "hidden": 0,
+ "label": "Campaign",
+ "no_copy": 0,
+ "oldfieldname": "campaign",
"oldfieldtype": "Link",
- "options": "Company",
+ "options": "Campaign",
"print_hide": 1,
"read_only": 0,
- "reqd": 1,
- "search_index": 0,
- "width": "150px"
+ "report_hide": 0
},
{
"doctype": "DocField",
@@ -730,6 +760,70 @@
"read_only": 0,
"report_hide": 0
},
+ {
+ "allow_on_submit": 0,
+ "default": "Draft",
+ "doctype": "DocField",
+ "fieldname": "status",
+ "fieldtype": "Select",
+ "in_filter": 1,
+ "label": "Status",
+ "no_copy": 1,
+ "oldfieldname": "status",
+ "oldfieldtype": "Select",
+ "options": "\nDraft\nSubmitted\nOrder Confirmed\nOrder Lost\nCancelled",
+ "print_hide": 1,
+ "read_only": 1,
+ "reqd": 1,
+ "search_index": 0
+ },
+ {
+ "allow_on_submit": 1,
+ "doctype": "DocField",
+ "fieldname": "order_lost_reason",
+ "fieldtype": "Small Text",
+ "label": "Quotation Lost Reason",
+ "no_copy": 1,
+ "oldfieldname": "order_lost_reason",
+ "oldfieldtype": "Small Text",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break4",
+ "fieldtype": "Column Break",
+ "oldfieldtype": "Column Break",
+ "print_hide": 1,
+ "read_only": 0,
+ "width": "50%"
+ },
+ {
+ "allow_on_submit": 1,
+ "doctype": "DocField",
+ "fieldname": "letter_head",
+ "fieldtype": "Select",
+ "label": "Letter Head",
+ "oldfieldname": "letter_head",
+ "oldfieldtype": "Select",
+ "options": "link:Letter Head",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "allow_on_submit": 1,
+ "doctype": "DocField",
+ "fieldname": "select_print_heading",
+ "fieldtype": "Link",
+ "label": "Select Print Heading",
+ "no_copy": 1,
+ "oldfieldname": "select_print_heading",
+ "oldfieldtype": "Link",
+ "options": "Print Heading",
+ "print_hide": 1,
+ "read_only": 0,
+ "report_hide": 1
+ },
{
"doctype": "DocField",
"fieldname": "fiscal_year",
@@ -757,84 +851,6 @@
"read_only": 1,
"report_hide": 0
},
- {
- "doctype": "DocField",
- "fieldname": "column_break4",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
- "print_hide": 1,
- "read_only": 0,
- "width": "50%"
- },
- {
- "allow_on_submit": 0,
- "default": "Draft",
- "doctype": "DocField",
- "fieldname": "status",
- "fieldtype": "Select",
- "in_filter": 1,
- "label": "Status",
- "no_copy": 1,
- "oldfieldname": "status",
- "oldfieldtype": "Select",
- "options": "\nDraft\nSubmitted\nOrder Confirmed\nOrder Lost\nCancelled",
- "print_hide": 1,
- "read_only": 1,
- "reqd": 1,
- "search_index": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "campaign",
- "fieldtype": "Link",
- "hidden": 0,
- "label": "Campaign",
- "no_copy": 0,
- "oldfieldname": "campaign",
- "oldfieldtype": "Link",
- "options": "Campaign",
- "print_hide": 1,
- "read_only": 0,
- "report_hide": 0
- },
- {
- "allow_on_submit": 1,
- "doctype": "DocField",
- "fieldname": "order_lost_reason",
- "fieldtype": "Small Text",
- "label": "Quotation Lost Reason",
- "no_copy": 1,
- "oldfieldname": "order_lost_reason",
- "oldfieldtype": "Small Text",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "allow_on_submit": 1,
- "doctype": "DocField",
- "fieldname": "select_print_heading",
- "fieldtype": "Link",
- "label": "Select Print Heading",
- "no_copy": 1,
- "oldfieldname": "select_print_heading",
- "oldfieldtype": "Link",
- "options": "Print Heading",
- "print_hide": 1,
- "read_only": 0,
- "report_hide": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "amended_from",
- "fieldtype": "Data",
- "label": "Amended From",
- "no_copy": 1,
- "oldfieldname": "amended_from",
- "oldfieldtype": "Data",
- "print_hide": 1,
- "read_only": 1,
- "width": "150px"
- },
{
"doctype": "DocField",
"fieldname": "communication_history",
@@ -856,16 +872,6 @@
"read_only": 0,
"width": "40px"
},
- {
- "doctype": "DocField",
- "fieldname": "file_list",
- "fieldtype": "Small Text",
- "hidden": 1,
- "label": "File List",
- "no_copy": 1,
- "print_hide": 1,
- "read_only": 0
- },
{
"amend": 1,
"cancel": 1,
diff --git a/selling/doctype/sales_common/sales_common.js b/selling/doctype/sales_common/sales_common.js
index a5086a532b..dc3f60d617 100644
--- a/selling/doctype/sales_common/sales_common.js
+++ b/selling/doctype/sales_common/sales_common.js
@@ -388,6 +388,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
this.change_form_labels(company_currency);
this.change_grid_labels(company_currency);
+ set_sales_bom_help(this.frm.doc);
},
change_form_labels: function(company_currency) {
diff --git a/selling/doctype/sales_order/sales_order.txt b/selling/doctype/sales_order/sales_order.txt
index 77fcf1190d..02ffae7f02 100644
--- a/selling/doctype/sales_order/sales_order.txt
+++ b/selling/doctype/sales_order/sales_order.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-05-24 19:29:08",
"docstatus": 0,
- "modified": "2013-06-05 14:47:04",
+ "modified": "2013-06-05 18:59:41",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -142,6 +142,34 @@
"oldfieldtype": "Column Break",
"width": "50%"
},
+ {
+ "doctype": "DocField",
+ "fieldname": "amended_from",
+ "fieldtype": "Data",
+ "hidden": 1,
+ "label": "Amended From",
+ "no_copy": 1,
+ "oldfieldname": "amended_from",
+ "oldfieldtype": "Data",
+ "print_hide": 1,
+ "read_only": 1,
+ "width": "150px"
+ },
+ {
+ "description": "Select the relevant company name if you have multiple companies.",
+ "doctype": "DocField",
+ "fieldname": "company",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Company",
+ "oldfieldname": "company",
+ "oldfieldtype": "Link",
+ "options": "Company",
+ "print_hide": 1,
+ "reqd": 1,
+ "search_index": 1,
+ "width": "150px"
+ },
{
"default": "Today",
"description": "The date at which current entry is made in system.",
@@ -220,6 +248,76 @@
"print_hide": 1,
"read_only": 1
},
+ {
+ "doctype": "DocField",
+ "fieldname": "sec_break45",
+ "fieldtype": "Section Break",
+ "label": "Price List and Currency"
+ },
+ {
+ "description": "Customer's currency",
+ "doctype": "DocField",
+ "fieldname": "currency",
+ "fieldtype": "Link",
+ "label": "Currency",
+ "oldfieldname": "currency",
+ "oldfieldtype": "Select",
+ "options": "Currency",
+ "print_hide": 1,
+ "reqd": 1,
+ "width": "100px"
+ },
+ {
+ "default": "1.00",
+ "description": "Rate at which customer's currency is converted to company's base currency",
+ "doctype": "DocField",
+ "fieldname": "conversion_rate",
+ "fieldtype": "Float",
+ "label": "Conversion Rate",
+ "oldfieldname": "conversion_rate",
+ "oldfieldtype": "Currency",
+ "print_hide": 1,
+ "reqd": 1,
+ "width": "100px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break2",
+ "fieldtype": "Column Break",
+ "width": "50%"
+ },
+ {
+ "description": "Select the price list as entered in \"Price List\" master. This will pull the reference rates of items against this price list as specified in \"Item\" master.",
+ "doctype": "DocField",
+ "fieldname": "price_list_name",
+ "fieldtype": "Select",
+ "label": "Price List",
+ "oldfieldname": "price_list_name",
+ "oldfieldtype": "Select",
+ "options": "link:Price List",
+ "print_hide": 1,
+ "reqd": 1,
+ "width": "100px"
+ },
+ {
+ "description": "Select the currency in which price list is maintained",
+ "doctype": "DocField",
+ "fieldname": "price_list_currency",
+ "fieldtype": "Link",
+ "label": "Price List Currency",
+ "options": "Currency",
+ "print_hide": 1,
+ "reqd": 1
+ },
+ {
+ "description": "Rate at which Price list currency is converted to company's base currency",
+ "doctype": "DocField",
+ "fieldname": "plc_conversion_rate",
+ "fieldtype": "Float",
+ "label": "Price List Currency Conversion Rate",
+ "print_hide": 1,
+ "reqd": 1
+ },
{
"doctype": "DocField",
"fieldname": "items",
@@ -240,51 +338,30 @@
"reqd": 1
},
{
+ "description": "Display all the individual items delivered with the main items",
"doctype": "DocField",
- "fieldname": "section_break0",
- "fieldtype": "Section Break"
+ "fieldname": "packing_list",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "label": "Packing List",
+ "oldfieldtype": "Section Break",
+ "print_hide": 1
},
{
"doctype": "DocField",
- "fieldname": "col_break20",
- "fieldtype": "Column Break",
- "width": "50%"
- },
- {
- "doctype": "DocField",
- "fieldname": "net_total",
- "fieldtype": "Currency",
- "label": "Net Total*",
- "oldfieldname": "net_total",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
+ "fieldname": "packing_details",
+ "fieldtype": "Table",
+ "label": "Packing Details",
+ "oldfieldname": "packing_details",
+ "oldfieldtype": "Table",
+ "options": "Delivery Note Packing Item",
"print_hide": 1,
- "read_only": 1,
- "reqd": 0,
- "width": "150px"
- },
- {
- "doctype": "DocField",
- "fieldname": "net_total_export",
- "fieldtype": "Currency",
- "label": "Net Total (Export)",
- "options": "currency",
"read_only": 1
},
{
"doctype": "DocField",
- "fieldname": "recalculate_values",
- "fieldtype": "Button",
- "label": "Re-Calculate Values",
- "oldfieldtype": "Button",
- "print_hide": 1,
- "search_index": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "col_break_21",
- "fieldtype": "Column Break",
- "width": "50%"
+ "fieldname": "section_break0",
+ "fieldtype": "Section Break"
},
{
"description": "Quotation no against which this Sales Order is made ",
@@ -327,73 +404,39 @@
},
{
"doctype": "DocField",
- "fieldname": "sec_break45",
- "fieldtype": "Section Break",
- "label": "Price List and Currency"
- },
- {
- "description": "Select the price list as entered in \"Price List\" master. This will pull the reference rates of items against this price list as specified in \"Item\" master.",
- "doctype": "DocField",
- "fieldname": "price_list_name",
- "fieldtype": "Select",
- "label": "Price List",
- "oldfieldname": "price_list_name",
- "oldfieldtype": "Select",
- "options": "link:Price List",
- "print_hide": 1,
- "reqd": 1,
- "width": "100px"
- },
- {
- "description": "Select the currency in which price list is maintained",
- "doctype": "DocField",
- "fieldname": "price_list_currency",
- "fieldtype": "Link",
- "label": "Price List Currency",
- "options": "Currency",
- "print_hide": 1,
- "reqd": 1
- },
- {
- "description": "Rate at which Price list currency is converted to company's base currency",
- "doctype": "DocField",
- "fieldname": "plc_conversion_rate",
- "fieldtype": "Float",
- "label": "Price List Currency Conversion Rate",
- "print_hide": 1,
- "reqd": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "column_break2",
+ "fieldname": "col_break20",
"fieldtype": "Column Break",
"width": "50%"
},
{
- "description": "Customer's currency",
"doctype": "DocField",
- "fieldname": "currency",
- "fieldtype": "Link",
- "label": "Currency",
- "oldfieldname": "currency",
- "oldfieldtype": "Select",
- "options": "Currency",
- "print_hide": 1,
- "reqd": 1,
- "width": "100px"
+ "fieldname": "net_total_export",
+ "fieldtype": "Currency",
+ "label": "Net Total (Export)",
+ "options": "currency",
+ "read_only": 1
},
{
- "default": "1.00",
- "description": "Rate at which customer's currency is converted to company's base currency",
"doctype": "DocField",
- "fieldname": "conversion_rate",
- "fieldtype": "Float",
- "label": "Conversion Rate",
- "oldfieldname": "conversion_rate",
+ "fieldname": "net_total",
+ "fieldtype": "Currency",
+ "label": "Net Total*",
+ "oldfieldname": "net_total",
"oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
"print_hide": 1,
- "reqd": 1,
- "width": "100px"
+ "read_only": 1,
+ "reqd": 0,
+ "width": "150px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "recalculate_values",
+ "fieldtype": "Button",
+ "label": "Re-Calculate Values",
+ "oldfieldtype": "Button",
+ "print_hide": 1,
+ "search_index": 0
},
{
"doctype": "DocField",
@@ -413,6 +456,11 @@
"options": "Sales Taxes and Charges Master",
"print_hide": 1
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_38",
+ "fieldtype": "Column Break"
+ },
{
"doctype": "DocField",
"fieldname": "get_charges",
@@ -420,6 +468,11 @@
"label": "Get Taxes and Charges",
"oldfieldtype": "Button"
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_40",
+ "fieldtype": "Section Break"
+ },
{
"doctype": "DocField",
"fieldname": "other_charges",
@@ -431,12 +484,26 @@
},
{
"doctype": "DocField",
- "fieldname": "calculate_charges",
- "fieldtype": "Button",
- "label": "Calculate Taxes and Charges",
- "oldfieldtype": "Button",
+ "fieldname": "other_charges_calculation",
+ "fieldtype": "HTML",
+ "label": "Taxes and Charges Calculation",
+ "oldfieldtype": "HTML",
"print_hide": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_43",
+ "fieldtype": "Section Break"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "other_charges_total_export",
+ "fieldtype": "Currency",
+ "label": "Taxes and Charges Total (Export)",
+ "options": "currency",
+ "print_hide": 1,
+ "read_only": 1
+ },
{
"doctype": "DocField",
"fieldname": "other_charges_total",
@@ -451,19 +518,15 @@
},
{
"doctype": "DocField",
- "fieldname": "other_charges_total_export",
- "fieldtype": "Currency",
- "label": "Taxes and Charges Total (Export)",
- "options": "currency",
- "print_hide": 1,
- "read_only": 1
+ "fieldname": "column_break_46",
+ "fieldtype": "Column Break"
},
{
"doctype": "DocField",
- "fieldname": "other_charges_calculation",
- "fieldtype": "HTML",
- "label": "Taxes and Charges Calculation",
- "oldfieldtype": "HTML",
+ "fieldname": "calculate_charges",
+ "fieldtype": "Button",
+ "label": "Calculate Taxes and Charges",
+ "oldfieldtype": "Button",
"print_hide": 0
},
{
@@ -474,6 +537,50 @@
"oldfieldtype": "Section Break",
"print_hide": 1
},
+ {
+ "doctype": "DocField",
+ "fieldname": "grand_total_export",
+ "fieldtype": "Currency",
+ "label": "Grand Total (Export)",
+ "oldfieldname": "grand_total_export",
+ "oldfieldtype": "Currency",
+ "options": "currency",
+ "print_hide": 0,
+ "read_only": 1,
+ "reqd": 0,
+ "width": "150px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "rounded_total_export",
+ "fieldtype": "Currency",
+ "label": "Rounded Total (Export)",
+ "oldfieldname": "rounded_total_export",
+ "oldfieldtype": "Currency",
+ "options": "currency",
+ "print_hide": 0,
+ "read_only": 1,
+ "width": "150px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "in_words_export",
+ "fieldtype": "Data",
+ "label": "In Words (Export)",
+ "oldfieldname": "in_words_export",
+ "oldfieldtype": "Data",
+ "print_hide": 0,
+ "read_only": 1,
+ "width": "200px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break3",
+ "fieldtype": "Column Break",
+ "oldfieldtype": "Column Break",
+ "print_hide": 1,
+ "width": "50%"
+ },
{
"doctype": "DocField",
"fieldname": "grand_total",
@@ -511,50 +618,6 @@
"read_only": 1,
"width": "200px"
},
- {
- "doctype": "DocField",
- "fieldname": "column_break3",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
- "print_hide": 1,
- "width": "50%"
- },
- {
- "doctype": "DocField",
- "fieldname": "grand_total_export",
- "fieldtype": "Currency",
- "label": "Grand Total (Export)",
- "oldfieldname": "grand_total_export",
- "oldfieldtype": "Currency",
- "options": "currency",
- "print_hide": 0,
- "read_only": 1,
- "reqd": 0,
- "width": "150px"
- },
- {
- "doctype": "DocField",
- "fieldname": "rounded_total_export",
- "fieldtype": "Currency",
- "label": "Rounded Total (Export)",
- "oldfieldname": "rounded_total_export",
- "oldfieldtype": "Currency",
- "options": "currency",
- "print_hide": 0,
- "read_only": 1,
- "width": "150px"
- },
- {
- "doctype": "DocField",
- "fieldname": "in_words_export",
- "fieldtype": "Data",
- "label": "In Words (Export)",
- "oldfieldname": "in_words_export",
- "oldfieldtype": "Data",
- "print_hide": 0,
- "read_only": 1,
- "width": "200px"
- },
{
"doctype": "DocField",
"fieldname": "terms_section_break",
@@ -574,6 +637,11 @@
"print_hide": 1,
"search_index": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_58",
+ "fieldtype": "Column Break"
+ },
{
"doctype": "DocField",
"fieldname": "get_terms",
@@ -582,6 +650,11 @@
"oldfieldtype": "Button",
"print_hide": 1
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_60",
+ "fieldtype": "Section Break"
+ },
{
"doctype": "DocField",
"fieldname": "terms",
@@ -604,6 +677,35 @@
"fieldtype": "Column Break",
"width": "50%"
},
+ {
+ "doctype": "DocField",
+ "fieldname": "territory",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Territory",
+ "options": "Territory",
+ "print_hide": 1,
+ "reqd": 1,
+ "search_index": 1
+ },
+ {
+ "description": "Category of customer as entered in Customer master",
+ "doctype": "DocField",
+ "fieldname": "customer_group",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Customer Group",
+ "options": "Customer Group",
+ "print_hide": 1,
+ "reqd": 1,
+ "search_index": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "col_break46",
+ "fieldtype": "Column Break",
+ "width": "50%"
+ },
{
"doctype": "DocField",
"fieldname": "customer_address",
@@ -623,35 +725,6 @@
"options": "Contact",
"print_hide": 1
},
- {
- "doctype": "DocField",
- "fieldname": "territory",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Territory",
- "options": "Territory",
- "print_hide": 1,
- "reqd": 1,
- "search_index": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "col_break46",
- "fieldtype": "Column Break",
- "width": "50%"
- },
- {
- "description": "Category of customer as entered in Customer master",
- "doctype": "DocField",
- "fieldname": "customer_group",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Customer Group",
- "options": "Customer Group",
- "print_hide": 1,
- "reqd": 1,
- "search_index": 1
- },
{
"description": "Filling in additional information about the Sales Order will help you analyze your data better.",
"doctype": "DocField",
@@ -661,6 +734,39 @@
"oldfieldtype": "Section Break",
"print_hide": 1
},
+ {
+ "description": "Track this Sales Order against any Project",
+ "doctype": "DocField",
+ "fieldname": "project_name",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Project Name",
+ "oldfieldname": "project_name",
+ "oldfieldtype": "Link",
+ "options": "Project",
+ "search_index": 1
+ },
+ {
+ "depends_on": "eval:doc.source == 'Campaign'",
+ "doctype": "DocField",
+ "fieldname": "campaign",
+ "fieldtype": "Link",
+ "label": "Campaign",
+ "oldfieldname": "campaign",
+ "oldfieldtype": "Link",
+ "options": "Campaign",
+ "print_hide": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "source",
+ "fieldtype": "Select",
+ "label": "Source",
+ "oldfieldname": "source",
+ "oldfieldtype": "Select",
+ "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
+ "print_hide": 1
+ },
{
"doctype": "DocField",
"fieldname": "column_break4",
@@ -693,58 +799,6 @@
"print_hide": 1,
"report_hide": 1
},
- {
- "depends_on": "eval:doc.source == 'Campaign'",
- "doctype": "DocField",
- "fieldname": "campaign",
- "fieldtype": "Link",
- "label": "Campaign",
- "oldfieldname": "campaign",
- "oldfieldtype": "Link",
- "options": "Campaign",
- "print_hide": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "amended_from",
- "fieldtype": "Data",
- "hidden": 1,
- "label": "Amended From",
- "no_copy": 1,
- "oldfieldname": "amended_from",
- "oldfieldtype": "Data",
- "print_hide": 1,
- "read_only": 1,
- "width": "150px"
- },
- {
- "description": "The date at which current entry is corrected in the system.",
- "doctype": "DocField",
- "fieldname": "amendment_date",
- "fieldtype": "Date",
- "hidden": 1,
- "label": "Amendment Date",
- "no_copy": 1,
- "oldfieldname": "amendment_date",
- "oldfieldtype": "Date",
- "print_hide": 1,
- "width": "100px"
- },
- {
- "description": "Select the relevant company name if you have multiple companies.",
- "doctype": "DocField",
- "fieldname": "company",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Company",
- "oldfieldname": "company",
- "oldfieldtype": "Link",
- "options": "Company",
- "print_hide": 1,
- "reqd": 1,
- "search_index": 1,
- "width": "150px"
- },
{
"doctype": "DocField",
"fieldname": "fiscal_year",
@@ -760,47 +814,13 @@
"width": "150px"
},
{
- "depends_on": "eval:!doc.__islocal",
"doctype": "DocField",
- "fieldname": "cancel_reason",
- "fieldtype": "Data",
- "label": "Cancel Reason",
- "no_copy": 1,
- "oldfieldname": "cancel_reason",
- "oldfieldtype": "Data",
- "print_hide": 1,
- "read_only": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "column_break5",
- "fieldtype": "Column Break",
+ "fieldname": "section_break_78",
+ "fieldtype": "Section Break",
"oldfieldtype": "Column Break",
"print_hide": 1,
"width": "50%"
},
- {
- "doctype": "DocField",
- "fieldname": "source",
- "fieldtype": "Select",
- "label": "Source",
- "oldfieldname": "source",
- "oldfieldtype": "Select",
- "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
- "print_hide": 1
- },
- {
- "description": "Track this Sales Order against any Project",
- "doctype": "DocField",
- "fieldname": "project_name",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Project Name",
- "oldfieldname": "project_name",
- "oldfieldtype": "Link",
- "options": "Project",
- "search_index": 1
- },
{
"default": "Draft",
"doctype": "DocField",
@@ -819,6 +839,16 @@
"search_index": 1,
"width": "100px"
},
+ {
+ "doctype": "DocField",
+ "fieldname": "delivery_status",
+ "fieldtype": "Select",
+ "hidden": 1,
+ "label": "Delivery Status",
+ "no_copy": 1,
+ "options": "Delivered\nNot Delivered\nPartly Delivered\nClosed\nNot Applicable",
+ "print_hide": 1
+ },
{
"depends_on": "eval:!doc.__islocal",
"description": "% of materials delivered against this Sales Order",
@@ -835,6 +865,11 @@
"read_only": 1,
"width": "100px"
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_81",
+ "fieldtype": "Column Break"
+ },
{
"depends_on": "eval:!doc.__islocal",
"description": "% of materials billed against this Sales Order",
@@ -851,16 +886,6 @@
"read_only": 1,
"width": "100px"
},
- {
- "doctype": "DocField",
- "fieldname": "delivery_status",
- "fieldtype": "Select",
- "hidden": 1,
- "label": "Delivery Status",
- "no_copy": 1,
- "options": "Delivered\nNot Delivered\nPartly Delivered\nClosed\nNot Applicable",
- "print_hide": 1
- },
{
"doctype": "DocField",
"fieldname": "billing_status",
@@ -871,27 +896,6 @@
"options": "Billed\nNot Billed\nPartly Billed\nClosed",
"print_hide": 1
},
- {
- "description": "Display all the individual items delivered with the main items",
- "doctype": "DocField",
- "fieldname": "packing_list",
- "fieldtype": "Section Break",
- "hidden": 0,
- "label": "Packing List",
- "oldfieldtype": "Section Break",
- "print_hide": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "packing_details",
- "fieldtype": "Table",
- "label": "Packing Details",
- "oldfieldname": "packing_details",
- "oldfieldtype": "Table",
- "options": "Delivery Note Packing Item",
- "print_hide": 1,
- "read_only": 1
- },
{
"doctype": "DocField",
"fieldname": "sales_team_section_break",
@@ -900,13 +904,6 @@
"oldfieldtype": "Section Break",
"print_hide": 1
},
- {
- "doctype": "DocField",
- "fieldname": "column_break6",
- "fieldtype": "Column Break",
- "print_hide": 1,
- "width": "50%"
- },
{
"description": "Name as entered in Sales Partner master",
"doctype": "DocField",
diff --git a/stock/doctype/delivery_note/delivery_note.txt b/stock/doctype/delivery_note/delivery_note.txt
index f0731ce990..74a21b3a14 100644
--- a/stock/doctype/delivery_note/delivery_note.txt
+++ b/stock/doctype/delivery_note/delivery_note.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-05-24 19:29:09",
"docstatus": 0,
- "modified": "2013-06-05 14:47:47",
+ "modified": "2013-06-05 19:22:52",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -143,6 +143,37 @@
"oldfieldtype": "Column Break",
"read_only": 0
},
+ {
+ "allow_on_submit": 0,
+ "doctype": "DocField",
+ "fieldname": "amended_from",
+ "fieldtype": "Data",
+ "label": "Amended From",
+ "no_copy": 1,
+ "oldfieldname": "amended_from",
+ "oldfieldtype": "Data",
+ "print_hide": 1,
+ "print_width": "150px",
+ "read_only": 1,
+ "width": "150px"
+ },
+ {
+ "description": "Select the relevant company name if you have multiple companies",
+ "doctype": "DocField",
+ "fieldname": "company",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Company",
+ "oldfieldname": "company",
+ "oldfieldtype": "Link",
+ "options": "Company",
+ "print_hide": 1,
+ "print_width": "150px",
+ "read_only": 0,
+ "reqd": 1,
+ "search_index": 1,
+ "width": "150px"
+ },
{
"default": "Today",
"description": "The date at which current entry will get or has actually executed.",
@@ -212,111 +243,6 @@
"read_only": 1,
"width": "100px"
},
- {
- "doctype": "DocField",
- "fieldname": "items",
- "fieldtype": "Section Break",
- "label": "Items",
- "oldfieldtype": "Section Break",
- "read_only": 0
- },
- {
- "allow_on_submit": 1,
- "doctype": "DocField",
- "fieldname": "delivery_note_details",
- "fieldtype": "Table",
- "label": "Delivery Note Items",
- "no_copy": 0,
- "oldfieldname": "delivery_note_details",
- "oldfieldtype": "Table",
- "options": "Delivery Note Item",
- "print_hide": 0,
- "read_only": 0,
- "reqd": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "sales_bom_help",
- "fieldtype": "HTML",
- "label": "Sales BOM Help",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "section_break0",
- "fieldtype": "Section Break",
- "options": "Simple",
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "col_break24",
- "fieldtype": "Column Break",
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "net_total",
- "fieldtype": "Currency",
- "label": "Net Total*",
- "no_copy": 0,
- "oldfieldname": "net_total",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "print_hide": 1,
- "print_width": "150px",
- "read_only": 1,
- "reqd": 0,
- "width": "150px"
- },
- {
- "doctype": "DocField",
- "fieldname": "net_total_export",
- "fieldtype": "Currency",
- "label": "Net Total (Export)",
- "options": "currency",
- "read_only": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "recalculate_values",
- "fieldtype": "Button",
- "label": "Re-Calculate Values",
- "oldfieldtype": "Button",
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "col_break28",
- "fieldtype": "Column Break",
- "read_only": 0
- },
- {
- "description": "You can make a delivery note from multiple sales orders. Select sales orders one by one and click on the button below.",
- "doctype": "DocField",
- "fieldname": "sales_order_no",
- "fieldtype": "Link",
- "in_list_view": 1,
- "label": "Sales Order No",
- "no_copy": 0,
- "oldfieldname": "sales_order_no",
- "oldfieldtype": "Link",
- "options": "Sales Order",
- "print_hide": 0,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "get_items",
- "fieldtype": "Button",
- "hidden": 0,
- "label": "Get Items",
- "oldfieldtype": "Button",
- "options": "pull_sales_order_details",
- "print_hide": 1,
- "read_only": 0
- },
{
"doctype": "DocField",
"fieldname": "sec_break25",
@@ -324,6 +250,33 @@
"label": "Price List and Currency",
"read_only": 0
},
+ {
+ "description": "Customer's Currency",
+ "doctype": "DocField",
+ "fieldname": "currency",
+ "fieldtype": "Link",
+ "label": "Currency",
+ "oldfieldname": "currency",
+ "oldfieldtype": "Select",
+ "options": "Currency",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "default": "1.00",
+ "description": "Rate at which customer's currency is converted to company's base currency",
+ "doctype": "DocField",
+ "fieldname": "conversion_rate",
+ "fieldtype": "Float",
+ "label": "Conversion Rate",
+ "no_copy": 0,
+ "oldfieldname": "conversion_rate",
+ "oldfieldtype": "Currency",
+ "print_hide": 1,
+ "read_only": 0,
+ "reqd": 1
+ },
{
"doctype": "DocField",
"fieldname": "col_break23",
@@ -366,39 +319,123 @@
},
{
"doctype": "DocField",
- "fieldname": "column_break2",
- "fieldtype": "Column Break",
- "print_width": "50%",
- "read_only": 0,
- "width": "50%"
+ "fieldname": "items",
+ "fieldtype": "Section Break",
+ "label": "Items",
+ "oldfieldtype": "Section Break",
+ "read_only": 0
},
{
- "description": "Customer's Currency",
+ "allow_on_submit": 1,
"doctype": "DocField",
- "fieldname": "currency",
- "fieldtype": "Link",
- "label": "Currency",
- "oldfieldname": "currency",
- "oldfieldtype": "Select",
- "options": "Currency",
- "print_hide": 1,
- "read_only": 0,
- "reqd": 1
- },
- {
- "default": "1.00",
- "description": "Rate at which customer's currency is converted to company's base currency",
- "doctype": "DocField",
- "fieldname": "conversion_rate",
- "fieldtype": "Float",
- "label": "Conversion Rate",
+ "fieldname": "delivery_note_details",
+ "fieldtype": "Table",
+ "label": "Delivery Note Items",
"no_copy": 0,
- "oldfieldname": "conversion_rate",
- "oldfieldtype": "Currency",
- "print_hide": 1,
+ "oldfieldname": "delivery_note_details",
+ "oldfieldtype": "Table",
+ "options": "Delivery Note Item",
+ "print_hide": 0,
"read_only": 0,
"reqd": 1
},
+ {
+ "doctype": "DocField",
+ "fieldname": "packing_list",
+ "fieldtype": "Section Break",
+ "label": "Packing List",
+ "oldfieldtype": "Section Break",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "packing_details",
+ "fieldtype": "Table",
+ "label": "Packing Details",
+ "oldfieldname": "packing_details",
+ "oldfieldtype": "Table",
+ "options": "Delivery Note Packing Item",
+ "print_hide": 1,
+ "read_only": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "sales_bom_help",
+ "fieldtype": "HTML",
+ "label": "Sales BOM Help",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break0",
+ "fieldtype": "Section Break",
+ "options": "Simple",
+ "read_only": 0
+ },
+ {
+ "description": "You can make a delivery note from multiple sales orders. Select sales orders one by one and click on the button below.",
+ "doctype": "DocField",
+ "fieldname": "sales_order_no",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "Sales Order No",
+ "no_copy": 0,
+ "oldfieldname": "sales_order_no",
+ "oldfieldtype": "Link",
+ "options": "Sales Order",
+ "print_hide": 0,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "get_items",
+ "fieldtype": "Button",
+ "hidden": 0,
+ "label": "Get Items",
+ "oldfieldtype": "Button",
+ "options": "pull_sales_order_details",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "col_break24",
+ "fieldtype": "Column Break",
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "net_total_export",
+ "fieldtype": "Currency",
+ "label": "Net Total (Export)",
+ "options": "currency",
+ "read_only": 1
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "net_total",
+ "fieldtype": "Currency",
+ "label": "Net Total*",
+ "no_copy": 0,
+ "oldfieldname": "net_total",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "print_hide": 1,
+ "print_width": "150px",
+ "read_only": 1,
+ "reqd": 0,
+ "width": "150px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "recalculate_values",
+ "fieldtype": "Button",
+ "label": "Re-Calculate Values",
+ "oldfieldtype": "Button",
+ "read_only": 0
+ },
{
"doctype": "DocField",
"fieldname": "taxes",
@@ -419,6 +456,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_39",
+ "fieldtype": "Column Break"
+ },
{
"doctype": "DocField",
"fieldname": "get_charges",
@@ -428,6 +470,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_41",
+ "fieldtype": "Section Break"
+ },
{
"doctype": "DocField",
"fieldname": "other_charges",
@@ -439,6 +486,28 @@
"options": "Sales Taxes and Charges",
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "other_charges_calculation",
+ "fieldtype": "HTML",
+ "label": "Taxes and Charges Calculation",
+ "oldfieldtype": "HTML",
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_44",
+ "fieldtype": "Section Break"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "other_charges_total_export",
+ "fieldtype": "Currency",
+ "label": "Taxes and Charges Total (Export)",
+ "options": "company",
+ "print_hide": 1,
+ "read_only": 1
+ },
{
"doctype": "DocField",
"fieldname": "other_charges_total",
@@ -454,12 +523,8 @@
},
{
"doctype": "DocField",
- "fieldname": "other_charges_total_export",
- "fieldtype": "Currency",
- "label": "Taxes and Charges Total (Export)",
- "options": "company",
- "print_hide": 1,
- "read_only": 1
+ "fieldname": "column_break_47",
+ "fieldtype": "Column Break"
},
{
"doctype": "DocField",
@@ -470,14 +535,6 @@
"print_hide": 1,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "other_charges_calculation",
- "fieldtype": "HTML",
- "label": "Taxes and Charges Calculation",
- "oldfieldtype": "HTML",
- "read_only": 0
- },
{
"doctype": "DocField",
"fieldname": "totals",
@@ -487,56 +544,6 @@
"print_hide": 0,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "grand_total",
- "fieldtype": "Currency",
- "label": "Grand Total",
- "no_copy": 0,
- "oldfieldname": "grand_total",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "print_hide": 1,
- "print_width": "150px",
- "read_only": 1,
- "reqd": 0,
- "width": "150px"
- },
- {
- "doctype": "DocField",
- "fieldname": "rounded_total",
- "fieldtype": "Currency",
- "label": "Rounded Total",
- "no_copy": 0,
- "oldfieldname": "rounded_total",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "print_hide": 1,
- "print_width": "150px",
- "read_only": 1,
- "width": "150px"
- },
- {
- "description": "In Words will be visible once you save the Delivery Note.",
- "doctype": "DocField",
- "fieldname": "in_words",
- "fieldtype": "Data",
- "label": "In Words",
- "no_copy": 0,
- "oldfieldname": "in_words",
- "oldfieldtype": "Data",
- "print_hide": 1,
- "print_width": "200px",
- "read_only": 1,
- "width": "200px"
- },
- {
- "doctype": "DocField",
- "fieldname": "column_break3",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
- "read_only": 0
- },
{
"doctype": "DocField",
"fieldname": "grand_total_export",
@@ -580,6 +587,56 @@
"read_only": 1,
"width": "150px"
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break3",
+ "fieldtype": "Column Break",
+ "oldfieldtype": "Column Break",
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "grand_total",
+ "fieldtype": "Currency",
+ "label": "Grand Total",
+ "no_copy": 0,
+ "oldfieldname": "grand_total",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "print_hide": 1,
+ "print_width": "150px",
+ "read_only": 1,
+ "reqd": 0,
+ "width": "150px"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "rounded_total",
+ "fieldtype": "Currency",
+ "label": "Rounded Total",
+ "no_copy": 0,
+ "oldfieldname": "rounded_total",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "print_hide": 1,
+ "print_width": "150px",
+ "read_only": 1,
+ "width": "150px"
+ },
+ {
+ "description": "In Words will be visible once you save the Delivery Note.",
+ "doctype": "DocField",
+ "fieldname": "in_words",
+ "fieldtype": "Data",
+ "label": "In Words",
+ "no_copy": 0,
+ "oldfieldname": "in_words",
+ "oldfieldtype": "Data",
+ "print_hide": 1,
+ "print_width": "200px",
+ "read_only": 1,
+ "width": "200px"
+ },
{
"doctype": "DocField",
"fieldname": "terms_section_break",
@@ -599,6 +656,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break_59",
+ "fieldtype": "Column Break"
+ },
{
"doctype": "DocField",
"fieldname": "get_terms",
@@ -608,6 +670,11 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "doctype": "DocField",
+ "fieldname": "section_break_61",
+ "fieldtype": "Section Break"
+ },
{
"doctype": "DocField",
"fieldname": "terms",
@@ -625,15 +692,6 @@
"print_hide": 1,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "column_break4",
- "fieldtype": "Column Break",
- "print_hide": 1,
- "print_width": "50%",
- "read_only": 0,
- "width": "50%"
- },
{
"doctype": "DocField",
"fieldname": "transporter_name",
@@ -694,32 +752,6 @@
"label": "Contact Info",
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "col_break20",
- "fieldtype": "Column Break",
- "print_width": "50%",
- "read_only": 0,
- "width": "50%"
- },
- {
- "doctype": "DocField",
- "fieldname": "contact_person",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Contact Person",
- "options": "Contact",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "col_break21",
- "fieldtype": "Column Break",
- "print_width": "50%",
- "read_only": 0,
- "width": "50%"
- },
{
"doctype": "DocField",
"fieldname": "territory",
@@ -744,6 +776,24 @@
"read_only": 0,
"search_index": 1
},
+ {
+ "doctype": "DocField",
+ "fieldname": "col_break21",
+ "fieldtype": "Column Break",
+ "print_width": "50%",
+ "read_only": 0,
+ "width": "50%"
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "contact_person",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Contact Person",
+ "options": "Contact",
+ "print_hide": 1,
+ "read_only": 0
+ },
{
"description": "Filling in Additional Information about the Delivery Note will help you analyze your data better.",
"doctype": "DocField",
@@ -754,6 +804,52 @@
"print_hide": 1,
"read_only": 0
},
+ {
+ "description": "Track this Delivery Note against any Project",
+ "doctype": "DocField",
+ "fieldname": "project_name",
+ "fieldtype": "Link",
+ "in_filter": 1,
+ "label": "Project Name",
+ "oldfieldname": "project_name",
+ "oldfieldtype": "Link",
+ "options": "Project",
+ "read_only": 0,
+ "search_index": 1
+ },
+ {
+ "depends_on": "eval:doc.source == 'Campaign'",
+ "doctype": "DocField",
+ "fieldname": "campaign",
+ "fieldtype": "Link",
+ "label": "Campaign",
+ "oldfieldname": "campaign",
+ "oldfieldtype": "Link",
+ "options": "Campaign",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "source",
+ "fieldtype": "Select",
+ "label": "Source",
+ "oldfieldname": "source",
+ "oldfieldtype": "Select",
+ "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
+ "print_hide": 1,
+ "read_only": 0
+ },
+ {
+ "doctype": "DocField",
+ "fieldname": "column_break5",
+ "fieldtype": "Column Break",
+ "oldfieldtype": "Column Break",
+ "print_hide": 1,
+ "print_width": "50%",
+ "read_only": 0,
+ "width": "50%"
+ },
{
"description": "Time at which items were delivered from warehouse",
"doctype": "DocField",
@@ -771,19 +867,17 @@
"width": "100px"
},
{
- "default": "Draft",
"doctype": "DocField",
- "fieldname": "status",
+ "fieldname": "fiscal_year",
"fieldtype": "Select",
"in_filter": 1,
- "label": "Status",
- "no_copy": 1,
- "oldfieldname": "status",
+ "label": "Fiscal Year",
+ "oldfieldname": "fiscal_year",
"oldfieldtype": "Select",
- "options": "\nDraft\nSubmitted\nCancelled",
+ "options": "link:Fiscal Year",
"print_hide": 1,
"print_width": "150px",
- "read_only": 1,
+ "read_only": 0,
"reqd": 1,
"search_index": 1,
"width": "150px"
@@ -814,42 +908,6 @@
"read_only": 0,
"report_hide": 1
},
- {
- "description": "Track this Delivery Note against any Project",
- "doctype": "DocField",
- "fieldname": "project_name",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Project Name",
- "oldfieldname": "project_name",
- "oldfieldtype": "Link",
- "options": "Project",
- "read_only": 0,
- "search_index": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "source",
- "fieldtype": "Select",
- "label": "Source",
- "oldfieldname": "source",
- "oldfieldtype": "Select",
- "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "depends_on": "eval:doc.source == 'Campaign'",
- "doctype": "DocField",
- "fieldname": "campaign",
- "fieldtype": "Link",
- "label": "Campaign",
- "oldfieldname": "campaign",
- "oldfieldtype": "Link",
- "options": "Campaign",
- "print_hide": 1,
- "read_only": 0
- },
{
"allow_on_submit": 1,
"doctype": "DocField",
@@ -863,13 +921,26 @@
},
{
"doctype": "DocField",
- "fieldname": "column_break5",
- "fieldtype": "Column Break",
- "oldfieldtype": "Column Break",
+ "fieldname": "section_break_83",
+ "fieldtype": "Section Break"
+ },
+ {
+ "default": "Draft",
+ "doctype": "DocField",
+ "fieldname": "status",
+ "fieldtype": "Select",
+ "in_filter": 1,
+ "label": "Status",
+ "no_copy": 1,
+ "oldfieldname": "status",
+ "oldfieldtype": "Select",
+ "options": "\nDraft\nSubmitted\nCancelled",
"print_hide": 1,
- "print_width": "50%",
- "read_only": 0,
- "width": "50%"
+ "print_width": "150px",
+ "read_only": 1,
+ "reqd": 1,
+ "search_index": 1,
+ "width": "150px"
},
{
"depends_on": "eval:!doc.__islocal",
@@ -924,32 +995,9 @@
"read_only": 0
},
{
- "allow_on_submit": 0,
"doctype": "DocField",
- "fieldname": "amended_from",
- "fieldtype": "Data",
- "label": "Amended From",
- "no_copy": 1,
- "oldfieldname": "amended_from",
- "oldfieldtype": "Data",
- "print_hide": 1,
- "print_width": "150px",
- "read_only": 1,
- "width": "150px"
- },
- {
- "description": "The date at which current entry is corrected in the system.",
- "doctype": "DocField",
- "fieldname": "amendment_date",
- "fieldtype": "Date",
- "label": "Amendment Date",
- "no_copy": 1,
- "oldfieldname": "amendment_date",
- "oldfieldtype": "Date",
- "print_hide": 1,
- "print_width": "100px",
- "read_only": 0,
- "width": "100px"
+ "fieldname": "column_break_89",
+ "fieldtype": "Column Break"
},
{
"description": "Required only for sample item.",
@@ -985,72 +1033,6 @@
"oldfieldtype": "Text",
"read_only": 0
},
- {
- "description": "Select the relevant company name if you have multiple companies",
- "doctype": "DocField",
- "fieldname": "company",
- "fieldtype": "Link",
- "in_filter": 1,
- "label": "Company",
- "oldfieldname": "company",
- "oldfieldtype": "Link",
- "options": "Company",
- "print_hide": 1,
- "print_width": "150px",
- "read_only": 0,
- "reqd": 1,
- "search_index": 1,
- "width": "150px"
- },
- {
- "doctype": "DocField",
- "fieldname": "fiscal_year",
- "fieldtype": "Select",
- "in_filter": 1,
- "label": "Fiscal Year",
- "oldfieldname": "fiscal_year",
- "oldfieldtype": "Select",
- "options": "link:Fiscal Year",
- "print_hide": 1,
- "print_width": "150px",
- "read_only": 0,
- "reqd": 1,
- "search_index": 1,
- "width": "150px"
- },
- {
- "depends_on": "eval:!doc.__islocal",
- "doctype": "DocField",
- "fieldname": "cancel_reason",
- "fieldtype": "Data",
- "hidden": 0,
- "label": "Cancel Reason",
- "no_copy": 1,
- "oldfieldname": "cancel_reason",
- "oldfieldtype": "Data",
- "print_hide": 1,
- "read_only": 1
- },
- {
- "doctype": "DocField",
- "fieldname": "packing_list",
- "fieldtype": "Section Break",
- "label": "Packing List",
- "oldfieldtype": "Section Break",
- "print_hide": 1,
- "read_only": 0
- },
- {
- "doctype": "DocField",
- "fieldname": "packing_details",
- "fieldtype": "Table",
- "label": "Packing Details",
- "oldfieldname": "packing_details",
- "oldfieldtype": "Table",
- "options": "Delivery Note Packing Item",
- "print_hide": 1,
- "read_only": 1
- },
{
"doctype": "DocField",
"fieldname": "sales_team_section_break",
@@ -1060,15 +1042,6 @@
"print_hide": 1,
"read_only": 0
},
- {
- "doctype": "DocField",
- "fieldname": "column_break6",
- "fieldtype": "Column Break",
- "print_hide": 1,
- "print_width": "50%",
- "read_only": 0,
- "width": "50%"
- },
{
"doctype": "DocField",
"fieldname": "sales_partner",