Subversion Repositories SmartDukaan

Rev

Rev 3729 | Rev 4004 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3729 Rev 3895
Line 187... Line 187...
187
				if(order.getJacketNumber()==0){
187
				if(order.getJacketNumber()==0){
188
					JacketInfoBox box = new JacketInfoBox(eventbus, order, user, billingType);
188
					JacketInfoBox box = new JacketInfoBox(eventbus, order, user, billingType);
189
					//box.clean();
189
					//box.clean();
190
					box.center();
190
					box.center();
191
				}else{
191
				}else{
192
					String invoiceGenerationUrl = "http://" + Window.Location.getHost() + Window.Location.getPath() + "invoice/";
-
 
193
					invoiceGenerationUrl += "?id=" +order.getOrderId();
192
					String invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId();
194
					if(billingType == BillingType.OURS)
193
					if(billingType == BillingType.OURS)
195
					    invoiceGenerationUrl += "&withBill=true";
194
					    invoiceGenerationUrl += "&withBill=true";
196
					else
195
					else
197
					    invoiceGenerationUrl += "&withBill=false";
196
					    invoiceGenerationUrl += "&withBill=false";
198
					Window.open(invoiceGenerationUrl, "newWindowName", "window features.");
197
					Window.open(invoiceGenerationUrl, "newWindowName", "window features.");