conv_bal
watcha.h 2014-12-10 00:39:51 +07:00
parent ea0896a5ad
commit e0533c20b2
6 changed files with 14 additions and 15 deletions

View File

@ -1,5 +1,7 @@
<form model="clinic.report.payment.matching"> <form model="clinic.report.payment.matching">
<field name="date" span="3" mode="month" onchange="onchange_date"/> <field name="date" span="2" mode="month" onchange="onchange_date"/>
<field name="date_from" span="3"/> <field name="date_from" span="2"/>
<field name="date_to" span="3"/> <field name="date_to" span="2"/>
<field name="state" span="2"/>
<field name="patient_id" span="2"/>
</form> </form>

View File

@ -949,14 +949,10 @@ class HDCase(Model):
def write(self,ids,vals,**kw): def write(self,ids,vals,**kw):
patient_id=vals.get('patient_id') patient_id=vals.get('patient_id')
# XXX importing problem
# when change patient
#vals=self.get_staff_fee(vals,patient_id)
vals=self.get_invoice_policy(vals,patient_id) vals=self.get_invoice_policy(vals,patient_id)
# if not other expense request fee
obj=self.browse(ids)[0] obj=self.browse(ids)[0]
if not obj.amount: if not obj.amount:
vals['req_fee']=1 vals['req_fee']=1 # to show button pay
super().write(ids,vals,**kw) super().write(ids,vals,**kw)
def approve(self,ids,context={}): def approve(self,ids,context={}):

View File

@ -14,6 +14,8 @@ class ReportPaymentMatching(Model):
"date": fields.Date("Month", required=True), "date": fields.Date("Month", required=True),
"date_from": fields.Date("From", required=True), "date_from": fields.Date("From", required=True),
"date_to": fields.Date("To", required=True), "date_to": fields.Date("To", required=True),
'state': fields.Selection([['draft','Draft'],['waiting_matching','Waiting Matching'],['match','Match'],['unmatch','Unmatch'],['approved','Approved']],'State'),
'patient_id': fields.Many2One("clinic.patient","Patient"),
} }
def _get_date_from(self,context={}): def _get_date_from(self,context={}):
@ -29,6 +31,7 @@ class ReportPaymentMatching(Model):
'date': lambda *a: time.strftime("%Y-%m-%d"), 'date': lambda *a: time.strftime("%Y-%m-%d"),
'date_from': _get_date_from, 'date_from': _get_date_from,
'date_to': _get_date_to, 'date_to': _get_date_to,
'state': 'match',
} }
def get_report_data(self,ids,context={}): def get_report_data(self,ids,context={}):

View File

@ -1,8 +1,5 @@
<center> <center>
<h2>Payment Matching</h2> <h2>Payment Matching</h2>
<h3>
{{parent_company_name}}&nbsp;{{company_name}}<br/>
</h3>
<h4> <h4>
{{#if is_duration}} {{#if is_duration}}
ระหว่างวันที่ {{from}} ถึง {{to}} ระหว่างวันที่ {{from}} ถึง {{to}}

View File

@ -43,8 +43,8 @@
<th></th> <th></th>
<th></th> <th></th>
{{/unless}} {{/unless}}
<th>รวม</th> <th></th>
<th style="text-align:right">{{total_qty}}</th> <th style="text-align:right">รวม</th>
<th style="text-align:right">{{currency total_amount}}</th> <th style="text-align:right">{{currency total_amount}}</th>
</tfoot> </tfoot>
</table> </table>

View File

@ -1,8 +1,9 @@
============ ============
urgent urgent still missing
- report Matching Payment - report Matching Payment
- special cost - special case -> how
- labor cost in period - labor cost in period
- computation of labor cost in period
============ ============
-- tonight - -- tonight -