Subversion Repositories SmartDukaan

Rev

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

Rev 4251 Rev 4265
Line 195... Line 195...
195
			
195
			
196
			@Override
196
			@Override
197
			public void onClick(ClickEvent event) {
197
			public void onClick(ClickEvent event) {
198
				if(!printInvoice.isEnabled())
198
				if(!printInvoice.isEnabled())
199
					return;
199
					return;
200
				if(order.getJacketNumber()==0){
200
				if(order.getJacketNumber()==0 && billingType == BillingType.OURS){
201
					JacketInfoBox box = new JacketInfoBox(eventbus, order, user, billingType);
201
					JacketInfoBox box = new JacketInfoBox(eventbus, order, user, billingType);
202
					//box.clean();
202
					//box.clean();
203
					box.center();
203
					box.center();
204
				}else{
204
				}else{
205
					String invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId();
205
					String invoiceGenerationUrl = GWT.getHostPageBaseURL() + "invoice/?id=" + order.getOrderId();
Line 244... Line 244...
244
		case ACCEPT:
244
		case ACCEPT:
245
		    //TODO: Mask buttons based on the billingType
245
		    //TODO: Mask buttons based on the billingType
246
		    if(billingType == BillingType.OURS)
246
		    if(billingType == BillingType.OURS)
247
		        maskButtonsForWE(false, false, false, false, true, true, false, false); // For our billing, allow the WE to directly print the invoive.
247
		        maskButtonsForWE(false, false, false, false, true, true, false, false); // For our billing, allow the WE to directly print the invoive.
248
		    else
248
		    else
249
		        maskButtonsForWE(false, false, false, false, false, true, false, false); //For external billing, allow the WE to feed the invoice info.
249
		        maskButtonsForWE(false, false, false, false, true, true, false, false); //For external billing, allow the WE to feed the invoice info.
250
			break;
250
			break;
251
		case REJECT:
251
		case REJECT:
252
			maskButtonsForWE(false, false, false, false, false, false, false, false); //Can't do anything once the order has been rejected.
252
			maskButtonsForWE(false, false, false, false, false, false, false, false); //Can't do anything once the order has been rejected.
253
			break;
253
			break;
254
		case BILL:
254
		case BILL: