<commit_before>NGApp.factory('RestaurantService', function( $rootScope, $resource, $routeParams, ResourceFactory) {

	var service = {};

	// this is the stuff for the restaurant order placement
	// and some for restaurant settlement. not sure what is used
	var restaurants = $resource( App.service + 'restaurants/:action', { action: '@action' }, {
			'list' : { 'method': 'GET', params : { 'action' : 'list' }, isArray: true },
			'no_payment_method' : { 'method': 'GET', params : { 'action' : 'no-payment-method' }, isArray: true },
			'paid_list' : { 'method': 'GET', params : { 'action' : 'paid-list' }, isArray: true },
			'order_placement' : { 'method': 'GET', params : { 'action' : 'order-placement' } },
			'eta' : { 'method': 'GET', params : { 'action' : 'eta' }, isArray: true },
			'weight_adjustment' : { 'method': 'GET', params : { 'action' : 'weight-adjustment' }, isArray: true },
			'save_weight' : { 'method': 'POST', params : { 'action' : 'save-weight' } },
			'save_notes_to_driver' : { 'method': 'POST', params : { 'action' : 'save-notes-to-driver' } },
		}
	);

	var restaurant = ResourceFactory.createResource( App.service + 'restaurants/:id_restaurant', { id_restaurant: '@id_restaurant'}, {
		'load' : {
			url: App.service + 'restaurant/:id_restaurant',
			method: 'GET',
			params : {}
		},
		'restaurant_query' : {
			method: 'GET',
			params : {}
		},
	});

	var payinfo = $resource( App.service + 'restaurant/payinfo/:action/:id_restaurant', { action: '@action' }, {
			'payment_method' : { 'method': 'GET', params : { 'action' : 'payment-method' } },
			'payment_method_save' : { 'method': 'POST', params : { 'action' : 'payment-method' } },
			'balanced_to_sprite' : { 'method': 'POST', params : { 'action' : 'balanced-to-stripe' } },
			'balanced_to_sprite_account' : { 'method': 'POST', params : { 'action' : 'balanced-to-stripe' } },
			'stripe' : { 'method': 'POST', params : { 'action' : 'stripe' } },
		}
	);

	service.list = function(params, callback) {
		restaurant.restaurant_query(params).$promise.then(function success(data, responseHeaders) {
			callback(data);
		});
	}

	service.weight_adjustment = function( params, callback ){
		restaurants.weight_adjustment( params,  function( data ){
			callback( data );
		} );
	}

	service.save_weight = function( params, callback ){
		restaurants.save_weight( params,  function( data ){
			callback( data );
		} );
	}

	service.save_notes_to_driver = function( params, callback ){
		restaurants.save_notes_to_driver( params,  function( data ){
			callback( data );
		} );
	}


	service.get = function(id_restaurant, callback) {
		restaurant.load({id_restaurant: id_restaurant}, function(data) {
			callback(data);
		});
	}

	service.shortlist = function( callback ){
		restaurants.list( function( data ){
			callback( data );
		} );
	}

	service.order_placement = function( callback ){
		restaurants.order_placement( function( data ){
			callback( data );
		} );
	}

	service.no_payment_method = function( callback ){
		restaurants.no_payment_method( function( data ){
			callback( data );
		} );
	}

	service.payment_method = function( id_restaurant, callback ){
		payinfo.payment_method( { id_restaurant: id_restaurant },  function( data ){
			callback( data );
		} );
	}

	service.payment_method_save = function( params, callback ){
		payinfo.payment_method_save( params,  function( data ){
			callback( data );
		} );
	}

	service.balanced_to_sprite = function( id_restaurant, callback ){
		payinfo.balanced_to_sprite( { id_restaurant: id_restaurant },  function( data ){
			callback( data );
		} );
	}

	service.balanced_to_sprite_account = function( params, callback ){
		payinfo.balanced_to_sprite_account( params,  function( data ){
			callback( data );
		} );
	}


	service.stripe = function( params, callback ){
		payinfo.stripe( params,  function( data ){
			callback( data );
		} );
	}



	service.paid_list = function( callback ){
		restaurants.paid_list( function( data ){
			callback( data );
		} );
	}

	service.eta = function( callback ){
		restaurants.eta( function( data ){
			callback( data );
		} );
	}


	service.yesNo = function(){
		var methods = [];
		methods.push( { value: 0, label: 'No' } );
		methods.push( { value: 1, label: 'Yes' } );
		return methods;
	}

	service.summaryMethod = function(){
		var methods = [];
		methods.push( { value: 'fax', label: 'Fax' } );
		methods.push( { value: 'email', label: 'Email' } );
		methods.push( { value: 'no summary', label: 'No Summary' } );
		return methods;
	}

	service.paymentMethod = function(){
		var methods = [];
		methods.push( { value: 'check', label: 'Check' } );
		methods.push( { value: 'deposit', label: 'Deposit' } );
		methods.push( { value: 'no payment', label: 'No Payment' } );
		return methods;
	}

	service.accountType = function(){
		var methods = [];
		methods.push( { value: 'individual', label: 'Individual' } );<commit_msg>Add "No Payment Method" and "No Summary Method" options for restaurants #6173<commit_after>NGApp.factory('RestaurantService', function( $rootScope, $resource, $routeParams, ResourceFactory) {

	var service = {};

	// this is the stuff for the restaurant order placement
	// and some for restaurant settlement. not sure what is used
	var restaurants = $resource( App.service + 'restaurants/:action', { action: '@action' }, {
			'list' : { 'method': 'GET', params : { 'action' : 'list' }, isArray: true },
			'no_payment_method' : { 'method': 'GET', params : { 'action' : 'no-payment-method' }, isArray: true },
			'paid_list' : { 'method': 'GET', params : { 'action' : 'paid-list' }, isArray: true },
			'order_placement' : { 'method': 'GET', params : { 'action' : 'order-placement' } },
			'eta' : { 'method': 'GET', params : { 'action' : 'eta' }, isArray: true },
			'weight_adjustment' : { 'method': 'GET', params : { 'action' : 'weight-adjustment' }, isArray: true },
			'save_weight' : { 'method': 'POST', params : { 'action' : 'save-weight' } },
			'save_notes_to_driver' : { 'method': 'POST', params : { 'action' : 'save-notes-to-driver' } },
		}
	);

	var restaurant = ResourceFactory.createResource( App.service + 'restaurants/:id_restaurant', { id_restaurant: '@id_restaurant'}, {
		'load' : {
			url: App.service + 'restaurant/:id_restaurant',
			method: 'GET',
			params : {}
		},
		'restaurant_query' : {
			method: 'GET',
			params : {}
		},
	});

	var payinfo = $resource( App.service + 'restaurant/payinfo/:action/:id_restaurant', { action: '@action' }, {
			'payment_method' : { 'method': 'GET', params : { 'action' : 'payment-method' } },
			'payment_method_save' : { 'method': 'POST', params : { 'action' : 'payment-method' } },
			'balanced_to_sprite' : { 'method': 'POST', params : { 'action' : 'balanced-to-stripe' } },
			'balanced_to_sprite_account' : { 'method': 'POST', params : { 'action' : 'balanced-to-stripe' } },
			'stripe' : { 'method': 'POST', params : { 'action' : 'stripe' } },
		}
	);

	service.list = function(params, callback) {
		restaurant.restaurant_query(params).$promise.then(function success(data, responseHeaders) {
			callback(data);
		});
	}

	service.weight_adjustment = function( params, callback ){
		restaurants.weight_adjustment( params,  function( data ){
			callback( data );
		} );
	}

	service.save_weight = function( params, callback ){
		restaurants.save_weight( params,  function( data ){
			callback( data );
		} );
	}

	service.save_notes_to_driver = function( params, callback ){
		restaurants.save_notes_to_driver( params,  function( data ){
			callback( data );
		} );
	}


	service.get = function(id_restaurant, callback) {
		restaurant.load({id_restaurant: id_restaurant}, function(data) {
			callback(data);
		});
	}

	service.shortlist = function( callback ){
		restaurants.list( function( data ){
			callback( data );
		} );
	}

	service.order_placement = function( callback ){
		restaurants.order_placement( function( data ){
			callback( data );
		} );
	}

	service.no_payment_method = function( callback ){
		restaurants.no_payment_method( function( data ){
			callback( data );
		} );
	}

	service.payment_method = function( id_restaurant, callback ){
		payinfo.payment_method( { id_restaurant: id_restaurant },  function( data ){
			callback( data );
		} );
	}

	service.payment_method_save = function( params, callback ){
		payinfo.payment_method_save( params,  function( data ){
			callback( data );
		} );
	}

	service.balanced_to_sprite = function( id_restaurant, callback ){
		payinfo.balanced_to_sprite( { id_restaurant: id_restaurant },  function( data ){
			callback( data );
		} );
	}

	service.balanced_to_sprite_account = function( params, callback ){
		payinfo.balanced_to_sprite_account( params,  function( data ){
			callback( data );
		} );
	}


	service.stripe = function( params, callback ){
		payinfo.stripe( params,  function( data ){
			callback( data );
		} );
	}



	service.paid_list = function( callback ){
		restaurants.paid_list( function( data ){
			callback( data );
		} );
	}

	service.eta = function( callback ){
		restaurants.eta( function( data ){
			callback( data );
		} );
	}


	service.yesNo = function(){
		var methods = [];
		methods.push( { value: 0, label: 'No' } );
		methods.push( { value: 1, label: 'Yes' } );
		return methods;
	}

	service.summaryMethod = function(){
		var methods = [];
		methods.push( { value: 'fax', label: 'Fax' } );
		methods.push( { value: 'email', label: 'Email' } );
		methods.push( { value: 'no summary', label: 'Does Not Need Summary' } );
		return methods;
	}

	service.paymentMethod = function(){
		var methods = [];
		methods.push( { value: 'check', label: 'Check' } );
		methods.push( { value: 'deposit', label: 'Deposit' } );
		methods.push( { value: 'no payment', label: 'Does Not Need Payment' } );
		return methods;
	}

	service.accountType = function(){
		var methods = [];
		methods.push( { value: 'individual', label: 'Individual' } );
{'fraction_non_alphanumeric': 0.1733023443815683, 'fraction_numerical': 0.0008084074373484236, 'mean_word_length': 3.9683734939759034, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6335102', 'n_tokens_mistral': 3622, 'n_tokens_neox': 3259, 'n_words': 723}