Skip to content

Instantly share code, notes, and snippets.

@lowe0292
Created April 2, 2015 13:37
Show Gist options
  • Save lowe0292/566f56bdcc35bbe9b6b4 to your computer and use it in GitHub Desktop.
Save lowe0292/566f56bdcc35bbe9b6b4 to your computer and use it in GitHub Desktop.
Rent Payment Logger
var today = new Date(); new Firebase('https://castle-development.firebaseio.com/tenants/[propertyId]/[tenantId]/rent/payments').push({ amount: [amount], createdBy: 'admin', dueDate: new Date(today.getFullYear(), today.getMonth(), 1).getTime(), createdAt: today.getTime() });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment