Commit c56b253e authored by pborate's avatar pborate

Updated ecm-checkout.component.ts and ecm-checkout.component.html

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177332 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1bb4f8b9
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
<ng-template #reviewOrder> <ng-template #reviewOrder>
<div *ngFor="let item of cartItems" class="ecm-item-container row"> <div *ngFor="let item of cartItems" class="ecm-item-container row">
<div class="large-2 columns ecm-item-img"> <div class="large-2 columns ecm-item-img">
<bb-image [refId]='item.itemCode' [refSer]="'M-ITEM'" [object]="'ITEM'" [isSingleImage]="true" [isThumbnail]="true"></bb-image> <bb-image [refId]='item.itemCode' [refSer]="'M-ITEM'" [object]="'ITEM'" [isSingleImage]="true" [isThumbnail]="true" [enterprise]='enterpise'></bb-image>
</div> </div>
<div class="large-6 columns ecm-item-info"> <div class="large-6 columns ecm-item-info">
<span style="display: block;font-size: 16px;"> {{item.itemHeader.itemDescr}} </span> <span style="display: block;font-size: 16px;"> {{item.itemHeader.itemDescr}} </span>
......
...@@ -45,7 +45,7 @@ export class EcmCheckoutComponent implements OnInit ,DoCheck { ...@@ -45,7 +45,7 @@ export class EcmCheckoutComponent implements OnInit ,DoCheck {
@ViewChild('userForm') currentForm: NgForm; @ViewChild('userForm') currentForm: NgForm;
@Input() unAuthorized: boolean = false; @Input() unAuthorized: boolean = false;
maxDate = new Date(); //date upadted
checked = false; checked = false;
totalPrice:number = 0; totalPrice:number = 0;
cartItems; cartItems;
...@@ -61,6 +61,7 @@ export class EcmCheckoutComponent implements OnInit ,DoCheck { ...@@ -61,6 +61,7 @@ export class EcmCheckoutComponent implements OnInit ,DoCheck {
@ViewChild('addrAddScreen') addScreen: AddressScreenComponent; @ViewChild('addrAddScreen') addScreen: AddressScreenComponent;
@ViewChild('stepper') stepper: MatVerticalStepper; @ViewChild('stepper') stepper: MatVerticalStepper;
@ViewChild( 'ecmPanel' ) ecmPanel: EcmPanelComponent; @ViewChild( 'ecmPanel' ) ecmPanel: EcmPanelComponent;
enterpise = localStorage.getItem( 'ENTERPRISE' );
redirect : boolean = false; redirect : boolean = false;
cardList; cardList;
...@@ -247,7 +248,7 @@ export class EcmCheckoutComponent implements OnInit ,DoCheck { ...@@ -247,7 +248,7 @@ export class EcmCheckoutComponent implements OnInit ,DoCheck {
else else
{ {
this.unAuthorized=false; this.unAuthorized=false;
alert('Form sumited'); alert('Form sumited'); //To do this.openSnackBar( 'Form sumited ' );
this.store.dispatch(this.cartAction.resetCart()); this.store.dispatch(this.cartAction.resetCart());
this._location.back(); this._location.back();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment