private boolean haveGroupOnInfo() { if (this.isTogetherMenu); do return false; while (NewCartManager.getInstance().groupOnDealId <= 0); return true; }
private double getTotalPrice() { if (this.isTogetherMenu) { TogetherCartManager localTogetherCartManager = TogetherCartManager.getInstance(); if (localTogetherCartManager.isOwner == 1) return localTogetherCartManager.getTotalPrice(); return localTogetherCartManager.getTotalPrice() + localTogetherCartManager.getOtherTotalPrice(); } return NewCartManager.getInstance().getTotalPrice(); }
private int getTotalOtherTypeDishCount() { if (this.isTogetherMenu) { TogetherCartManager localTogetherCartManager = TogetherCartManager.getInstance(); if (localTogetherCartManager.isOwner == 1) return localTogetherCartManager.getGenusTypeDishCount(-1); return localTogetherCartManager.getGenusTypeDishCount(-1) + localTogetherCartManager.getGenusFromOtherDish(-1); } return NewCartManager.getInstance().getTotalOtherTypeDishCount(); }
private int getTotalDishCount() { if (this.isTogetherMenu) { TogetherCartManager localTogetherCartManager = TogetherCartManager.getInstance(); if (localTogetherCartManager.isOwner == 1) return localTogetherCartManager.getTotalDishCount(); return localTogetherCartManager.getTotalDishCount() + localTogetherCartManager.getOtherTotalCount(); } return NewCartManager.getInstance().getTotalDishCount(); }
private int getTotalSelectFreeDishCount() { if (this.isTogetherMenu) return TogetherCartManager.getInstance().getTotalSelectFreeDishCount(); return NewCartManager.getInstance().getTotalSelectFreeDishCount(); }
private boolean hasHistoryFreeDish() { if (this.isTogetherMenu) return TogetherCartManager.getInstance().hasHistoryFreeDish(); return NewCartManager.getInstance().hasHistoryFreeDish(); }