X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS-Test%2Fshare%2Foutput%2Fedit%2Fcust_main.cgi%2F135;h=84196c7cca57c5a039799c06e5e4ee3e263a6f99;hp=36b93f9a801a286f6bcb6e0cc7d0c7e86dfbdf4b;hb=b25efe03cc7945773363ba74e2012646c258a1b5;hpb=600e9b690d7649e8cde7a9a4cd1089fcb432d238 diff --git a/FS-Test/share/output/edit/cust_main.cgi/135 b/FS-Test/share/output/edit/cust_main.cgi/135 index 36b93f9a8..84196c7cc 100644 --- a/FS-Test/share/output/edit/cust_main.cgi/135 +++ b/FS-Test/share/output/edit/cust_main.cgi/135 @@ -25,7 +25,7 @@ + @@ -641,55 +684,18 @@ myMenu63.width = 256; - - - + - @@ -703,7 +709,7 @@ myMenu63.width = 256; - - - - - + - - - -
freeside - Freeside Test 3.8.1 + Freeside Test 5.0.1 Logged in as test  logout
Preferences +
Logged in as test  logout
Preferences
+ @@ -713,7 +719,7 @@ myMenu63.width = 256;
+

@@ -734,7 +740,7 @@ myMenu63.width = 256;
+
@@ -755,7 +761,7 @@ myMenu63.width = 256;
+ - + - + -
+ $('#div_ship_location').hide(); + +

Contacts - - +
- + >
Contact @@ -6024,7 +5940,7 @@ spawn_contactnum(this);" // change the label on the last entry & add a remove button var prev_label = document.getElementById('contactnum_label' + contactnum_fieldnum ); - prev_label.innerHTML = ' Contact'; + prev_label.innerHTML = '  '; contactnum_fieldnum++; @@ -6064,7 +5980,7 @@ spawn_contactnum(this);" label_cell.style.borderTop = "1px solid black"; label_cell.style.paddingTop = "5px"; - label_cell.innerHTML = 'Contact'; + label_cell.innerHTML = ''; row.appendChild(label_cell); @@ -6114,90 +6030,8 @@ spawn_contactnum(this);" -
Billing information - - - - - - +
Billing information +
* Billing type
- + + - + + - + + + - + + - + + - + -
- +
Charge card/e-check on this day of the month + + +
Invoice terms + + - +
Credit limit + + + + + Unlimited + +
-
+
+
+ + Payment information + + + + + + + -
  + + + + + + + + + + + + + + + -
+
+ Type +
+ +
Card number +
- - - - - - - - +
* Card number
* Expiration + // -
CVV2 (help)
Start date / + +
CVV2 (help) +
+ +
Exact name on card +
+ +
+ Auto-charge +
- + +
* Account number Type
* ABA/Routing number (help)
* Bank name
Charge future payments to this electronic check automatically
+
-
* Phone number
 
 
 
 
 
 
- +
+ + + + -
P.O.
Attention
 
 
 
 
 
+
+
+ Type +
+ +
Card number +
* Approved by
* Expiration + // -
 
 
 
 
 
- +
Expiration date + + + +
CVV2 (help) + + + +
Exact name on card + - - + - - - + + + - - - - - + +
 
Tax Exempt
Postal mail invoices -
Fax invoices + + +
+ Auto-charge
+ - - - Email address(es) - - - Do not send notices - - - - Invoice terms - - - - + - - Unlimited - - + var custpaybynum_rownum = 2; + var custpaybynum_fieldnum = 1; - + function spawn_custpaybynum(what) { - + // only spawn if we're the last element... return if not - + var field_regex = /(\d+)(_[a-z_]+)?$/; + var match = field_regex.exec(what.name); + if ( !match ) { + alert(what.name + " didn't match for " + what); + return; + } + if ( match[1] != custpaybynum_fieldnum ) { + return; + } - + // change the label on the last entry & add a remove button + var prev_label = document.getElementById('custpaybynum_label' + custpaybynum_fieldnum ); + prev_label.innerHTML = '  '; - + custpaybynum_fieldnum++; + //get the new widget - - * required fields + var newrow = '\n \n\n \n \n\n\n \n\n\n\n \n\n \n\n \n\n \n\n\n\n \n\n\n \n\n \n\n\n \n\n\n\n\n \n\n \n
\n
\n Type\n
\n \n
Card number\n
\n /\n\n\n
Expiration date\n
\n \n
CVV2 (help)\n
\n \n
Exact name on card\n
\n \n
\n Auto-charge\n
\n\n'; - + var newfunc = ''; + // substitute in the new field name + var magic_regex = /MAGIC_NUMBER/g; + newrow = newrow.replace( magic_regex, custpaybynum_fieldnum ); + newfunc = newfunc.replace( magic_regex, custpaybynum_fieldnum ); -
+ // evaluate new_func + if (window.ActiveXObject) { + window.execScript(newfunc); + } else { /* (window.XMLHttpRequest) */ + //window.eval(newfunc); + setTimeout(newfunc, 0); + } + // add new row + //hmm, can't use selectlayers after a tablebreak-title for now + var table = document.getElementById('TableNumber1'); - + var row = table.insertRow(custpaybynum_rownum++); - + var label_cell = document.createElement('TD'); - - - - - - - - - - - - - - - - - + label_cell.id = 'custpaybynum_label' + custpaybynum_fieldnum; + label_cell.style.textAlign = "right"; + label_cell.style.verticalAlign = "top"; + label_cell.style.borderTop = "1px solid black"; + label_cell.style.paddingTop = "5px"; + label_cell.innerHTML = ''; - + + + + + + + + + + + + + + + + + + + + + - function rs_init_object() { - var A; - try { - A=new ActiveXObject("Msxml2.XMLHTTP"); - } catch (e) { - try { - A=new ActiveXObject("Microsoft.XMLHTTP"); - } catch (oc) { - A=null; - } - } - if(!A && typeof XMLHttpRequest != "undefined") - A = new XMLHttpRequest(); - if (!A) - alert("Can't create XMLHttpRequest object"); - return A; - } -