Rendu: {{ -1*(CurrentSellingTotal() - paidAmount) }} €
diff --git a/app/Resources/views/logged/caisse-main.html.twig b/app/Resources/views/logged/caisse-main.html.twig
index 033cb7e4..09852e16 100755
--- a/app/Resources/views/logged/caisse-main.html.twig
+++ b/app/Resources/views/logged/caisse-main.html.twig
@@ -14,28 +14,5 @@
{% endverbatim %}
{% include 'logged/angular/loaded-caisse.html.twig' %}
{% verbatim %}
-
-
-
- Visibilité des
- {{categories.length - categoriesVisibleCount() }} /
- {{ categories.length }} catégories
-
-
-
- {{ c.name }}
-
- (caché)
-
-
-
-
-
-
-Aucune catégorie enregistrée
-
{% endverbatim %}
diff --git a/assets/css/pages/_dashboard.scss b/assets/css/pages/_dashboard.scss
index a52d06d9..58ae3ff8 100755
--- a/assets/css/pages/_dashboard.scss
+++ b/assets/css/pages/_dashboard.scss
@@ -14,9 +14,11 @@
.listing-products {
+ button.active{
+ background: yellowgreen;
+ }
.btn, button {
font-size: 1.6rem;
- background: white;
padding: 1.5rem;
-webkit-border-radius: 1rem;
-moz-border-radius: 1rem;
@@ -69,6 +71,12 @@
//vertical-align: top;
white-space: nowrap;
//float: left;
+ h2{
+ font-weight: bold;
+ &:first-letter{
+ text-transform: capitalize;
+ }
+ }
}
.category-listing {
diff --git a/assets/css/pages/responsive.scss b/assets/css/pages/responsive.scss
index 3bb190f2..3dbe5de8 100755
--- a/assets/css/pages/responsive.scss
+++ b/assets/css/pages/responsive.scss
@@ -27,6 +27,11 @@
#caisse-now {
.product-box {
width: 100%;
+ &.active{
+ .product-button{
+ background: greenyellow;
+ }
+ }
}
.product-button {
diff --git a/assets/js/parts/caisseCtrl.js b/assets/js/parts/caisseCtrl.js
index 8908095a..e69de29b 100755
--- a/assets/js/parts/caisseCtrl.js
+++ b/assets/js/parts/caisseCtrl.js
@@ -1 +0,0 @@
-console.log('hi from caisse ctrl')
diff --git a/assets/js/parts/main.js b/assets/js/parts/main.js
index bfb610d4..4a81e101 100755
--- a/assets/js/parts/main.js
+++ b/assets/js/parts/main.js
@@ -8,7 +8,6 @@ require('bootstrap-sass');
// require('bootstrap-sass/javascripts/bootstrap/popover');
require('./globalActions');
-require('./caisseCtrl');
require('./dashboard');
var PrevisionnelCtrl = require('./previsionnel');
@@ -86,6 +85,7 @@ angular
}
});
$scope.activeSellingFiltered = soldObjectsIdsCount;
+ $scope.setRightAmountPaid();
}
/**
@@ -137,6 +137,7 @@ angular
*/
$scope.addProduct = function (product) {
product.stockCount--;
+ product.enabled = true;
$scope.activeSelling.push(product);
$scope.activeItemsSold.push(product.id);
$scope.regenActiveSellingIds();
@@ -167,7 +168,12 @@ angular
$scope.refreshDeduplicateSellings();
}
$scope.removeAll = function () {
+$scope.categories.forEach(category => {
+ category.products.forEach(product => {
+ product.enabled = false
+ })
+});
$scope.activeSelling = [];
$scope.regenActiveSellingIds();
$scope.refreshDeduplicateSellings();