<actions type="AR/AP">
  <!--

Notes on actions for AR/AP:

* 'post' really is 'save' because 'approve' models the 'Post' button
* 'copy_to_new' does the same thing as 'save_as_new' now that updating
  saved invoices no longer clobbers the updated data


TODO! Check workflow when 'separate duties' is false!
(Do we get the correct state transitions?)

  -->
  <action name="update"
          group="main"
          order="01"
          text="Update"
          doing="Updating..."
          done="Updated"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="copy_to_new"
          group="main"
          order="02"
          text="Copy to New"
          short-help="Create a new transaction with the current data"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="print"
          group="output"
          order="03"
          ui="print"
          text="Print"
          history-text="Printed"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="approve"
          group="main"
          order="04"
          text="Post"
          doing="Posting..."
          done="Posted"
          history-text="Posted"
          class="LedgerSMB::Workflow::Action::TransactionApprove" />
  <action name="batch-approve"
          group="main"
          ui="none"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="post_and_approve"
          group="main"
          order="05"
          text="Post"
          doing="Posting..."
          done="Posted"
          history-text="Posted"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="post_reversing"
          group="main"
          order="06"
          text="Post"
          doing="Posting..."
          done="Posted"
          history-text="Posted"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="post"
          group="main"
          order="07"
          text="Save"
          doing="Saving..."
          done="Saved"
          history-text="Saved"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="edit_and_save"
          group="main"
          order="08"
          text="Save"
          doing="Saving..."
          done="Saved"
          history-text="Saved"
          class="LedgerSMB::Workflow::Action::Null" />
  <!-- action name="save_temp"
          group="main"
          order="09"
          text="Save Template"
          doing="Saving..."
          done="Saved"
          history-text="Saved"
          class="LedgerSMB::Workflow::Action::Null" / -->
  <action name="ship_to"
          group="main"
          order="10"
          text="Ship To"
          history-text="Added shipping information"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="e_mail"
          group="output"
          order="11"
          text="E-mail"
          class="LedgerSMB::Workflow::Action::SpawnWorkflow"
          spawn_type="Email"
          context_param="_email_data" />
  <action name="sales_order"
          group="main"
          order="12"
          text="Sales order"
          history-text="Created sales order"
          class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
  <action name="purchase_order"
          group="main"
          order="13"
          text="Purchase order"
          history-text="Created purchase order"
          class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
  <action name="schedule"
          group="main"
          order="14"
          text="Schedule"
          short-help="Make transaction recurring"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="hold"
          group="main"
          order="15"
          text="Hold"
          short-help="Mark transaction being disputed"
          history-text="Put on hold"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="release"
          group="main"
          order="16"
          text="Release"
          short-help="Release held transaction"
          history-text="Released from hold"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="void"
          group="main"
          order="17"
          text="Void"
          history-text="Voided"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="reverse"
          group="main"
          order="18"
          text="Reverse"
          history-text="Reversed"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="save_info"
          group="main"
          order="19"
          text="Save Info"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="new_screen"
          group="main"
          order="20"
          text="New"
          short-help="Create a new (empty) transaction"
          class="LedgerSMB::Workflow::Action::Null" />
  <!-- 'delete' is a reserved keyword; we better not use it: it'll need to be the name of a sub -->
  <action name="del"
          group="main"
          order="21"
          text="Delete"
          short-help="Remove draft transaction"
          class="LedgerSMB::Workflow::Action::TransactionDelete" />

  <!-- these actions do not have a matching button in is.pl or ir.pl or aa.pl -->
  <action name="print_and_save"
          group="main"
          text="Print and Save"
          history-text="Printed and saved"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="print_and_save_as_new"
          group="main"
          text="Print and Save as New"
          history-text="Printed and created new"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="post_as_new"
          group="main"
          text="Save as New"
          history-text="Created new"
          class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />

  <!-- these do not have a button in the UI at all -->
  <action name="batch-delete"
          group="main"
          ui="none"
          class="LedgerSMB::Workflow::Action::Null" />
</actions>
