reverse time
This commit is contained in:
@@ -49,7 +49,4 @@ public class ApiConstants {
|
|||||||
public static final String PAYMENT_WEBVIEW_MAIN_PAGE_HTTP = "http://www.cucinaexpress.ch/";
|
public static final String PAYMENT_WEBVIEW_MAIN_PAGE_HTTP = "http://www.cucinaexpress.ch/";
|
||||||
public static final String PAYMENT_WEBVIEW_MAIN_PAGE_HTTPS = "https://www.cucinaexpress.ch/";
|
public static final String PAYMENT_WEBVIEW_MAIN_PAGE_HTTPS = "https://www.cucinaexpress.ch/";
|
||||||
|
|
||||||
public static final int DELAY_SELF_PICK_UP_AS_MINUTES = 15;
|
|
||||||
public static final int DELAY_FREE_SHIPPING_UP_AS_MINUTES = 20;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -527,10 +527,10 @@ public class CreateOrderSummaryFragment extends CreateOrderBaseFragment {
|
|||||||
}
|
}
|
||||||
else if(isTheSameDate &&
|
else if(isTheSameDate &&
|
||||||
createOrderActivity.getSelectedShippingMethod().getCode().toLowerCase().equals(ApiConstants.SHIPPING_METHOD_CODE_PICK_UP_FROM_STORE)){
|
createOrderActivity.getSelectedShippingMethod().getCode().toLowerCase().equals(ApiConstants.SHIPPING_METHOD_CODE_PICK_UP_FROM_STORE)){
|
||||||
nowDate.add( Calendar.MINUTE, ApiConstants.DELAY_FREE_SHIPPING_UP_AS_MINUTES);
|
nowDate.add( Calendar.MINUTE, 25);
|
||||||
}
|
}
|
||||||
else if(isTheSameDate){
|
else if(isTheSameDate){
|
||||||
nowDate.add( Calendar.MINUTE, ApiConstants.DELAY_SELF_PICK_UP_AS_MINUTES);
|
nowDate.add( Calendar.MINUTE, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
int orderYear = dateOfOrder.get(Calendar.YEAR);
|
int orderYear = dateOfOrder.get(Calendar.YEAR);
|
||||||
|
|||||||
Reference in New Issue
Block a user