Skip to content
Snippets Groups Projects
  1. May 27, 2021
  2. May 07, 2021
    • Andreas Ellewsen's avatar
      Refactor models and methods for batches · d987abc4
      Andreas Ellewsen authored
      Instead of mixing the Batch model for batches sent *to* with batches
      received *from* SETRA, we switch to using an InputBatch and an
      OutputBatch. The InputBatch contains the fields that can be used when
      sending a Batch (with Vouchers and Transactions), and the OutputBatch
      contains all the information one receives from SETRA when fetching a
      single batch from the batch/ endpoint, or multiple using the search
      functionality.
      
      The get_batch method is reduced to only fetch a single batch, while the
      new search_batches method takes the role of searching based on creation
      date and interface. In addition, the return_list_of_obj parameter is
      removed in favor of the return_objects class attribute.
      
      This commit expects that SETRA includes the id field in Batches.
      d987abc4
  3. Apr 28, 2021
  4. Apr 27, 2021
  5. Apr 26, 2021
  6. Apr 23, 2021
  7. Mar 30, 2021
  8. Mar 29, 2021
  9. Mar 22, 2021
  10. Mar 15, 2021
  11. Mar 11, 2021
  12. Mar 08, 2021
  13. Mar 04, 2021
    • Andreas Ellewsen's avatar
      Fix dateformats · 28d57f63
      Andreas Ellewsen authored
      Setra expects datetime.datetime, not datetime.date
      In addition, voucherdate is in fact not optional.
      28d57f63
  14. Feb 26, 2021
  15. Feb 25, 2021
  16. Feb 24, 2021
  17. Feb 19, 2021
  18. Feb 12, 2021
    • Andreas Ellewsen's avatar
      Make vouchertype optional · 0ad16be8
      Andreas Ellewsen authored
      There are validation rules in SETRA that sets this value to a default
      value set in the parameters table of SETRA. For this to be possible
      we must allow users to leave out the value.
      0ad16be8
  19. Feb 04, 2021
  20. Jan 28, 2021
  21. Jan 22, 2021
  22. Jan 20, 2021
  23. Jan 15, 2021
  24. Jan 08, 2021
Loading