Fix #301 -- Add net revenue to sales overview (#313)

This commit is contained in:
Tobias Kunze
2016-11-10 22:24:43 +01:00
committed by Raphael Michel
parent 5999604e8e
commit 2f0c7c0ebc
5 changed files with 53 additions and 41 deletions
+4 -2
View File
@@ -74,10 +74,12 @@ $(function () {
}
$("#sumtoggle").find("button").click(function () {
$(".table-product-overview .sum").toggle($(this).attr("data-target") === ".sum");
$(".table-product-overview .sum-gross").toggle($(this).attr("data-target") === ".sum-gross");
$(".table-product-overview .sum-net").toggle($(this).attr("data-target") === ".sum-net");
$(".table-product-overview .count").toggle($(this).attr("data-target") === ".count");
$("#sumtoggle").find("button").not($(this)).removeClass("active");
$(this).addClass("active");
$(".table-product-overview .count").toggle($(this).attr("data-target") === ".count");
});
$('.collapsible').collapse();
+2 -2
View File
@@ -12,7 +12,7 @@
th:not(:first-child) {
text-align: right;
}
span.sum {
span.sum-net, span.sum-gross {
display: none;
}
}
@@ -29,4 +29,4 @@
p:last-child {
margin-bottom: 0;
}
}
}