Class accounting_fees

Description

Function to handle accounting fee logic

  • author: ILance
  • version: $Revision: 1.0.0 $

Located in /api/class.accounting_fees.inc.php (line 28)

accounting
   |
   --accounting_fees
Method Summary
bool construct_final_value_donation_fee ([integer $pid = 0], [integer $amount = 0], [string $mode = 'charge'])
bool construct_final_value_fee ([integer $bidid = 0], [integer $cid = 0], [integer $pid = 0], [string $mode = ''], [string $cattype = ''], [ $bidgrouping = true])
Variables

Inherited Variables

Inherited from accounting

accounting::$currencyid
Methods
construct_final_value_donation_fee (line 628)

Functions for creating a final value donation fee based on particular donation setup. Additionally, this function can be used to charge or refund the seller based on the final value fee donation amount originally generated.

  • return: Returns true or false based on the creation of the final value fee or refund
bool construct_final_value_donation_fee ([integer $pid = 0], [integer $amount = 0], [string $mode = 'charge'])
  • integer $pid: project id
  • integer $amount: winning bid amount or buy now price
  • string $mode: fee creation mode (charge or refund)
construct_final_value_fee (line 48)

Functions for creating a final value fee based on a bid id, category id and project id.

This function will take the bid id, cat id and project id to determine the final value fee to charge (or refund) to a user based on an awarded auction they accepted to complete within this particular category. Note: The buyer has ability to unaward this awarded bid, if this happens the service provider or merchant still owes the final value fee even if the project is unawarded. Note 2: This function will now check to see if funds exist in online account and will auto-debit the fvf if possible.

  • return: Returns true or false based on the creation of the final value fee or refund
bool construct_final_value_fee ([integer $bidid = 0], [integer $cid = 0], [integer $pid = 0], [string $mode = ''], [string $cattype = ''], [ $bidgrouping = true])
  • integer $bidid: bid id
  • integer $cid: category id
  • integer $pid: project id
  • string $mode: final value fee creation mode (charge or refund)
  • string $cattype: category type (service or product)
  • $bidgrouping

Inherited Methods

Inherited From accounting

accounting::check_currency()
accounting::creditcard_country_pulldown()
accounting::creditcard_month_pulldown()
accounting::creditcard_type_pulldown()
accounting::creditcard_year_pulldown()
accounting::insert_bank_account()
accounting::insert_creditcard()
accounting::insert_transaction()
accounting::print_bank_account_type_pulldown()
accounting::print_destination_currency_pulldown()
accounting::process_credential_payment()
accounting::process_debit_payment()
accounting::remove_bank_account()
accounting::remove_creditcard()
accounting::update_bank_account()
accounting::update_creditcard()
accounting::verify_creditcard_mod10()

Documentation generated on Mon, 08 Aug 2011 17:40:45 +0200 by phpDocumentor 1.4.1