Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Dunning Candidates #129

Closed
metas-dh opened this issue Jun 16, 2019 · 0 comments

Comments

@metas-dh
Copy link
Member

commented Jun 16, 2019

Test shall include:

  • Customer Fixtures to use: (if needed)
  • What to test
  • Expectation for the test to be successful

http://recordit.co/QxUjc58fEB

Note:

  1. Dunning type must be created and set for the resp. customer, see #128
  2. Sales invoice for this customer is needed (date can be date of test, if dunning type has days after due date: 0 and payment term: immediately); fixture for a sales invoice will be created by TheBestPessimist.

Todo for developer (besides coding)

All Flags are ticked? Congratulations, you have delivered!

Steps

Have a dunning type

  • 2 levels (both same):
    • days after due date = 0;
    • days between dunning = "01"

have bpartner

  • payment term = immediately
  • dunning type = previous dunning type

sales invoice

  • date today
  • not paid
  • completed
  • previous bpartner

dunning candidates window
create/update dunning candidates action

  • full update check
  • expect
    • exactly 2 candidates
    • same bpartner
    • same invoice
    • both dunning levels (because they have same "days after due date")
    • the open amt (shall be the amt from the sales invoice, minus discounts if they were set)
    • due date: that's afaik calculated from the date of the sales invoice plus the payment term, so in our case with payment term immediately, the sales invoice is supposed to be paid directly, and therefore the due date is the same as the sales invoice date
    • days due: the number of days the sales invoice is already due for payment, which shall match the setting in dunning type (=> in the dunning type th days after due date are set as 0, afair, in the testcase, so if e.g. they were set as 8, and days due here in the dunning candidate would be 5, then sth would be wrong => it can only be the same number as set in the dunning type or higher)

@metas-dh metas-dh added this to To do in e2e via automation Jun 16, 2019

@metas-dh metas-dh moved this from To do to Data Prepared in e2e Jun 16, 2019

@oliviupis oliviupis self-assigned this Jun 18, 2019

@oliviupis oliviupis moved this from Data Prepared to In progress in e2e Jun 19, 2019

@oliviupis oliviupis moved this from In progress to To be reviewed in e2e Jun 22, 2019

@oliviupis oliviupis referenced this issue Jun 22, 2019

@siemiatj siemiatj moved this from To be reviewed to In progress in e2e Jun 27, 2019

TheBestPessimist added a commit that referenced this issue Jul 8, 2019

TheBestPessimist added a commit that referenced this issue Jul 8, 2019

TheBestPessimist added a commit that referenced this issue Jul 8, 2019

TheBestPessimist added a commit that referenced this issue Jul 8, 2019

TheBestPessimist added a commit that referenced this issue Jul 8, 2019

TheBestPessimist added a commit to metasfresh/metasfresh that referenced this issue Jul 8, 2019

Disable caching of `de.metas.dunning.api.impl.DunningDAO.retrieveDunn…
…ings` because sometimes creating dunning types doesn't reset the cache.

metasfresh/metasfresh-e2e#129

@TheBestPessimist TheBestPessimist moved this from In progress to To be reviewed in e2e Jul 9, 2019

TheBestPessimist added a commit that referenced this issue Jul 10, 2019

e2e automation moved this from To be reviewed to Done Jul 10, 2019

metas-ts added a commit to metasfresh/metasfresh that referenced this issue Jul 22, 2019

Update ReleaseNotes.md
  * [#5364](#5364) BPartner REST-API - Add Support for additional core fields
  * [#5390](#5390) Add Quality Issue warehouse filter in Warehouse list page
  * [#5370](#5370) Introduce more webui WidgetSizes (XL, XXL)
  * [#2304](metasfresh/metasfresh-webui-frontend#2304) Picking Terminal (Prototype): not all picking slots not displayed / close when clicking outside
  * [#2307](metasfresh/metasfresh-webui-frontend#2307) Set precision to 2 digits for `CableLength` field
  * [#46](metasfresh/metasfresh-e2e#46) Create test: warehouse
  * [#121](metasfresh/metasfresh-e2e#121) Create new Stock Control Purchase
  * [#126](metasfresh/metasfresh-e2e#126) Create Empties Receive
  * [#129](metasfresh/metasfresh-e2e#129) Create Dunning Candidates
  * [#130](metasfresh/metasfresh-e2e#130) Create Dunning Documents
  * [#132](metasfresh/metasfresh-e2e#132) Void sales invoice and invoice the billing candidates again
  * [#162](metasfresh/metasfresh-e2e#162) Create credit memo Vendor (Lieferant)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.