Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
47237f6d by Cédric Krier at 2023-03-24T12:27:09+01:00
Show payment amount and payments on account move line form
It is useful to understand how payment amount is computed.
- - - - -
7d61f8ed by Cédric Krier at 2023-03-24T12:28:31+01:00
Rename label of payment amount to "Amount to Pay"
This is more explicit for the user because "Payment Amount" sounds
like the
total of payments.
- - - - -
2 changed files:
- modules/account_payment/account.py
- modules/account_payment/view/move_line_form.xml
Changes:
=====================================
modules/account_payment/account.py
=====================================
@@ -27,7 +27,7 @@
class MoveLine(metaclass=PoolMeta):
__name__ = 'account.move.line'
payment_amount = fields.Function(Monetary(
- "Payment Amount",
+ "Amount to Pay",
currency='payment_currency', digits='payment_currency',
states={
'invisible': ~Eval('payment_kind'),
=====================================
modules/account_payment/view/move_line_form.xml
=====================================
@@ -2,9 +2,14 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
- <xpath expr="//page[@id='info']" position="inside">
- <label name="payment_direct_debit"/>
- <field name="payment_direct_debit"/>
- <newline/>
+ <xpath expr="//page[@id='info']" position="after">
+ <page name="payments">
+ <label name="payment_amount"/>
+ <field name="payment_amount"/>
+ <label name="payment_direct_debit"/>
+ <field name="payment_direct_debit"/>
+
+ <field name="payments" colspan="4"/>
+ </page>
</xpath>
</data>
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/compare/7f91bf6597a893860695fbb665db60833de5317d...7d61f8edc1458ce7a021df23a5b70e5a646d0af1
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/compare/7f91bf6597a893860695fbb665db60833de5317d...7d61f8edc1458ce7a021df23a5b70e5a646d0af1
You're receiving this email because of your account on foss.heptapod.net.