#175 Payment Rule SQL and Batch for “cheque”
Testcase to check payment rule scheduler
Payment rule in invoice
-
Create new sales invoice and credit memo manually
- check the paymentrule in database
- => Payment rule is P (credit)
- Create new purchase invoice and credit memo manually
- => Payment rule is P (credit)
-
Create new sales order, go to invoice candidates and set invoice rule to immediate
- create invoice from gear
- => Payment rule is P (credit)
-
Create new purchase order, go to invoice candidates and set invoice rule to immediate
- create invoice from gear
- => Payment rule is P (credit)
- create new sales order, make inout then invoice from invoice candidates (don’t change invoice rule) - gear
- => Payment rule is P (credit)
- create new purchase order, make inout then invoice from invoice candidates (don’t change invoice rule) - gear
- => Payment rule is P (credit)
-
in the database, set payment rule on S to all invoices you’ve just created
- wait for the next day and check the invoices again
- => Payment rule is P (credit) for all invoices
View source file on GitHub.com