Created
April 26, 2015 22:51
-
-
Save jormon/b8ea02b4cf611c1830c0 to your computer and use it in GitHub Desktop.
Quickbooks Budgeting Import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var data = prompt("Please paste the row:"); | |
var month_data = jQuery.map(data.split("\t"), function(elem) { | |
return Number(elem.trim()) * 1000; | |
}); | |
var months = [ | |
"jan", | |
"feb", | |
"mar", | |
"apr", | |
"may", | |
"jun", | |
"jul", | |
"aug", | |
"sep", | |
"oct", | |
"nov", | |
"dec", | |
]; | |
var elems = jQuery('iframe#legacyframe').contents().find('iframe#bodyframe').contents().find('input.esect_field'); | |
$.each(elems, function(index, input) { | |
input.value = month_data[months.indexOf(input.name)]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment