Subversion Repositories SmartDukaan

Rev

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

Rev 17470 Rev 19832
Line 559... Line 559...
559
	    header.setWidget(1, 2, authorizePickup);
559
	    header.setWidget(1, 2, authorizePickup);
560
	    header.setWidget(1, 3, reshipOrder);
560
	    header.setWidget(1, 3, reshipOrder);
561
	    header.setWidget(1, 4, markLostInTransit);
561
	    header.setWidget(1, 4, markLostInTransit);
562
	    header.setWidget(1, 5, provisionallyCapturePaymentForOrder);
562
	    header.setWidget(1, 5, provisionallyCapturePaymentForOrder);
563
	    header.setWidget(1, 6, refundOrder);
563
	    header.setWidget(1, 6, refundOrder);
564
	    //header.setWidget(1, 7, unacceptOrder);
564
	    header.setWidget(1, 7, unacceptOrder);
565
	    
565
	    
566
	    addWeight.setText("Add weight");
566
	    addWeight.setText("Add weight");
567
	    changeColor.setText("Change Color WH Jacket Courier");
567
	    changeColor.setText("Change Color WH Jacket Courier");
568
	    addDelayReason.setText("Add Delay Reason");
568
	    addDelayReason.setText("Add Delay Reason");
569
	    markDelivered.setText("Mark Delivered");
569
	    markDelivered.setText("Mark Delivered");
Line 738... Line 738...
738
 
738
 
739
		unacceptOrder.addClickHandler(new ClickHandler() {
739
		unacceptOrder.addClickHandler(new ClickHandler() {
740
			
740
			
741
			@Override
741
			@Override
742
			public void onClick(ClickEvent event) {
742
			public void onClick(ClickEvent event) {
743
				if(unacceptOrder.isEnabled())
743
				if(unacceptOrder.isEnabled()){
744
					eventbus.fireEvent(new UnacceptOrderEvent(order));
744
					UnacceptConfirmationBox box = new UnacceptConfirmationBox(eventbus, order);
-
 
745
					box.center();				
-
 
746
				}
745
			}
747
			}
746
		});
748
		});
747
 
749
 
748
 
750
 
749
//		shiftWarehouse.addClickHandler(new ClickHandler() {
751
//		shiftWarehouse.addClickHandler(new ClickHandler() {
Line 790... Line 792...
790
            }
792
            }
791
        });
793
        });
792
	}
794
	}
793
	
795
	
794
	private void implementMaskForAdmin(){
796
	private void implementMaskForAdmin(){
-
 
797
		unacceptOrder.setEnabled(false);
795
		switch(mask){
798
		switch(mask){
796
        case CAPTURE_IN_PROCESS:
799
        case CAPTURE_IN_PROCESS:
797
            maskButtonsForAdmin(false, false, false, false, false, true, true, false); //Allow the OM to refund a COD order or an order with low inventory or when a customer calls or writes to cancel an order.
800
            maskButtonsForAdmin(false, false, false, false, false, true, true, false); //Allow the OM to refund a COD order or an order with low inventory or when a customer calls or writes to cancel an order.
798
            break;
801
            break;
799
        case VERIFICATION_PENDING:
802
        case VERIFICATION_PENDING:
800
        case NEW:
803
        case NEW:
801
        case NO_STOCK:
804
        case NO_STOCK:
802
        case ACCEPT:
-
 
803
        case BILL:
805
        case BILL:
804
			maskButtonsForAdmin(false, false, false, false, false, true, false, false); //Allow the OM to refund a COD order or an order with low inventory or when a customer calls or writes to cancel an order.
806
        	maskButtonsForAdmin(false, false, false, false, false, true, false, false); //Allow the OM to refund a COD order or an order with low inventory or when a customer calls or writes to cancel an order.
-
 
807
        	break;
-
 
808
        case ACCEPT:
-
 
809
        	maskButtonsForAdmin(false, false, false, false, false, true, false, false); //Allow the OM to refund a COD order or an order with low inventory or when a customer calls or writes to cancel an order.
-
 
810
        	unacceptOrder.setEnabled(true);
805
			break;
811
        	break;
806
		case DELIVERED:
812
		case DELIVERED:
807
			maskButtonsForAdmin(false, false, false, false, false, true, false, false);	//Allow the OM to flag and request pickup.
813
			maskButtonsForAdmin(false, false, false, false, false, true, false, false);	//Allow the OM to flag and request pickup.
808
			break;
814
			break;
809
		case DOA_REQUEST_AUTHORIZED:	
815
		case DOA_REQUEST_AUTHORIZED:	
810
			maskButtonsForAdmin(true, true, false, false, false, true, false, false);	//Allow the OM to flag and request pickup.
816
			maskButtonsForAdmin(true, true, false, false, false, true, false, false);	//Allow the OM to flag and request pickup.