123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 'use strict';
- /**
- * @ngdoc function
- * @name kasseApp.controller:AboutCtrl
- * @description
- * # AboutCtrl
- * Controller of the kasseApp
- */
- angular.module('pos')
- .controller('TemplatesCtrl', function ($scope, $routeParams) {
- $scope.buttonShow = true;
- $scope.height = 55;
- $scope.margin = 20;
- $scope.marginTop = 10;
-
- $scope.offset = parseInt($routeParams.offset, 10);
- $scope.count = 50;
-
-
- // Ränder: TRBL 15 9 3 10
- $scope.sellers = _.map(_.range($scope.offset, $scope.offset+$scope.count), function (num) {
- return (num).toString().padLeft('0', 3);
- });
- $scope.rows = _.map(_.range(12), function (num) {
- return num * 4;
- });
- $scope.rows2 = _.range(10);
- $scope.cols = _.range(4);
- $scope.articles = _.map(_.range(3, 60), function (num) {
- return num.toString().padLeft('0', 3);
- });
- $scope.barcodeClick = function () {
- JsBarcode(".barcode").init();
- $scope.buttonShow = false;
- };
- });
|