diff --git a/erpnext/accounts/report/general_ledger/general_ledger.js b/erpnext/accounts/report/general_ledger/general_ledger.js
index 7cc990ca9f9..e9fbb418eee 100644
--- a/erpnext/accounts/report/general_ledger/general_ledger.js
+++ b/erpnext/accounts/report/general_ledger/general_ledger.js
@@ -53,13 +53,9 @@ frappe.query_reports["General Ledger"] = {
{
"fieldname":"party_type",
"label": __("Party Type"),
- "fieldtype": "Link",
- "options": "DocType",
- "get_query": function() {
- return {
- filters: {"name": ["in", ["Customer", "Supplier"]]}
- }
- }
+ "fieldtype": "Select",
+ "options": ["Customer", "Supplier"],
+ "default": "Customer"
},
{
"fieldname":"party",
diff --git a/erpnext/templates/includes/cart.js b/erpnext/templates/includes/cart.js
index 4b7017341af..b6f36e67a8c 100644
--- a/erpnext/templates/includes/cart.js
+++ b/erpnext/templates/includes/cart.js
@@ -8,7 +8,8 @@ frappe.provide("shopping_cart");
$.extend(shopping_cart, {
show_error: function(title, text) {
- $("#cart-container").html('
' + title + '
' + text + '');
+ $("#cart-container").html('' +
+ title + '
' + text + '
');
},
bind_events: function() {
@@ -56,7 +57,7 @@ $.extend(shopping_cart, {
var no_items = $.map(doc.items || [],
function(d) { return d.item_code || null;}).length===0;
if(no_items) {
- shopping_cart.show_error("Empty :-(", frappe._("Go ahead and add something to your cart."));
+ shopping_cart.show_error("Cart Empty", frappe._("Go ahead and add something to your cart."));
$("#cart-addresses").toggle(false);
return;
}
@@ -281,11 +282,11 @@ $(document).ready(function() {
$(".progress").remove();
if(r.exc) {
if(r.exc.indexOf("WebsitePriceListMissingError")!==-1) {
- shopping_cart.show_error("Oops!", frappe._("Price List not configured."));
+ shopping_cart.show_error("Configuration Error", frappe._("Price List not configured."));
} else if(r["403"]) {
- shopping_cart.show_error("Hey!", frappe._("You need to be logged in to view your cart."));
+ shopping_cart.show_error("Not Allowed", frappe._("You need to be logged in to view your cart."));
} else {
- shopping_cart.show_error("Oops!", frappe._("Something went wrong."));
+ shopping_cart.show_error("Error", frappe._("Something went wrong."));
}
} else {
shopping_cart.set_cart_count();
diff --git a/erpnext/templates/pages/cart.html b/erpnext/templates/pages/cart.html
index 07e956027dd..2ffdd5e68da 100644
--- a/erpnext/templates/pages/cart.html
+++ b/erpnext/templates/pages/cart.html
@@ -1,6 +1,6 @@
{% block title %} {{ "Shopping Cart" }} {% endblock %}
-{% block header %} Shopping Cart
{% endblock %}
+{% block header %}{{ _("My Cart") }}
{% endblock %}
{% block script %}{% include "templates/includes/cart.js" %}{% endblock %}
@@ -8,17 +8,18 @@
{{ _("Loading") }}...
-
+
-
Item Details
+
{{ _("Item Details") }}
-
Qty, Amount
+
{{ _("Qty, Amount") }}
@@ -30,26 +31,26 @@
-
Shipping Address
+
{{ _("Shipping Address") }}
+
{{ _("New Shipping Address") }}
Billing Address
+
{{ _("New Billing Address") }}
-
+
{% endblock %}
-