mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
install, web serving, session booting webnotes/wnframework#351
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user