-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new money formatting util for smarty formatting
This switches us from the old function to the new function
- Loading branch information
1 parent
78c122b
commit ae29360
Showing
10 changed files
with
49 additions
and
53 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
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 |
---|---|---|
|
@@ -146,9 +146,9 @@ public function testAddPaymentUsingCreditCardForPartiallyPaidContribution() { | |
'From: [email protected]', | ||
'Dear Anthony,', | ||
'Payment Details', | ||
'Total Fee: $ 100.00', | ||
'This Payment Amount: $ 70.00', | ||
'Balance Owed: $ 0.00 ', | ||
'Total Fee: $100.00', | ||
'This Payment Amount: $70.00', | ||
'Balance Owed: $0.00 ', | ||
'Billing Name and Address', | ||
'Vancouver, AE 1321312', | ||
'Visa', | ||
|
@@ -180,7 +180,7 @@ public function testAddPaymentForPartiallyPaidContribution() { | |
* @throws \CRM_Core_Exception | ||
* @throws \CiviCRM_API3_Exception | ||
*/ | ||
public function testMultiplePaymentForPartiallyPaidContribution() { | ||
public function testMultiplePaymentForPartiallyPaidContribution(): void { | ||
$this->createPartiallyPaidOrder(); | ||
|
||
// pay additional amount | ||
|
@@ -236,9 +236,9 @@ public function testMultiplePaymentForPartiallyPaidContributionWithOneCreditCard | |
$mut->checkMailLog([ | ||
'Dear Anthony,', | ||
'Below you will find a receipt for this payment.', | ||
'Total Fee: $ 100.00', | ||
'This Payment Amount: $ 50.00', | ||
'Balance Owed: $ 20.00 ', | ||
'Total Fee: $100.00', | ||
'This Payment Amount: $50.00', | ||
'Balance Owed: $20.00 ', | ||
'Paid By: Check', | ||
'Check Number: check-12345', | ||
], | ||
|
@@ -266,9 +266,9 @@ public function testAddPaymentUsingCreditCardForPendingPayLaterContribution() { | |
|
||
$mut->checkMailLog([ | ||
'Below you will find a receipt for this payment.', | ||
'Total Fee: $ 100.00', | ||
'This Payment Amount: $ 100.00', | ||
'Balance Owed: $ 0.00 ', | ||
'Total Fee: $100.00', | ||
'This Payment Amount: $100.00', | ||
'Balance Owed: $0.00 ', | ||
'Paid By: Credit Card', | ||
'***********1111', | ||
'Billing Name and Address', | ||
|
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
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 |
---|---|---|
|
@@ -297,7 +297,7 @@ public function testIPNPaymentMembershipRecurSuccessNoLeakage(): void { | |
$mut->checkAllMailLog([ | ||
'Membership Type: General', | ||
'Mr. Anthony Anderson II" <[email protected]>', | ||
'Amount: $ 200.00', | ||
'Amount: $200.00', | ||
'Membership Start Date:', | ||
'Supporter Profile', | ||
'First Name: Anthony', | ||
|
@@ -323,7 +323,7 @@ public function testIPNPaymentMembershipRecurSuccessNoLeakage(): void { | |
'Membership Type: General', | ||
'Mrs. Antonia Anderson II', | ||
'[email protected]', | ||
'Amount: $ 200.00', | ||
'Amount: $200.00', | ||
'Membership Start Date:', | ||
'Transaction #: hers', | ||
'Supporter Profile', | ||
|
@@ -363,7 +363,7 @@ public function testIPNPaymentMembershipRecurSuccessNoLeakageOnlineThenOffline() | |
$mut->checkAllMailLog([ | ||
'Membership Type: General', | ||
'Mr. Anthony Anderson II" <[email protected]>', | ||
'Amount: $ 200.00', | ||
'Amount: $200.00', | ||
'Membership Start Date:', | ||
'Supporter Profile', | ||
'First Name: Anthony', | ||
|
@@ -387,7 +387,7 @@ public function testIPNPaymentMembershipRecurSuccessNoLeakageOnlineThenOffline() | |
'Membership Type: General', | ||
'Mrs. Antonia Anderson II', | ||
'[email protected]', | ||
'Amount: $ 200.00', | ||
'Amount: $200.00', | ||
'Membership Start Date:', | ||
'Transaction #: hers', | ||
'This membership will be automatically renewed every', | ||
|
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
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 |
---|---|---|
|
@@ -3652,7 +3652,7 @@ public function testSendMail(): void { | |
'receipt_from_email' => '[email protected]', | ||
]); | ||
$mut->checkMailLog([ | ||
'$ 100.00', | ||
'$100.00', | ||
'Contribution Information', | ||
], [ | ||
'Event', | ||
|
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 |
---|---|---|
|
@@ -219,7 +219,7 @@ public function testPaymentSendContributionReceipt(): void { | |
$contribution = $this->callAPISuccessGetSingle('Contribution', ['id' => $contribution['id']]); | ||
$this->assertNotEmpty($contribution['receipt_date']); | ||
$mut->checkMailLog([ | ||
'Price Field - Price Field 1 1 $ 100.00 $ 100.00', | ||
'Price Field - Price Field 1 1 $100.00 $100.00', | ||
'event place', | ||
'streety street', | ||
]); | ||
|
@@ -293,10 +293,10 @@ public function testPaymentEmailReceipt(): void { | |
$mut->checkMailLog([ | ||
'From: "FIXME" <[email protected]>', | ||
'Dear Anthony,', | ||
'Total Fee: $ 300.00', | ||
'This Payment Amount: $ 50.00', | ||
'Total Fee: $300.00', | ||
'This Payment Amount: $50.00', | ||
//150 was paid in the 1st payment. | ||
'Balance Owed: $ 100.00', | ||
'Balance Owed: $100.00', | ||
'Event Information and Location', | ||
'Paid By: Check', | ||
'Check Number: 345', | ||
|
@@ -331,9 +331,9 @@ public function testPaymentEmailReceiptFullyPaid(): void { | |
'From: "FIXME" <[email protected]>', | ||
'Dear Anthony,', | ||
'Below you will find a receipt for this payment.', | ||
'Total Fee: $ 300.00', | ||
'This Payment Amount: $ 150.00', | ||
'Balance Owed: $ 0.00', | ||
'Total Fee: $300.00', | ||
'This Payment Amount: $150.00', | ||
'Balance Owed: $0.00', | ||
'Thank you for completing this payment.', | ||
]); | ||
} | ||
|
@@ -382,12 +382,12 @@ public function testRefundEmailReceipt(string $thousandSeparator): void { | |
$mut->checkMailLog([ | ||
'Dear Anthony,', | ||
'A refund has been issued based on changes in your registration selections.', | ||
'Total Fee: $ 300' . $decimalSeparator . '00', | ||
'Refund Amount: $ -30' . $decimalSeparator . '00', | ||
'Total Fee: $300' . $decimalSeparator . '00', | ||
'Refund Amount: -$30' . $decimalSeparator . '00', | ||
'Event Information and Location', | ||
'Paid By: Check', | ||
'Transaction Date: November 13th, 2018 12:01 PM', | ||
'Total Paid: $ 170' . $decimalSeparator . '00', | ||
'Total Paid: $170' . $decimalSeparator . '00', | ||
]); | ||
} | ||
|
||
|