Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Pseudocode For Inserting Repeating Invoices

DZone's Guide to

Pseudocode For Inserting Repeating Invoices

·
Free Resource
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

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}