Subscriptions just won’t generate invoices (?*#…!)
so I
disabled all server and client scripts
set time to the first of the month on server, client and user settings (I now live in Hawaii;)
updated invoice-from and until in database
The weird thing is: In a test installation with the identical database it worked after changing the from and to dates to 1 and 29 of Feb. Other than that is running on a local machine straight over port 8000, there are no differences. Same version, same everything.
I checked all logs to no avail, the ones in frappe-bench and in site. Where do I get some output?
I have this notorious history of answering my own questions and then finding them again the next time the problem occurs.
So:
Once you have eliminated all other obstacles such as faulty scripts you must turn back the clock to the first day of the billing period in the early morning on both server and client.
You are then, after generating most invoices from most subcriptions faced with the “Document has been modified after you have opened it”-problem, where both those times are always some miliseconds apart, no matter how often you reload the document.
When I find a solution to that I will post it here.
A funny if-cascade indeed + your’s is a much better method than my McGuyver-approach above. Could / should be in the standard list of scripts for maintenance use. Thanks AVC!
Good eyes! Oh, this picture with the SM58 was made many versions ago … when I’d pretend to be Bon Scott. Now I pretend to be Otis Redding or James Brown … (Beyoncé hips, of course)