conv_bal
watcha.h 2015-07-30 09:33:51 +07:00
parent 872c7421fe
commit 6fdfc5d154
1 changed files with 8 additions and 8 deletions

View File

@ -141,15 +141,15 @@ class PrintLaborCost(Model):
load_report(lcname,link)
# generate labor cost summary
#sum_name='labor.cost-summary.xlsx'
#link='http://localhost:9999/report_export_xls?model=clinic.report.labor.cost.summary&template=report_labor_cost_summary&active_id=%s'%(sum_id)
#load_report(sum_name,link)
sum_name='labor.cost-summary.xlsx'
link='http://localhost:9999/report_export_xls?model=clinic.report.labor.cost.summary&template=report_labor_cost_summary&active_id=%s'%(sum_id)
load_report(sum_name,link)
#obj.write({
#'report_summary': sum_name,
#'report_labor_cost': lcname,
#})
#db.commit()
obj.write({
'report_summary': sum_name,
'report_labor_cost': lcname,
})
db.commit()
report_lines=[
{'report_file': 'report_detail','model': 'clinic.report.labor.cost.detail', 'report_id': obj.dt_report_id.id,'field_name': 'dt_report_id'},