Subversion Repositories SmartDukaan

Rev

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

Rev 4712 Rev 5110
Line 91... Line 91...
91
	private String user;
91
	private String user;
92
	private DetailsMask mask;
92
	private DetailsMask mask;
93
	private long warehouseID;
93
	private long warehouseID;
94
	private UserType userType;
94
	private UserType userType;
95
	private BillingType billingType;
95
	private BillingType billingType;
96
	private Map<Long, String> vendors;
96
	private Map<Long, String> warehouses;
97
	private Map<Long, String> providers;
97
	private Map<Long, String> providers;
98
	
98
	
99
	public OrderDetails(EventBus eventbus, Order order, Order order2, DetailsMask mask, String user, long warehouseID, UserType userType, BillingType billingType, Map<Long, String> vendors,  Map<Long, String> providers){
99
	public OrderDetails(EventBus eventbus, Order order, Order order2, DetailsMask mask, String user, long warehouseID, UserType userType, BillingType billingType, Map<Long, String> warehouses,  Map<Long, String> providers){
100
		this.eventbus = eventbus;
100
		this.eventbus = eventbus;
101
		this.order = order;
101
		this.order = order;
102
		this.transaction = order2;
102
		this.transaction = order2;
103
		this.mask = mask;
103
		this.mask = mask;
104
		this.user = user;
104
		this.user = user;
105
		this.warehouseID = warehouseID;
105
		this.warehouseID = warehouseID;
106
		this.userType = userType;
106
		this.userType = userType;
107
		this.billingType = billingType;
107
		this.billingType = billingType;
108
		this.vendors = vendors;
108
		this.warehouses = warehouses;
109
		this.providers = providers;
109
		this.providers = providers;
110
		
110
		
111
		initWidget(binder.createAndBindUi(this));
111
		initWidget(binder.createAndBindUi(this));
112
		initTableForWE();
112
		initTableForWE();
113
		if(this.userType == UserType.ADMIN){
113
		if(this.userType == UserType.ADMIN){
Line 219... Line 219...
219
			
219
			
220
			@Override
220
			@Override
221
			public void onClick(ClickEvent event) {
221
			public void onClick(ClickEvent event) {
222
				if(!printInvoice.isEnabled())
222
				if(!printInvoice.isEnabled())
223
					return;
223
					return;
224
				if(order.getJacketNumber()==0 && billingType == BillingType.OURS){
224
				if(order.getJacketNumber()==0 && billingType == BillingType.OURS) {
225
					JacketInfoBox box = new JacketInfoBox(eventbus, order, user, billingType, vendors);
225
					JacketInfoBox box = new JacketInfoBox(eventbus, order, user, billingType, warehouses);
226
					//box.clean();
226
					//box.clean();
227
					box.center();
227
					box.center();
228
				}else{
228
				} else{
229
					String invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId() + "&warehouse=" + warehouseID;
229
					String invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId() + "&warehouse=" + warehouseID;
230
					if(billingType == BillingType.OURS)
230
					if(billingType == BillingType.OURS)
231
					    invoiceGenerationUrl += "&withBill=true";
231
					    invoiceGenerationUrl += "&withBill=true";
232
					else
232
					else
233
					    invoiceGenerationUrl += "&withBill=false";
233
					    invoiceGenerationUrl += "&withBill=false";