Skip to content

Instantly share code, notes, and snippets.

Aleksandar Olic malizmaj

Block or report user

Report or block malizmaj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@malizmaj
malizmaj / activecollab-bookmarklet-invoice-report-sum.md
Last active Nov 9, 2016
Active Collab bookmarklet to get a sum value of all the invoices in the Invoices Report
View activecollab-bookmarklet-invoice-report-sum.md

To get a sum value of all the invoices in the Invoices Report:

  1. Make a new bookmark and paste this code in the URL field (ie. bookmark this code as a page):

javascript:javascript:$('[ng-repeat="result in vm.filterResults"]').each(function(){ var total = 0; $(this).find('.col_balance_due').each(function(){ total += parseInt($(this).text().replace(',','').replace('.00','')); }); $(this).find('h2').text($(this).find('h2').text()+' ($'+total+')'); });

  1. Name it as you like (eg. AC-invoices-sum)

  2. Go to Active Collab and run the Invoice Report

@malizmaj
malizmaj / Getting Tokens for Cloud Instances.md
Last active Jun 21, 2018
Getting Tokens for Active Collab Cloud Instances
View Getting Tokens for Cloud Instances.md

1. Send a POST request to "https://my.activecollab.com/api/v1/external/login" with "email" and "password" as parameters.

You should get the following response:

{
 accounts = ({
  class = FeatherApplicationInstance;
  "display_name" = "A51 (ID: 1)";
  name = 1;
You can’t perform that action at this time.