User Tools

Site Tools


membership_software

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
membership_software [2014/01/12 19:01]
plural added details on dry_run
membership_software [2016/12/08 07:55] (current)
dan_dude
Line 1: Line 1:
 +====== This software is no longer used ======
 +
 ====== Membership Software Howtos ====== ====== Membership Software Howtos ======
  
Line 7: Line 9:
 By running this script, you will create new copies of all invoices for this month marked with auto-renew. By running this script, you will create new copies of all invoices for this month marked with auto-renew.
  
-You need to have the source code checked out and the appengine SDK installed. Grab the software with git clone https://jason.gessner@code.google.com/u/jason.gessner/p/mkemakerspace-tools/ .+You need to have the following tools installed: 
 +  * Python 2.7: http://www.python.org/download/releases/2.7.6/ 
 +  * httplib2: http://code.google.com/p/httplib2/wiki/Install 
 +  * Google App Engine SDK for Python: https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python 
 +  * Git: http://git-scm.com/downloads 
 + 
 +Grab the software with git clone https://code.google.com/u/jason.gessner/p/mkemakerspace-tools/ .
  
 From the mkemakerspace-tools directory, run the following command: From the mkemakerspace-tools directory, run the following command:
Line 36: Line 44:
 RenewInvoicesForMonth: End of this month: 2014-01-31, Start of next month: 2014-02-01, DRY_RUN: True RenewInvoicesForMonth: End of this month: 2014-01-31, Start of next month: 2014-02-01, DRY_RUN: True
 Fetching makers Fetching makers
-Richard Remmers+Richard R
-Steven Birkholz:+Steven B:
 ... ...
 </code> </code>
Line 47: Line 55:
 <code> <code>
 RenewInvoices(dry_run=False) RenewInvoices(dry_run=False)
 +</code>
 +
 +===== Send out Open Invoice Reminder Emails =====
 +
 +from the remote_api_shell, run the following commands (the s~mkemakerspace>  is just the prompt.  Don't type that.  :) ):
 +
 +The reminders script appends to reminders.log in the working directory.
 +
 +<code>
 +s~mkemakerspace> from datetime import date
 +s~mkemakerspace> due_date = date(2014, 2, 7)
 +s~mkemakerspace> from scripts.invoice_reminders import SendInvoiceReminders
 +s~mkemakerspace> SendInvoiceReminders(due_date)
 +Reminding folks with open invoices with due date of: 2014-02-07. DRY_RUN = True
 +Complete
 +
 +
 +
 +
 +s~mkemakerspace>
 +</code>
 +
 +By default that will just show you what it would do.  To really send out the reminders, run the function like this:
 +
 +<code>
 +s~mkemakerspace> SendInvoiceReminders(due_date, dry_run=False)
 +</code>
 +
 +===== Cancelling Open Invoices =====
 +
 +If you want to cancel a bunch of unpaid (open) invoices, run this script.
 +
 +from the remote_api_shell, run the following commands (the s~mkemakerspace>  is just the prompt.  Don't type that.  :) ):
 +
 +The cancellation script appends to invoice_cancellations.log in the working directory.
 +
 +<code>
 +s~mkemakerspace> from datetime import date
 +s~mkemakerspace> due_date = date(2014, 2, 7)
 +s~mkemakerspace> from scripts.cancel_past_due_invoices import CancelPastDueInvoices
 +WARNING:root:You are using the default Django version (0.96). The default Django version will change in an App Engine release in the near future. Please call use_library() to explicitly select a Django version. For more information see https://developers.google.com/appengine/docs/python/tools/libraries#Django
 +Starting reminders at 2014-01-12 19:31:29.269936
 +s~mkemakerspace> CancelPastDueInvoices(due_date)
 +Cancelling open invoices with due date of: 2014-02-07. DRY_RUN: True
 +Fetching invoices
 +Complete
 +
 +
 +
 +
 +s~mkemakerspace></code>
 +
 +By default that will just show you what it would do.  To really send out the reminders, run the function like this:
 +
 +<code>
 +s~mkemakerspace> CancelPastDueInvoices(due_date, dry_run=False)
 </code> </code>
  
membership_software.1389553297.txt.gz · Last modified: 2014/01/12 19:01 by plural