Ctrl K
ComunidadGuías…

workflows/gl.actions.xml

Rama master · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
<actions type="GL">
  <!--

Notes on actions for GL:

* '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_as_template"
          group="main"
          order="09"
          text="Save as Template"
          doing="Saving..."
          done="Saved"
          history-text="Saved"
          class="LedgerSMB::Workflow::Action::Null" />
  <action name="schedule"
          group="main"
          order="14"
          text="Schedule"
          short-help="Make transaction recurring"
          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"
          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"
          doing="Deleting..."
          done="Deleted"
          short-help="Remove draft transaction"
          class="LedgerSMB::Workflow::Action::TransactionDelete" />

  <action name="save_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>