1
0
forked from test/crm

Merge branch 'develop' into convert-to-deal

This commit is contained in:
Shariq Ansari 2025-02-21 14:57:21 +05:30 committed by GitHub
commit ea89f7adf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -190,6 +190,13 @@ function createDeal() {
if (deal.website && !deal.website.startsWith('http')) {
deal.website = 'https://' + deal.website
}
if (chooseExistingContact.value) {
deal['first_name'] = null
deal['last_name'] = null
deal['email'] = null
deal['mobile_no'] = null
} else deal['contact'] = null
createResource({
url: 'crm.fcrm.doctype.crm_deal.crm_deal.create_deal',
params: { args: deal },