{% set readonly_fields = [
"previous_billing_amount",
"in_this_ra_billing_amount",
"cumulative_billed_qty",
"cumulative_billed_amount",
"variation_qty",
"variation_amount"
] %}
{% if grouped_tasks %}
Task
Unit
Qty
Rate
BOQ
Prev Qty
Prev Amt
RA Qty
RA Amt
Cum Qty
Cum Amt
Var Qty
Var Amt
{% for group in grouped_tasks %}
{% for field in ["task_name","unit","qty","rate","boq_amount","previous_billed_qty","previous_billing_amount","in_this_ra_bill_qty","in_this_ra_billing_amount","cumulative_billed_qty","cumulative_billed_amount","variation_qty","variation_amount"] %}
{{ '' if group[field] is none or group[field] == '0' or group[field] == 0 else group[field] }}
{% endfor %}
{% for sub in group.subtasks %}
{% for field in ["task_name","unit","qty","rate","boq_amount","previous_billed_qty","previous_billing_amount","in_this_ra_bill_qty","in_this_ra_billing_amount","cumulative_billed_qty","cumulative_billed_amount","variation_qty","variation_amount"] %}