metafresh logo and link to homepage

IT FRESH-724

#443 Add is to be sent as email to doc outbound log

Testcase to check

  1. Check if G000X has isinvoiceemailenabled set Y/N, or not set (in bpartner window, 1st tab)

  2. Make sure G000X has isinvoiceemailenabled: Y

  3. Create an invoice and an order for G000X, use P0001

  4. Open DocOutbound (Ausgehende Belege), and search for G000X (and date of test):
  5. Check the order in db:
  6. Set isinvoiceemailenabled for G000X to N

  7. Create another invoice and order for G000X, and check DocOutbound again:
  8. Check the 2nd order in db:
  9. Set isinvoiceemailenabled for G000X to Y again

  10. Check DocOutbound again, refresh (esp. for the 2nd invoice):
  11. Create new bpartner G000Y, make sure it has isinvoiceemailenabled NOT set (NULL)

  12. Create a new user for G000Y as well:
  13. Create an invoice and another document (e.g. inout)

  14. Check DocOutbound again, for G000Y and date of test:
  15. Check the order in db:
  16. Set isinvoiceemailenabled: N for G000Y now, but Y for its new user, and check DocOutbound again for G000Y (refresh):
  17. Make sure your own email address is the default one set in db, for testing purposes!

  18. Gear, Auswahl als Email senden:
  19. Filter again, but for isinvoiceemailenabled: Y, and send Emails again (uncheck the box “Nur bisher nicht gemailte”):
  20. Make sure G000X has a user, with isinvoiceemailenabled: N; but G000X still has isinvoiceemailenabled: Y

  21. In DocOutbound, set filters for G000X, and date of test (so you only get your new order / invoice for G000X)

  22. Gear, Auswahl als Email senden:
  23. Set the user of G000X to isinvoiceemailenabled: NULL, and repeat Auswahl senden in DocOutbound (uncheck the box “Nur bisher nicht gemailte”):

Zur Quelldatei auf github.com