Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jayshields's full-sized avatar
💻
Working hard!

Jamie Shields jayshields

💻
Working hard!
View GitHub Profile
@jayshields
jayshields / ac_invoices_total_bookmarklet.js
Created September 28, 2016 13:33
Active Collab invoice total bookmarklet
$('[ng-repeat="invoices in grouped_invoices"]').each(function(){
var total = 0;
$(this).find('.invoice_card_amount_number').each(function(){
total += parseInt($(this).text().replace(',','').replace('.00',''));
});
$(this).find('h2.lighter').text($(this).find('h2.lighter').text()+' (£'+total+')');
});