debug: click to refresh when creating auction
authorMark <mark@nirph.com>
Mon, 19 Dec 2016 09:12:16 +0000 (11:12 +0200)
committerMark <mark@nirph.com>
Mon, 19 Dec 2016 09:12:16 +0000 (11:12 +0200)
module/Auction/src/Auction/Service/Auction.php
public/js/app/api.js

index 22da77e..588627e 100644 (file)
@@ -21,6 +21,7 @@ class Auction extends \Auction\DataBin\Auction
                \Stock\Entity\Stock $stock, $previousState, array $routingData = array()
        )
        {
                \Stock\Entity\Stock $stock, $previousState, array $routingData = array()
        )
        {
+               \Utility\Debug::errorLog('initNewItemFromStock' , $stock);
                #-> Establish initial increment value.
                $increments = $this->em
                        ->getRepository('\Auction\Entity\Increment')
                #-> Establish initial increment value.
                $increments = $this->em
                        ->getRepository('\Auction\Entity\Increment')
@@ -36,7 +37,7 @@ class Auction extends \Auction\DataBin\Auction
                }
                #-> Create auction entry.
                if (isset($routingData['profileId']))
                }
                #-> Create auction entry.
                if (isset($routingData['profileId']))
-               {
+               {\Utility\Debug::errorLog('reroute1' , "true");
                        $profile    = $this->em->find('User\\Entity\\Profile', $routingData['profileId']);
                        $email      = $profile->email;
                        $firstName  = $profile->firstName;
                        $profile    = $this->em->find('User\\Entity\\Profile', $routingData['profileId']);
                        $email      = $profile->email;
                        $firstName  = $profile->firstName;
@@ -47,7 +48,7 @@ class Auction extends \Auction\DataBin\Auction
                        $profile    = $profile->id;
                }
                else
                        $profile    = $profile->id;
                }
                else
-               {
+               {\Utility\Debug::errorLog('reroute1' , "false");
                        $authData   = \Utility\Registry::getAuthData();
                        $email      = $authData['email'];
                        $firstName  = $authData['firstName'];
                        $authData   = \Utility\Registry::getAuthData();
                        $email      = $authData['email'];
                        $firstName  = $authData['firstName'];
@@ -79,7 +80,7 @@ class Auction extends \Auction\DataBin\Auction
                $stock->highestBid  = 0.00;
                $stock->timesListed = $stats['numAuctions'];
                $this->em->flush($stock);
                $stock->highestBid  = 0.00;
                $stock->timesListed = $stats['numAuctions'];
                $this->em->flush($stock);
-
+               \Utility\Debug::errorLog('created stock' , "true");
                #-> Send loaded notification.
                #-> Attachments.
                $pdf = new \Auction\Pdf\Complete();
                #-> Send loaded notification.
                #-> Attachments.
                $pdf = new \Auction\Pdf\Complete();
index f2f7eb6..1329f97 100644 (file)
         */
                execTask: function( id, data, options, callback, errorCallback, method, direct )
                {
         */
                execTask: function( id, data, options, callback, errorCallback, method, direct )
                {
-                       console.log('executetask',data);
                        if (!this.taskContracts[id])
                        {
                                console.log('! No contract for: ' + id);
                        if (!this.taskContracts[id])
                        {
                                console.log('! No contract for: ' + id);