12.07.2015 Views

Admin Guide - VoIP software provider

Admin Guide - VoIP software provider

Admin Guide - VoIP software provider

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10: All times11: Other Times (Rest)example: v_getprice '1','36301234567',6555,'003615555555','150',666,-1,4,2,99,99,4,11,41,500The v_getprice stored procedure will return the following fields:tb_billentries.currency,tb_billingtimes.isdiff,tb_billingtimes.origprice,tb_billingtimes.price, tb_billentries.billingstep,tb_billentries.minammount,tb_billentries.freeammount,tb_billentries.freeafter,tb_billentries.vatincluded, tb_billentries.vatvalue,tb_billentries.converttonative,tb_billentries.converttovatAccording to returned billing settings, the price is calculated accordingly.If there are no price defined, than default price are loaded. (if set)If there are no sales price defined, than will be loaded from user setting (commission)For enduser prices, the discounts and userreductions are applied if set so. Then the user credit is updated.If there are any error with the billing process, than the default prices are applied if exists.Billing verification:List the required CDR records with “Show minute price option”You can find the billing logs if you search for the called number in the server logs.Copy the required v_getprice log in the direct query form.Check if the returned values are as expected.4.5.8. Invoice and payment storageInvoices and payments are stored in tb_invoices in the database. So the invoices can be searched, recreated and storno invoice can be built basedon existing invoices (conforming to Hungarian laws).The last invoice number are loaded from database before every new invoice and incremented. Thus the invoice number increment is guaranteedthe by database engine transactional behavior.The following fields are defined:ID: autoincrement database primary keyType:0=All or Recreate (technical)1=Report

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!