clinic/netforce_clinic/layouts/clinic_payment_form.xml

17 lines
777 B
XML
Raw Normal View History

2014-10-22 08:55:57 +00:00
<form model="clinic.hd.case.payment">
<field name="hd_case_id" invisible="1"/>
2015-02-05 09:03:51 +00:00
<field name="bill_no"/>
2014-10-23 04:43:39 +00:00
<field name="pay_amount" onchange="onchange_amount"/>
<newline/>
<field name="to_pay" readonly="1"/>
<newline/>
2014-10-23 05:36:00 +00:00
<group attrs='{"invisible":[["pay_amount","=",0]]}'>
<field name="complete" help="Mark as complete"/>
</group>
2014-10-22 08:55:57 +00:00
<foot>
2014-10-23 05:36:00 +00:00
<button attrs='{"invisible":[["pay_amount","=",0]]}' string="Cash" type="success" icon="ok" method="cash" confirm="Are you sure?"/>
<button attrs='{"invisible":[["pay_amount","=",0]]}' string="Credit" type="default" icon="check" method="credit"/>
<button attrs='{"invisible":[["pay_amount","!=",0]]}' string="OK" type="success" icon="ok" method="credit"/>
2014-10-22 08:55:57 +00:00
</foot>
</form>