namibia
Diff Revisions
da65b1 ...
vs
3a6b5b ...
for module/Auction/src/Auction/Service/Auction.php
|
@@ -560,9 +560,15 @@ |
560 |
560 |
|
$this->workflowNode->setJob($item); |
561 |
561 |
|
try |
562 |
562 |
|
{ |
|
563 |
+ |
\Utility\Debug::errorLog('currentbid',$item->currentBid->amount); |
|
564 |
+ |
\Utility\Debug::errorLog('reserve',$item->reservePrice); |
|
565 |
+ |
|
563 |
566 |
|
if (!is_null($item->currentBid) && $item->currentBid->amount > $item->reservePrice) |
564 |
567 |
|
{ |
565 |
568 |
|
#-> We have a winner. |
|
569 |
+ |
\Utility\Debug::errorLog('Winner',$item->id); |
|
570 |
+ |
|
|
571 |
+ |
|
566 |
572 |
|
$item->soldToCompany = $item->currentBid->company; |
567 |
573 |
|
$item->soldToProfile = $item->currentBid->profile; |
568 |
574 |
|
$this->workflowNode->changeState('This.Sold'); |
|
@@ -570,6 +576,7 @@ |
570 |
576 |
|
else |
571 |
577 |
|
{ |
572 |
578 |
|
#-> Each and every one a loser. |
|
579 |
+ |
\Utility\Debug::errorLog('no winner',$item->id); |
573 |
580 |
|
$this->workflowNode->changeState('This.Relist'); |
574 |
581 |
|
} |
575 |
582 |
|
} |
|
@@ -591,6 +598,7 @@ |
591 |
598 |
|
{ |
592 |
599 |
|
try |
593 |
600 |
|
{ |
|
601 |
+ |
\Utility\Debug::errorLog('setting data for mail',$item->id); |
594 |
602 |
|
|
595 |
603 |
|
#-> General data prep. |
596 |
604 |
|
$vehicle = $item->stock->type->model->make->name |
|
@@ -599,8 +607,15 @@ |
599 |
607 |
|
$currPrefix = \Utility\Definitions\Locale::getCurrencyPrefix() . ' '; |
600 |
608 |
|
$oNotify = new \Utility\Comms\Notification(); |
601 |
609 |
|
|
|
610 |
+ |
\Utility\Debug::errorLog('jobstate',$item->jobState); |
|
611 |
+ |
\Utility\Debug::errorLog('currentbid',$item->currentBid->amount); |
|
612 |
+ |
\Utility\Debug::errorLog('reserve',$item->reservePrice); |
|
613 |
+ |
|
602 |
614 |
|
if (!is_null($item->currentBid) && $item->currentBid->amount > $item->reservePrice && 'Sold' == $item->jobState) |
603 |
615 |
|
{ |
|
616 |
+ |
\Utility\Debug::errorLog('sending mails',$item->jobState); |
|
617 |
+ |
|
|
618 |
+ |
|
604 |
619 |
|
#-> Update record to reflect winner. |
605 |
620 |
|
$item->soldToCompany = $item->currentBid->company; |
606 |
621 |
|
$item->soldToProfile = $item->currentBid->profile; |