This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- if doc.meta.is_submittable and doc.docstatus==0-%} | |
<div class="alert alert-info text-center"> | |
<h4 style="margin: 0px;">{{ _("DRAFT") }}</h4></div> | |
{%- endif -%} | |
<style> | |
.print-format table, .print-format tr, | |
.print-format td, .print-format div, .print-format p { | |
font-family: Monospace; | |
line-height: 200%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frappe.provide('frappe.pages'); | |
frappe.provide('frappe.views'); | |
frappe.provide('sample_register'); | |
frappe.require("assets/frappe/js/lib/slickgrid/slick.grid.js"); | |
frappe.require("assets/frappe/js/lib/slickgrid/slick.grid.css"); | |
frappe.require("assets/frappe/js/lib/slickgrid/slick.core.js"); | |
frappe.require("assets/frappe/js/lib/slickgrid/slick.editors.js"); | |
frappe.require("assets/frappe/js/lib/slickgrid/slick.formatters.js"); | |
frappe.require("assets/frappe/js/lib/slickgrid/plugins/slick.checkboxselectcolumn.js"); | |
frappe.require("assets/frappe/js/lib/slickgrid/plugins/slick.rowselectionmodel.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frappe.ui.form.on("Quotation", "refresh", function(frm, doctype, name) { | |
cur_frm.add_custom_button(__('Add Interaction'), function() { | |
var d = frappe.prompt([ | |
{label:__("Type of Interaction"), fieldtype:"Select", | |
options: ["SMS", "Call", "Visit", "Webex"], | |
fieldname:"type_of_interaction"}, | |
{label:__("Result"), fieldtype:"Select", options: ["Status Quo", "Warmer", "Colder"], fieldname:"result"}, | |
{fieldtype: "Column Break"}, | |
{'fieldname': 'responce_reson', 'fieldtype': 'Data', 'label': 'Responce Reson', 'reqd': 0}, | |
{'fieldname': 'next_date', 'fieldtype': 'Date', 'label': 'Next Action Date', 'reqd': 0}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frappe.require("assets/erp_customization/js/slick/lib/firebugx.js"); | |
frappe.require("assets/erp_customization/js/slick/plugins/slick.cellrangedecorator.js"); | |
frappe.require("assets/erp_customization/js/slick/plugins/slick.cellrangeselector.js"); | |
frappe.require("assets/erp_customization/js/slick/plugins/slick.cellselectionmodel.js"); | |
frappe.require("assets/erp_customization/js/slick/slick.formatters.js"); | |
frappe.require("assets/erp_customization/js/slick/slick.editors.js"); | |
frappe.require("assets/erp_customization/js/slick/slick.grid.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// contributed by supplify.com | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once '../curl/Zebra_cURL.php'; | |
require_once '../app/Mage.php'; | |
Mage::app(); | |
class action extends Zebra_cURL{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cur_frm.add_fetch('contact1','email_id','contact_email_i'); | |
cur_frm.add_fetch('contact2','email_id','contact_email_ii'); | |
cur_frm.add_fetch('contact3','email_id','contact_email_iii'); | |
frappe.views.CommunicationComposer = frappe.views.CommunicationComposer.extend({ | |
make_fun: function(){ | |
var me = this; | |
var content_field = me.dialog.fields_dict.content; | |
var subject_field = me.dialog.fields_dict.subject; | |
var recipients_field = me.dialog.fields_dict.recipients; | |
var rec = me.dialog.fields_dict.recipients.get_value(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals | |
import frappe | |
from frappe.widgets.reportview import get_match_cond | |
from frappe.utils import add_days, cint, cstr, date_diff, rounded, flt, getdate, nowdate, \ | |
get_first_day, get_last_day,money_in_words, now, nowtime | |
#from frappe.utils import add_days, cint, cstr, flt, getdate, nowdate, rounded | |
from frappe import _ | |
from frappe.model.db_query import DatabaseQuery | |
from requests_oauthlib import OAuth1 as OAuth | |
from datetime import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add interaction | |
frappe.ui.form.on("Quotation", "refresh", function(frm, doctype, name) { | |
cur_frm.add_custom_button(__('Add Meeting Details'), function() { | |
cur_frm.cscript.convert_to_group(); }, "icon-exclamation", "btn-default"); | |
cur_frm.cscript.convert_to_group = function(doc, cdt, cdn) { | |
var d = new frappe.ui.Dialog({ | |
title:__('Type of Interaction'), |