[fix] cart and general leger report
diff --git a/erpnext/templates/includes/cart.js b/erpnext/templates/includes/cart.js
index 4b70173..b6f36e6 100644
--- a/erpnext/templates/includes/cart.js
+++ b/erpnext/templates/includes/cart.js
@@ -8,7 +8,8 @@
$.extend(shopping_cart, {
show_error: function(title, text) {
- $("#cart-container").html('<div class="msg-box"><h4>' + title + '</h4> ' + text + '</div>');
+ $("#cart-container").html('<div class="msg-box"><h4>' +
+ title + '</h4><p class="text-muted">' + text + '</p></div>');
},
bind_events: function() {
@@ -56,7 +57,7 @@
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 @@
$(".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();