-
-
Notifications
You must be signed in to change notification settings - Fork 217
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 #561 from liberapay/expenses-2
Implement Invoices - Part 2
- Loading branch information
Showing
12 changed files
with
336 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ _("Your invoice to {0} has been accepted - Liberapay", addressee_name) }} | ||
|
||
[---] text/html | ||
<p>{{ _( | ||
"Your request for a payment of {amount} from {addressee_name} has been accepted." | ||
, addressee_name=addressee_name, amount=Money(invoice.amount, 'EUR') | ||
) }}</p> | ||
|
||
<p>{{ _( | ||
"Unfortunately the wallet of {0} does not contain enough money to pay you right " | ||
"now, but as soon as it does you will be paid automatically." | ||
, addressee_name | ||
) }}</p> | ||
|
||
<p><a href="{{ participant.url('invoices/%s' % invoice.id) }}" | ||
>{{ _("View the invoice") }}</a></p> |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{ _("Your invoice to {0} has been accepted and paid - Liberapay", addressee_name) }} | ||
|
||
[---] text/html | ||
<p>{{ _( | ||
"Your request for a payment of {amount} from {addressee_name} has been accepted, " | ||
"and the money has been transferred to your wallet." | ||
, addressee_name=addressee_name, amount=Money(invoice.amount, 'EUR') | ||
) }}</p> | ||
|
||
<p> | ||
% if withdrawable | ||
<a href="{{ participant.url('wallet/payout/') }}" | ||
style="{{ button_style('primary') }}">{{ _("Withdraw the money") }}</a> | ||
% else | ||
{{ _("However you cannot withdraw the money yet as it is still in quarantine.") }} | ||
% endif | ||
</p> | ||
|
||
<p><a href="{{ participant.url('invoices/%s' % invoice.id) }}" | ||
>{{ _("View the invoice") }}</a></p> |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{ _("Your invoice to {0} has been rejected - Liberapay", addressee_name) }} | ||
|
||
[---] text/html | ||
<p>{{ _( | ||
"Your request for a payment of {amount} from {addressee_name} has been rejected." | ||
, addressee_name=addressee_name, amount=Money(invoice.amount, 'EUR') | ||
) }}</p> | ||
|
||
<p>{{ _("Reason: “{0}”", rejection_message) }}</p> | ||
|
||
<p><a href="{{ participant.url('invoices/%s' % invoice.id) }}">{{ _("View the invoice") }}</a></p> |
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
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
Oops, something went wrong.