Ticket #3 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

RecurringInvoice and periodical jobs

Reported by: carlos Owned by: jzarate
Priority: major Milestone: 0.1
Component: component1 Keywords:
Cc:

Description

Find a way to generate recurring invoices with the object's cron like Job related object.

Change History

Changed 3 years ago by carlos

  • priority changed from major to minor
  • milestone set to 0.1

Changed 3 years ago by carlos

  • owner changed from somebody to carlos

Changed 3 years ago by jzarate

  • owner changed from carlos to jzarate
  • status changed from new to assigned

r369 added "generateInvoice" method to RecurringInvoice?, to generate a new invoice upon calling

Changed 3 years ago by jzarate

some points about the strategy:

  • the recurring invoice has the scheduling fields within:
    • month
    • day_of_week
    • day_of_month
  • the recurring invoice has a "generateInvoice" method that creates an invoice with the same client & payment data that the recurring template.
  • the issue date is set as the date the "generateInvoice" method was called. the due date is set according to the issue date and the "days_to_due" field.

Changed 3 years ago by jzarate

r429

  • added a few new filters at recurring_invoice listing related to scheduling:
    • active: recrring invoices that are still not "exhasuted"
    • exhausted
    • this month: recurring invoices that are to generate invoices this month
    • today: recurring invoices that are to generate invoices today.
  • also, added the recurringinvoicefinder methods:
    • toGenerateThisMonth($date)
    • toGenerateThisDay($date)

Changed 3 years ago by jzarate

r431

  • first draft of the "siwapp:check-jobs" task

Changed 3 years ago by enrique

  • priority changed from minor to major

Changed 3 years ago by jzarate

r537 new paradigm for scheduling jobs

Changed 3 years ago by jzarate

r541 finder class reworked with the new scheduling paradigm

Changed 3 years ago by jzarate

r542 more adjustments to the CheckJobs? task.

Changed 3 years ago by jzarate

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.