changes
This commit is contained in:
@@ -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 & 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'">
|
||||
|
||||
Reference in New Issue
Block a user