Permalink
Browse files

edited the default recipt header and daily message.

added tax fields to the store level creation/edit admin section
  • Loading branch information...
1 parent faccc46 commit 2d175b4b3f2feb89c8208b12e2825ad5cf33918d @boxxxie committed May 23, 2012
@@ -301,6 +301,12 @@ function StoreInputDialog (attachTo,options) {
chase_sic_code = d.find("#chase_sic_code"),
chase_user_name = d.find("#chase_user_name"),
chase_user_password = d.find("#chase_user_password"),
+ tax_1_number = d.find("#tax_1_number"),
+ tax_1_rate = d.find("#tax_1_rate"),
+ tax_2_number = d.find("#tax_2_number"),
+ tax_2_rate = d.find("#tax_2_rate"),
+ tax_3_number = d.find("#tax_3_number"),
+ tax_3_rate = d.find("#tax_3_rate"),
allFields = $([])
@@ -325,7 +331,13 @@ function StoreInputDialog (attachTo,options) {
.add(chase_client_id)
.add(chase_sic_code)
.add(chase_user_name)
- .add(chase_user_password);
+ .add(chase_user_password)
+ .add(tax_1_rate)
+ .add(tax_1_number)
+ .add(tax_2_rate)
+ .add(tax_2_number)
+ .add(tax_3_rate)
+ .add(tax_3_number);
d.dialog(
{
@@ -359,7 +371,13 @@ function StoreInputDialog (attachTo,options) {
chase_client_id:chase_client_id.val(),
chase_sic_code:chase_sic_code.val(),
chase_user_name:chase_user_name.val(),
- chase_user_password:chase_user_password.val()
+ chase_user_password:chase_user_password.val(),
+ tax_1_number:tax_1_number.val(),
+ tax_1_rate:tax_1_rate.val(),
+ tax_2_number:tax_2_number.val(),
+ tax_2_rate:tax_2_rate.val(),
+ tax_3_number:tax_3_number.val(),
+ tax_3_rate:tax_3_rate.val()
};
var newStoreData_w_options = _.clone(newStoreData);
@@ -61,7 +61,13 @@ function installTerminal(companyID,groupID,storeID,terminalID){
emails:[store.contact.email]
},
store_number:store.number,
- creation_user:user.userCtx.name
+ creation_user:user.userCtx.name,
+ tax_1_number:store.tax_1_number,
+ tax_1_rate:store.tax_1_rate,
+ tax_2_number:store.tax_2_number,
+ tax_2_rate:store.tax_2_rate,
+ tax_3_number:store.tax_3_number,
+ tax_3_rate:store.tax_3_rate
/* chase_merchant_id:store.chase_merchant_id,
chase_merchant_number:store.chase_merchant_number,
@@ -6,7 +6,7 @@ var sample_terminal ={
"uuid": "f851d6c6-2507-4c26-ab70-d7d9e7c6733d",
"suspended": false,
"ipaddress": "208.124.150.146",
- "paymentGateway": "CHASE",
+ "paymentGateway": "CHASE Paymentech",
"dateOfLastCashOut": "2011-09-02T16:14:01.405Z",
"terminalId": 35,
"storeId": "RT7",
@@ -22,10 +22,10 @@ var sample_terminal ={
"print_UPCCode": true,
"print_zero_item_price": false,
"message": [
- "Thanks for shopping",
- "in our store",
- "Have a nice day",
- "!!!"
+ "",
+ "",
+ "",
+ ""
],
"type": "Default",
"enabled": false
@@ -43,11 +43,11 @@ var sample_terminal ={
}
],
"receiptHeaders": [
- "recently",
- "installed",
- "terminal",
- "please",
- "edit"
+ "",
+ "",
+ "",
+ "",
+ ""
],
"departments": [
{
@@ -561,6 +561,21 @@
</tr>
</tbody>
</table>
+
+ <label>Tax 1 Rate</label>
+ <input type="text" id="tax_1_rate" value="{{tax_1_rate}}" class="text ui-widget-content ui-corner-all" />
+ <label>Tax 2 Rate</label>
+ <input type="text" id="tax_2_rate" value="{{tax_2_rate}}" class="text ui-widget-content ui-corner-all" />
+ <label>Tax 3 Rate</label>
+ <input type="text" id="tax_3_rate" value="{{tax_3_rate}}" class="text ui-widget-content ui-corner-all" />
+ <label>Tax 1 Number</label>
+ <input type="text" id="tax_1_number" value="{{tax_1_number}}" class="text ui-widget-content ui-corner-all" />
+ <label>Tax 2 Number</label>
+ <input type="text" id="tax_2_number" value="{{tax_2_number}}" class="text ui-widget-content ui-corner-all" />
+ <label>Tax 3 Number</label>
+ <input type="text" id="tax_3_number" value="{{tax_3_number}}" class="text ui-widget-content ui-corner-all" />
+
+
<label>Chase Merchant Number</label>
<input type="text" id="chase_merchant_number" value="{{chase_merchant_number}}" class="text ui-widget-content ui-corner-all" />
<label>Chase Merchant ID</label>

0 comments on commit 2d175b4

Please sign in to comment.