Browse Source

Fehler in Datum

Robert Bedner 2 years ago
parent
commit
789e87fe14
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/controllers/pos.js

+ 2 - 2
scripts/controllers/pos.js

@@ -33,7 +33,7 @@ angular.module('pos')
                     'invoice_number': "",
                     'project_id': $scope.postParams.project_id,
                     'pos_id': $scope.postParams.pos_id,
-                    'invoice_date': moment(),
+                    'invoice_date': moment().add(2, 'hours'),
                     'cashier': $scope.postParams.cashier,
                     'last_line_number': 1,
                     'line_count': 0,
@@ -292,7 +292,7 @@ angular.module('pos')
 
             $scope.currentInvoice.cashier = $scope.postParams.cashier;
             $scope.currentInvoice.line_count = $scope.currentInvoice.details.length;
-            $scope.currentInvoice.invoice_date = moment();
+            $scope.currentInvoice.invoice_date = moment().add(2, 'hours');
             $scope.currentInvoice.valid = true;
             return true;
         };