mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 04:15:10 +00:00
fix: Removed submitted status from quotation (#18054)
* fix: Change in list view and status updater * fix: Change status in doctype * fix: Patch for submitted status
This commit is contained in:
@@ -27,7 +27,7 @@ status_map = {
|
||||
],
|
||||
"Quotation": [
|
||||
["Draft", None],
|
||||
["Submitted", "eval:self.docstatus==1"],
|
||||
["Open", "eval:self.docstatus==1"],
|
||||
["Lost", "eval:self.status=='Lost'"],
|
||||
["Ordered", "has_sales_order"],
|
||||
["Cancelled", "eval:self.docstatus==2"],
|
||||
|
||||
@@ -601,4 +601,5 @@ execute:frappe.delete_doc("Report", "Inactive Items")
|
||||
erpnext.patches.v11_1.delete_scheduling_tool
|
||||
erpnext.patches.v11_1.update_bank_transaction_status
|
||||
erpnext.patches.v11_1.renamed_delayed_item_report
|
||||
erpnext.patches.v11_1.set_missing_opportunity_from
|
||||
erpnext.patches.v11_1.set_missing_opportunity_from
|
||||
erpnext.patches.v11_1.set_quotation_status
|
||||
7
erpnext/patches/v11_1/set_quotation_status.py
Normal file
7
erpnext/patches/v11_1/set_quotation_status.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
|
||||
frappe.db.sql(""" UPDATE `tabQuotation` set status = 'Open'
|
||||
where docstatus = 1 and status = 'Submitted' """)
|
||||
@@ -3096,7 +3096,7 @@
|
||||
"no_copy": 1,
|
||||
"oldfieldname": "status",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "Draft\nSubmitted\nOrdered\nLost\nCancelled\nOpen\nReplied",
|
||||
"options": "Draft\nOpen\nReplied\nOrdered\nLost\nCancelled",
|
||||
"permlevel": 0,
|
||||
"print_hide": 1,
|
||||
"print_hide_if_no_value": 0,
|
||||
@@ -3224,7 +3224,7 @@
|
||||
"istable": 0,
|
||||
"max_attachments": 1,
|
||||
"menu_index": 0,
|
||||
"modified": "2019-05-11 19:26:50.735628",
|
||||
"modified": "2019-06-25 15:31:04.724730",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "Quotation",
|
||||
|
||||
@@ -13,11 +13,11 @@ frappe.listview_settings['Quotation'] = {
|
||||
},
|
||||
|
||||
get_indicator: function(doc) {
|
||||
if(doc.status==="Submitted") {
|
||||
if(doc.status==="Open") {
|
||||
if (doc.valid_till && doc.valid_till < frappe.datetime.nowdate()) {
|
||||
return [__("Expired"), "darkgrey", "valid_till,<," + frappe.datetime.nowdate()];
|
||||
} else {
|
||||
return [__("Submitted"), "blue", "status,=,Submitted"];
|
||||
return [__("Open"), "orange", "status,=,Open"];
|
||||
}
|
||||
} else if(doc.status==="Ordered") {
|
||||
return [__("Ordered"), "green", "status,=,Ordered"];
|
||||
|
||||
Reference in New Issue
Block a user