Wonach suchst Du?
What are you looking for?

IT FRESH-558

#251 Invoice Candidates double invoiced

Testcase to check if invoice candidates are not invoiced twice because they weren’t updated.

Note: We had different cases on live where invoice candidates weren’t updated and therefore invoiced twice; one of them was a problem with a missing UOM conversion, which is the case we chose for testing here.

  1. Open AD_SysConfig, and make sure that de.metas.invoicecandidate.api.impl.InvoiceCandInvalidUpdater.ItemsPerBatch has value = 1

  2. Open Product window, search for P0001

  3. Check the UOM, make sure a UOM conversion exists:
  4. Open pricelist CP, search for P0001

  5. Make sure the price UOM is different from the product UOM (or set it differently for testing!)
  6. Create a sales order for G000X, add P0001, P0002, P0003 (> 1 TU)
  7. Create the inout for your sales order

  8. Open Rechnungsdispo, search for the invoice candidates of your sales order
  9. Go back to Product window, search for P0001

  10. Deactivate the UOM conversion

  11. In Rechnungsdispo, click Gear, Auswahl fakturieren to create the invoice
  12. Go back to Product window, search for P0001 and activate the UOM conversion

  13. Go to invoice candidates, select the one with error

  14. Set the error checkbox on N

  15. Click Gear, Auswahl fakturieren to create the invoice

View source file on GitHub.com