Happpi PHP Library

removeSale()

removes the sale on a customer part.

Return Type

string

Required Parameters

Optional Parameters

    None

Dependencies

    Configuration->$CustomerID
    Configuration->$Key

Example:

<!-- removeSale() -->
<?php
	require_once('libraries/happpi/LoadAll.php'); // points to the LoadAll.php file for loading the library.

	// once the library is required, you can now use one of the main "interaction" classes.
	// These interaction classes contain methods that get information from our REST API and
	// converts them to PHP objects for you to use.
	$Customer = new CurtCustomer(); // create a new customer object to gain access to its functions.
	// make sure you set the required dependencies (customerID and key) in the Configuration file located in the happpi lib folder.
	
	$simpPricingObj = new CurtSimplePricing(); // create a SimplePricing object with values to pass to removeSale()
	$simpPricingObj->setCust_id("custID here");
	$simpPricingObj->setCustPartID("abc123a");
	$simpPricingObj->setPartID(11000);

	$Customer->removeSale($simpPricingObj); // reset part 11000 to list price.
?>