Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

http://lordrich.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Pseudocode for inserting repeating invoices

This is far closer to a suggested solution than actual usable code.

For all in Template
        i = int((date()-Template.lastbilldate)/Frequency.everyxdays)
        while i > 0
                Addbill(Template.templateID)
        end
End

Function Addbill(int Template.templateID)
        Insert into Bill(Amount.AmountID, Date(), "Membership Fees", Template.memberID
End

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS