Subversion Repositories SmartDukaan

Rev

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

Rev 9264 Rev 9266
Line 237... Line 237...
237
					//box.clean();
237
					//box.clean();
238
					box.center();
238
					box.center();
239
				} else{
239
				} else{
240
					String invoiceGenerationUrl = null;
240
					String invoiceGenerationUrl = null;
241
					if(warehouseID == 0) {
241
					if(warehouseID == 0) {
242
						invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId() + "&warehouse=" + order.getWarehouseId();
242
						invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId() + "&warehouse=" + order.getWarehouseId() + "&withBill=true";
243
					} else {
243
					} else {
244
						invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId() + "&warehouse=" + warehouseID;
244
						invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId() + "&warehouse=" + warehouseID;
-
 
245
						if(billingType == BillingType.OURS || billingType == BillingType.OURS_EXTERNAL)
-
 
246
						    invoiceGenerationUrl += "&withBill=true";
-
 
247
						else
-
 
248
						    invoiceGenerationUrl += "&withBill=false";
245
					}
249
					}
246
					if(billingType == BillingType.OURS || billingType == BillingType.OURS_EXTERNAL)
-
 
247
					    invoiceGenerationUrl += "&withBill=true";
-
 
248
					else
-
 
249
					    invoiceGenerationUrl += "&withBill=false";
-
 
250
					Window.open(invoiceGenerationUrl, "newWindowName", "window features.");
250
					Window.open(invoiceGenerationUrl, "newWindowName", "window features.");
251
				}
251
				}
252
			}
252
			}
253
		});
253
		});
254
		
254