shopping cart fix

This commit is contained in:
Neil Trini Lasrado 2014-10-22 15:56:38 +05:30
parent f5b94143dc
commit d718c93726
12 changed files with 19 additions and 19 deletions

View File

@ -92,7 +92,7 @@
frappe.call({
btn: $(this),
type: "POST",
method: "shopping_cart.templates.pages.address.save_address",
method: "erpnext.templates.pages.address.save_address",
args: { fields: fields, address_fieldname: get_url_arg("address_fieldname") },
error_msg: "#address-error",
callback: function(r) {

View File

@ -19,7 +19,7 @@
;(function() {
var fetch_addresses = function() {
frappe.call({
method: "shopping_cart.templates.pages.addresses.get_addresses",
method: "erpnext.templates.pages.addresses.get_addresses",
callback: function(r) {
$("#address-list .progress").remove();
var $list = $("#address-list");

View File

@ -5,7 +5,7 @@ from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt, fmt_money
from shopping_cart.templates.utils import get_transaction_context
from erpnext.templates.utils import get_transaction_context
no_cache = 1
no_sitemap = 1

View File

@ -3,7 +3,7 @@
from __future__ import unicode_literals
import frappe
from shopping_cart.templates.utils import get_currency_context
from erpnext.templates.utils import get_currency_context
no_cache = 1
no_sitemap = 1
@ -12,7 +12,7 @@ def get_context(context):
invoices_context = get_currency_context()
invoices_context.update({
"title": "Invoices",
"method": "shopping_cart.templates.pages.invoices.get_invoices",
"method": "erpnext.templates.pages.invoices.get_invoices",
"icon": "icon-file-text",
"empty_list_message": "No Invoices Found",
"page": "invoice"
@ -21,8 +21,8 @@ def get_context(context):
@frappe.whitelist()
def get_invoices(start=0):
from shopping_cart.templates.utils import get_transaction_list
from shopping_cart.templates.pages.invoice import modify_status
from erpnext.templates.utils import get_transaction_list
from erpnext.templates.pages.invoice import modify_status
invoices = get_transaction_list("Sales Invoice", start, ["outstanding_amount"])
for d in invoices:
modify_status(d)

View File

@ -4,7 +4,7 @@
from __future__ import unicode_literals
import frappe
from frappe import _
from shopping_cart.templates.utils import get_transaction_context
from erpnext.templates.utils import get_transaction_context
no_cache = 1
no_sitemap = 1

View File

@ -3,8 +3,8 @@
from __future__ import unicode_literals
import frappe
from shopping_cart.templates.utils import get_currency_context, get_transaction_list
from shopping_cart.templates.pages.order import modify_status
from erpnext.templates.utils import get_currency_context, get_transaction_list
from erpnext.templates.pages.order import modify_status
no_cache = 1
no_sitemap = 1
@ -13,7 +13,7 @@ def get_context(context):
orders_context = get_currency_context()
orders_context.update({
"title": "My Orders",
"method": "shopping_cart.templates.pages.orders.get_orders",
"method": "erpnext.templates.pages.orders.get_orders",
"icon": "icon-list",
"empty_list_message": "No Orders Yet",
"page": "order",

View File

@ -3,7 +3,7 @@
from __future__ import unicode_literals
import frappe
from shopping_cart.templates.utils import get_transaction_context
from erpnext.templates.utils import get_transaction_context
no_cache = 1
no_sitemap = 1

View File

@ -3,7 +3,7 @@
from __future__ import unicode_literals
import frappe
from shopping_cart.templates.utils import get_currency_context
from erpnext.templates.utils import get_currency_context
no_cache = 1
no_sitemap = 1
@ -12,7 +12,7 @@ def get_context(context):
shipments_context = get_currency_context()
shipments_context.update({
"title": "Shipments",
"method": "shopping_cart.templates.pages.shipments.get_shipments",
"method": "erpnext.templates.pages.shipments.get_shipments",
"icon": "icon-truck",
"empty_list_message": "No Shipments Found",
"page": "shipment"
@ -21,5 +21,5 @@ def get_context(context):
@frappe.whitelist()
def get_shipments(start=0):
from shopping_cart.templates.utils import get_transaction_list
from erpnext.templates.utils import get_transaction_list
return get_transaction_list("Delivery Note", start)

View File

@ -90,7 +90,7 @@ $(document).ready(function() {
} else {
frappe.call({
type: "POST",
method: "shopping_cart.templates.pages.ticket.add_reply",
method: "erpnext.templates.pages.ticket.add_reply",
btn: this,
args: { ticket: "{{ doc.name }}", message: reply },
callback: function(r) {

View File

@ -65,7 +65,7 @@
} else {
frappe.call({
type: "POST",
method: "shopping_cart.templates.pages.tickets.make_new_ticket",
method: "erpnext.templates.pages.tickets.make_new_ticket",
btn: this,
args: { subject: subject, message: message },
callback: function(r) {

View File

@ -11,7 +11,7 @@ no_sitemap = 1
def get_context(context):
return {
"title": "My Tickets",
"method": "shopping_cart.templates.pages.tickets.get_tickets",
"method": "erpnext.templates.pages.tickets.get_tickets",
"icon": "icon-ticket",
"empty_list_message": "No Tickets Raised",
"page": "ticket"

View File

@ -34,7 +34,7 @@ $(document).ready(function() {
$("#fullname").val(getCookie("full_name") || "");
$("#update_user").click(function() {
frappe.call({
method: "shopping_cart.templates.pages.user.update_user",
method: "erpnext.templates.pages.user.update_user",
type: "POST",
args: {
fullname: $("#fullname").val(),