install, web serving, session booting webnotes/wnframework#351

This commit is contained in:
Rushabh Mehta
2013-12-12 19:12:19 +05:30
parent d2dd83c3a3
commit 1f84799f2d
199 changed files with 583 additions and 512 deletions

View File

@@ -7,7 +7,7 @@ $(document).ready(function() {
erpnext.cart.bind_events();
return wn.call({
type: "POST",
method: "selling.utils.cart.get_cart_quotation",
method: "erpnext.selling.utils.cart.get_cart_quotation",
callback: function(r) {
$("#cart-container").removeClass("hide");
$(".progress").remove();
@@ -193,7 +193,7 @@ $.extend(erpnext.cart, {
return wn.call({
btn: btn,
type: "POST",
method: "selling.utils.cart.apply_shipping_rule",
method: "erpnext.selling.utils.cart.apply_shipping_rule",
args: { shipping_rule: rule },
callback: function(r) {
if(!r.exc) {
@@ -241,7 +241,7 @@ $.extend(erpnext.cart, {
return wn.call({
type: "POST",
method: "selling.utils.cart.update_cart_address",
method: "erpnext.selling.utils.cart.update_cart_address",
args: {
address_fieldname: $address_wrapper.attr("data-fieldname"),
address_name: $(this).attr("data-address-name")
@@ -272,7 +272,7 @@ $.extend(erpnext.cart, {
place_order: function(btn) {
return wn.call({
type: "POST",
method: "selling.utils.cart.place_order",
method: "erpnext.selling.utils.cart.place_order",
btn: btn,
callback: function(r) {
if(r.exc) {

View File

@@ -10,7 +10,7 @@ no_cache = True
no_sitemap = True
def get_context():
from selling.utils.cart import get_lead_or_customer
from erpnext.selling.utils.cart import get_lead_or_customer
party = get_lead_or_customer()
if party.doctype == "Lead":
mobile_no = party.mobile_no
@@ -27,7 +27,7 @@ def get_context():
@webnotes.whitelist()
def update_profile(fullname, password=None, company_name=None, mobile_no=None, phone=None):
from selling.utils.cart import update_party
from erpnext.selling.utils.cart import update_party
update_party(fullname, company_name, mobile_no, phone)
if not fullname:

View File

@@ -67,11 +67,11 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
if subject=="Support":
# create support ticket
from support.doctype.support_ticket.get_support_mails import add_support_communication
from erpnext.support.doctype.support_ticket.get_support_mails import add_support_communication
add_support_communication(subject, message, sender, mail=None)
else:
# make lead / communication
from selling.doctype.lead.get_leads import add_sales_communication
from erpnext.selling.doctype.lead.get_leads import add_sales_communication
add_sales_communication(subject or "Website Query", message, sender, sender,
mail=None, status=status)