mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 07:28:39 +00:00
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -292,6 +292,7 @@ class Quotation(SellingController):
|
|||||||
# update enquiry status
|
# update enquiry status
|
||||||
self.update_opportunity("Quotation")
|
self.update_opportunity("Quotation")
|
||||||
self.update_lead()
|
self.update_lead()
|
||||||
|
self.carry_forward_communication()
|
||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
if self.lost_reasons:
|
if self.lost_reasons:
|
||||||
@@ -303,6 +304,18 @@ class Quotation(SellingController):
|
|||||||
self.update_opportunity("Open")
|
self.update_opportunity("Open")
|
||||||
self.update_lead()
|
self.update_lead()
|
||||||
|
|
||||||
|
def carry_forward_communication(self):
|
||||||
|
from erpnext.crm.utils import copy_comments, link_communications
|
||||||
|
|
||||||
|
if not (
|
||||||
|
self.opportunity
|
||||||
|
and frappe.get_single_value("CRM Settings", "carry_forward_communication_and_comments")
|
||||||
|
):
|
||||||
|
return
|
||||||
|
|
||||||
|
copy_comments("Opportunity", self.opportunity, self)
|
||||||
|
link_communications("Opportunity", self.opportunity, self)
|
||||||
|
|
||||||
def print_other_charges(self, docname):
|
def print_other_charges(self, docname):
|
||||||
print_lst = []
|
print_lst = []
|
||||||
for d in self.get("taxes"):
|
for d in self.get("taxes"):
|
||||||
|
|||||||
Reference in New Issue
Block a user