Skip to content
Snippets Groups Projects
  1. 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
  2. Apr 28, 2021
  3. Apr 27, 2021
  4. Apr 26, 2021
  5. Apr 23, 2021
  6. Mar 30, 2021
  7. Mar 29, 2021
  8. Mar 23, 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. Mar 01, 2021
  15. Feb 26, 2021
  16. Feb 25, 2021
Loading