Emmmanuel FIADUFE

Emmmanuel FIADUFE

  • 780
  • 1.1k
  • 55.6k

Date not loading on the receipt header in my AngularJS controller

Feb 8 2024 3:02 PM

function GetAllPrintSalesRecord() {           
            const urlParams = new URLSearchParams(window.location.search);          
            const OrderNo = urlParams.get('OrderNo');
         
           .then(function (response) {
               var data = response.data.modifiedData;
               $scope.PrintSalesRecordList = data;
               $scope.OrderDate = response.data.OrderDate;
               $scope.Total = response.data.total;
               $scope.DiscountTotal = response.data.discount;
               $scope.VatTotal = response.data.tax;
              
               if ($scope.$$phase) {
                   $scope.$apply();
               }


Answers (4)