<conditions>
  <type>AR/AP</type>
  <condition name="is_sales"
             test="($context->{table_name} eq 'ar')"
             class="Workflow::Condition::Evaluate"/>
  <condition name="complete"
             test="$context->{transdate}"
             class="Workflow::Condition::Evaluate"/>
  <condition name="is_invoice"
             test="not $context->{is_transaction}"
             class="Workflow::Condition::Evaluate" />
  <condition name="is_sales_invoice"
             class="Workflow::Condition::LazyAND">
    <param name="condition1" value="is_invoice" />
    <param name="condition2" value="is_sales" />
  </condition>
  <condition name="is-batch-member"
             test="$context->{'batch-id'}"
             class="Workflow::Condition::Evaluate" />
  <condition name="reversing"
             test="$context->{'reversing'}"
             class="Workflow::Condition::Evaluate" />
</conditions>
