This commit is contained in:
gsinghpal
2026-03-20 11:46:41 -04:00
parent 595dccc17d
commit 92369be6e0
71 changed files with 6588 additions and 8 deletions

View File

@@ -9,6 +9,9 @@
<field name="state" invisible="1"/>
<field name="poynt_transaction_ref" invisible="1"/>
<field name="provider_id" invisible="1"/>
<field name="surcharge_enabled" invisible="1"/>
<field name="surcharge_applied" invisible="1"/>
<field name="original_amount" invisible="1"/>
<!-- Status banner for waiting / done / error -->
<div class="alert alert-info" role="alert"
@@ -44,6 +47,25 @@
</group>
</group>
<!-- Card Type & Surcharge section -->
<group string="Card Type &amp; Surcharge"
invisible="state == 'done' or not surcharge_enabled">
<group>
<field name="card_type"
widget="radio"
required="surcharge_enabled and state in ('draft', 'error')"
readonly="state not in ('draft', 'error')"/>
</group>
<group invisible="not card_type">
<field name="surcharge_rate" string="Rate (%)"/>
<field name="surcharge_amount"/>
<div class="text-muted" colspan="2"
invisible="surcharge_amount == 0">
A surcharge line will be added to the invoice before payment.
</div>
</group>
</group>
<!-- Terminal section -->
<group string="Terminal"
invisible="payment_mode != 'terminal' or state == 'done'">