What is the standard way to write a program to create invoices?

I am building a billing system. The system needs to monthly issue invoices to customers.

What I am doing now is to use the For loop to check all clients on my previous accounts and decide whether it is time to create an account for the client.

If the database has a huge number of customers, I think it can be very difficult.

What is the standard way to create invoices? Is it possible to do cron jobs that record the date of the next customer invoice, and only check for a particular customer when it comes time to create an invoice.

Thanks a million

+3
source share
3

-? cron, , , -.

. . , , . , . JPA (, , Hibernate StatelessSession ).

, Quartz, , Control-M, Dollar-U, TNG Workload ..

. ( , ..).

+1

. ?

"date of previous invoide", WHERE, , .

+3

leon, , . , , . , , , . , . - , API webservice .. ( "" - - 1- ). , - .. ..

In any case - Debate ... :)

Jim

0
source

Source: https://habr.com/ru/post/1754427/


All Articles