metafresh logo and link to homepage

IT gh#757

#757 Automatic contract extension doesn’t work anymore

Testcase to check if the extension of flatrate terms works properly.

  1. Make sure you have a couple of different flatrate terms, e.g. for packing items (e.g. TU A, TU B) for different bpartners, which are to be extended automatically when they run out

  2. Make sure you have an AD_Scheduler which is supposed to extend these flatrate terms at this point in time (when they run out)

  3. Check the AD_Scheduler the day after the automatic extension was about to take place (e.g. first day of the year):
  4. Check some of the flatrate terms which had to be extended:
  5. Select 1 flatrate term and extend it manually, start date: first day after end date of the current term, no selection of completion / no completion:

Note: You can check e.g. the number of flatrate terms for Gebinde for all bpartners (or the number of bpartners who have such a flatrate term) in the db with SQL, and then check if all these flatrate terms have an enddate > 1.1. of the new year; note that bpartners can have >1 flatrate terms for different Gebinde, so keep that in mind when comparing the numbers!

Zur Quelldatei auf