-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #895 from inbaz/develop
Develop
- Loading branch information
Showing
23 changed files
with
2,386 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<?php | ||
|
||
return array( | ||
/*return array( | ||
'ERS\SEPA' => array( | ||
'iban' => 'NL84 INGB 0007 8721 92', | ||
'bic' => 'INGBNL2A', | ||
'owner' => 'STICHTING EUROPEAN JUGGLING ASSOCIATION', | ||
'bank' => 'ING BANK N.V.', | ||
'country' => 'Netherlands', | ||
) | ||
); | ||
);*/ | ||
return array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,8 @@ private function createMatch(Entity\BankStatement $statement, Entity\Code $code) | |
$paid = true; | ||
echo $matchInfo." (exact)".PHP_EOL; | ||
} elseif($order_amount < $statement_amount) { | ||
$paid = true; | ||
#$paid = true; | ||
$paid = false; | ||
echo $matchInfo." (overpaid)".PHP_EOL; | ||
} else { | ||
$paid = false; | ||
|
@@ -490,10 +491,15 @@ public function sendEticketsAction() { | |
} | ||
echo PHP_EOL; | ||
|
||
$config = $emailService = $this->getServiceLocator() | ||
->get('config'); | ||
|
||
foreach($packages as $package) { | ||
# prepare email (participant, buyer) | ||
$emailService = new Service\EmailService(); | ||
$emailService->setFrom('[email protected]'); | ||
#$emailService = new Service\EmailService(); | ||
$emailService = $this->getServiceLocator() | ||
->get('ErsBase\Service\EmailService'); | ||
$emailService->setFrom($config['ERS']['info_mail']); | ||
|
||
$order = $package->getOrder(); | ||
$participant = $package->getParticipant(); | ||
|
@@ -512,10 +518,10 @@ public function sendEticketsAction() { | |
$emailService->addTo($user);*/ | ||
|
||
$bcc = new Entity\User(); | ||
$bcc->setEmail('[email protected]'); | ||
$bcc->setEmail($config['ERS']['info_mail']); | ||
$emailService->addBcc($bcc); | ||
|
||
$subject = "[EJC 2016] E-Ticket for ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")"; | ||
$subject = "[".$config['ERS']['name_short']."] "._('E-Ticket for')." ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")"; | ||
$emailService->setSubject($subject); | ||
|
||
$viewModel = new ViewModel(array( | ||
|
@@ -895,10 +901,15 @@ public function sorryEticketSepaAction() { | |
$packages = $qb->getQuery()->getResult(); | ||
echo "found ".count($packages)." packages.".PHP_EOL; | ||
|
||
$config = $emailService = $this->getServiceLocator() | ||
->get('config'); | ||
|
||
foreach($packages as $package) { | ||
# prepare email (participant, buyer) | ||
$emailService = new Service\EmailService(); | ||
$emailService->setFrom('[email protected]'); | ||
#$emailService = new Service\EmailService(); | ||
$emailService = $this->getServiceLocator() | ||
->get('ErsBase\Service\EmailService'); | ||
$emailService->setFrom($config['ERS']['info_mail']); | ||
|
||
$order = $package->getOrder(); | ||
$participant = $package->getParticipant(); | ||
|
@@ -918,10 +929,10 @@ public function sorryEticketSepaAction() { | |
$emailService->addTo($user);*/ | ||
|
||
$bcc = new Entity\User(); | ||
$bcc->setEmail('[email protected]'); | ||
$bcc->setEmail($config['ERS']['info_mail']); | ||
$emailService->addBcc($bcc); | ||
|
||
$subject = "[EJC 2016] Your E-Ticket is not valid for ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")"; | ||
$subject = "[".$config['ERS']['name_short']."] Your E-Ticket is not valid for ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")"; | ||
$emailService->setSubject($subject); | ||
|
||
$viewModel = new ViewModel(array( | ||
|
@@ -961,10 +972,15 @@ public function sorryEticketCcAction() { | |
$packages = $qb->getQuery()->getResult(); | ||
echo "found ".count($packages)." packages.".PHP_EOL; | ||
|
||
$config = $emailService = $this->getServiceLocator() | ||
->get('config'); | ||
|
||
foreach($packages as $package) { | ||
# prepare email (participant, buyer) | ||
$emailService = new Service\EmailService(); | ||
$emailService->setFrom('[email protected]'); | ||
#$emailService = new Service\EmailService(); | ||
$emailService = $this->getServiceLocator() | ||
->get('ErsBase\Service\EmailService'); | ||
$emailService->setFrom($config['ERS']['info_mail']); | ||
|
||
$order = $package->getOrder(); | ||
$participant = $package->getParticipant(); | ||
|
@@ -984,10 +1000,10 @@ public function sorryEticketCcAction() { | |
$emailService->addTo($user);*/ | ||
|
||
$bcc = new Entity\User(); | ||
$bcc->setEmail('[email protected]'); | ||
$bcc->setEmail($config['ERS']['info_mail']); | ||
$emailService->addBcc($bcc); | ||
|
||
$subject = "[EJC 2016] Your E-Ticket is not valid for ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")"; | ||
$subject = "[".$config['ERS']['name_short']."] Your E-Ticket is not valid for ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")"; | ||
$emailService->setSubject($subject); | ||
|
||
$viewModel = new ViewModel(array( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -347,8 +347,12 @@ public function sendEticketsAction() { | |
} | ||
|
||
# prepare email (participant, buyer) | ||
$emailService = new Service\EmailService(); | ||
$emailService->setFrom('[email protected]'); | ||
#$emailService = new Service\EmailService(); | ||
$emailService = $this->getServiceLocator() | ||
->get('ErsBase\Service\EmailService'); | ||
$config = $this->getServiceLocator() | ||
->get('config'); | ||
$emailService->setFrom($config['ERS']['info_mail']); | ||
|
||
$order = $package->getOrder(); | ||
$participant = $package->getParticipant(); | ||
|
@@ -361,7 +365,7 @@ public function sendEticketsAction() { | |
} | ||
|
||
$bcc = new Entity\User(); | ||
$bcc->setEmail('[email protected]'); | ||
$bcc->setEmail($config['ERS']['info_mail']); | ||
$emailService->addBcc($bcc); | ||
|
||
$subject = "Your registration for EJC 2016 (order ".$order->getCode()->getValue().")"; | ||
|
@@ -434,14 +438,18 @@ public function sendPaymentReminderAction() { | |
->findOneBy(array('id' => $id)); | ||
|
||
# prepare email (participant, buyer) | ||
$emailService = new Service\EmailService(); | ||
$emailService->setFrom('[email protected]'); | ||
#$emailService = new Service\EmailService(); | ||
$emailService = $this->getServiceLocator() | ||
->get('ErsBase\Service\EmailService'); | ||
$config = $this->getServiceLocator() | ||
->get('config'); | ||
$emailService->setFrom($config['ERS']['info_mail']); | ||
|
||
$buyer = $order->getBuyer(); | ||
$emailService->addTo($buyer); | ||
|
||
$bcc = new Entity\User(); | ||
$bcc->setEmail('[email protected]'); | ||
$bcc->setEmail($config['ERS']['info_mail']); | ||
$emailService->addBcc($bcc); | ||
|
||
$subject = "[EJC 2016] Payment reminder for your order: ".$order->getCode()->getValue(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,6 +305,9 @@ public function recalculateAction() { | |
if($order->getPaymentStatus() == 'paid') { | ||
$order->setPaymentStatus('unpaid'); | ||
} | ||
$order->setOrderSum($order->getPrice()); | ||
$order->setTotalSum($order->getSum()); | ||
$em->persist($order); | ||
|
||
$itemBefore->setStatus($statusCancelled); | ||
$em->persist($itemBefore); | ||
|
@@ -523,8 +526,12 @@ public function sendEticketAction() { | |
} | ||
|
||
# prepare email (participant, buyer) | ||
$emailService = new ersService\EmailService(); | ||
$emailService->setFrom('[email protected]'); | ||
#$emailService = new ersService\EmailService(); | ||
$emailService = $this->getServiceLocator() | ||
->get('ErsBase\Service\EmailService'); | ||
$config = $this->getServiceLocator() | ||
->get('config'); | ||
$emailService->setFrom($config['ERS']['info_mail']); | ||
|
||
$order = $package->getOrder(); | ||
$participant = $package->getParticipant(); | ||
|
@@ -541,10 +548,10 @@ public function sendEticketAction() { | |
} | ||
|
||
$bcc = new Entity\User(); | ||
$bcc->setEmail('[email protected]'); | ||
$bcc->setEmail($config['ERS']['info_mail']); | ||
$emailService->addBcc($bcc); | ||
|
||
$subject = "[EJC 2016] E-Ticket for ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")"; | ||
$subject = "[".$config['ERS']['name_short']."] "._('E-Ticket for')." ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")"; | ||
$emailService->setSubject($subject); | ||
|
||
$viewModel = new ViewModel(array( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.