patient invoice form not show signature and wrong who are served
parent
00ac008130
commit
24b602e922
|
@ -394,6 +394,8 @@ class AccountInvoice(Model):
|
|||
currency_code=inv.currency_id.code or ""
|
||||
due_date=inv.due_date
|
||||
add=st.default_address_id
|
||||
hdcase=inv.related_id
|
||||
patient=hdcase.patient_id
|
||||
data={
|
||||
'partner_name': cust_name,
|
||||
'partner_address': cust_addr,
|
||||
|
@ -425,6 +427,7 @@ class AccountInvoice(Model):
|
|||
'is_cheque': is_cheque,
|
||||
'is_draft': is_draft,
|
||||
'user_name': user.name or "",
|
||||
'patient_name': patient.name or "",
|
||||
'state': inv.state or "",
|
||||
}
|
||||
data['pay_type']='Credit'
|
||||
|
@ -432,6 +435,7 @@ class AccountInvoice(Model):
|
|||
data['logo']=get_file_path(st.logo)
|
||||
if cst.signature:
|
||||
data['signature']=get_file_path(cst.signature)
|
||||
data['auth_signature']=get_file_path(cst.signature)
|
||||
return data
|
||||
|
||||
def pay_invoice(self, ids, context={}):
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue