Editing the <logic> block
The resulting
<logic>
block should look like this:
<logic>
<match_output>
<match field="tcode_name" value="WRK" />
<match field="htype_name" value="REG" />
<output_row>
<map field="earn_code" value="001">
</output_row>
</match_output>
<match_output>
<match field="tcode_name" />
<value>VAC</value>
<value>SICK</value>
</match>
<output_row>
<map field="earn_code" value="002">
</output_row>
</match_output>
<match_output>
<match field="tcode_name" value="WRK" />
<match field="htype_name" value="OT%" />
<output_row>
<map field="earn_code" value="011"/>
</output_row >
</match_output>
<match_output>
<match field="tcode_name" value="UAT" />
</match_output>
<match_output>
<match field="htype_name" value="UNPAID" />
</match_output>
<match_output>
<output_row>
<map field="earn_code" value="999"/>
</output_row >
</match_output>
</logic>