latest
This commit is contained in:
10
bookstore-api/.idea/workspace.xml
generated
10
bookstore-api/.idea/workspace.xml
generated
@@ -51,7 +51,7 @@
|
||||
<file leaf-file-name="Payment.java" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/src/main/java/com/bookstore/domain/Payment.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="270">
|
||||
<state relative-caret-position="-52">
|
||||
<caret line="23" column="35" lean-forward="true" selection-start-line="23" selection-start-column="35" selection-end-line="23" selection-end-column="35" />
|
||||
<folding />
|
||||
</state>
|
||||
@@ -988,12 +988,12 @@
|
||||
<workItem from="1488378219247" duration="650000" />
|
||||
<workItem from="1488461561430" duration="18419000" />
|
||||
<workItem from="1488731165185" duration="30270000" />
|
||||
<workItem from="1489159532831" duration="4518000" />
|
||||
<workItem from="1489159532831" duration="4800000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="96800000" />
|
||||
<option name="totallyTimeSpent" value="97082000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="72" y="23" width="1280" height="797" extended-state="0" />
|
||||
@@ -1017,7 +1017,7 @@
|
||||
<window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32907802" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32624114" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32624114" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Spring" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32907802" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32229403" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||
@@ -1512,7 +1512,7 @@
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/main/java/com/bookstore/domain/Payment.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="270">
|
||||
<state relative-caret-position="-52">
|
||||
<caret line="23" column="35" lean-forward="true" selection-start-line="23" selection-start-column="35" selection-end-line="23" selection-end-column="35" />
|
||||
<folding />
|
||||
</state>
|
||||
|
||||
@@ -237,9 +237,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- CREDIT CARD FORM ENDS HERE -->
|
||||
<div class="checkbox ">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="theSameAsShippingAddress " type="checkbox " name="billingSameAsShipping " value="true " /> The same as shipping address
|
||||
<input id="theSameAsShippingAddress" type="checkbox"
|
||||
name="billingSameAsShipping" value="true" (click)="setBillingAsShipping($event.target.checked)" /> The same as shipping
|
||||
address
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
|
||||
@@ -94,7 +94,6 @@ export class OrderComponent implements OnInit {
|
||||
this.payment.cvc = userPayment.cvc;
|
||||
this.payment.holderName = userPayment.holderName;
|
||||
this.payment.defaultPayment = userPayment.defaultPayment;
|
||||
this.payment.billingAddress.billingAddressName = userPayment.userBilling.userBillingName;
|
||||
this.payment.billingAddress.billingAddressStreet1 = userPayment.userBilling.userBillingStreet1;
|
||||
this.payment.billingAddress.billingAddressStreet2 = userPayment.userBilling.userBillingStreet2;
|
||||
this.payment.billingAddress.billingAddressCity = userPayment.userBilling.userBillingCity;
|
||||
@@ -103,6 +102,26 @@ export class OrderComponent implements OnInit {
|
||||
this.payment.billingAddress.billingAddressZipcode = userPayment.userBilling.userBillingZipcode;
|
||||
}
|
||||
|
||||
setBillingAsShipping(checked:boolean){
|
||||
console.log("same as shipping")
|
||||
|
||||
if(checked) {
|
||||
this.billingAddress.billingAddressStreet1 = this.shippingAddress.shippingAddressStreet1;
|
||||
this.billingAddress.billingAddressStreet2 = this.shippingAddress.shippingAddressStreet2;
|
||||
this.billingAddress.billingAddressCity = this.shippingAddress.shippingAddressCity;
|
||||
this.billingAddress.billingAddressState = this.shippingAddress.shippingAddressState;
|
||||
this.billingAddress.billingAddressCountry = this.shippingAddress.shippingAddressCountry;
|
||||
this.billingAddress.billingAddressZipcode = this.shippingAddress.shippingAddressZipcode;
|
||||
} else {
|
||||
this.billingAddress.billingAddressStreet1 = "";
|
||||
this.billingAddress.billingAddressStreet2 = "";
|
||||
this.billingAddress.billingAddressCity = "";
|
||||
this.billingAddress.billingAddressState = "";
|
||||
this.billingAddress.billingAddressCountry = "";
|
||||
this.billingAddress.billingAddressZipcode = "";
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.getCartItemList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user