Menu

Wrong Invoce Calulation in PSA 1.8.5

Daniel
2012-07-14
2012-09-14
  • Daniel

    Daniel - 2012-07-14

    Hello

    The Invoice ignore the "numberToBasic" Value in the "currencyType" Table

    so the amount is multiplied with 100 if I use "numberToBasic" = 2

    If there a possiblity to add into the standard the followed function into
    Timesheet and Invoices

    function rndfunc($x){ return round($x * 2, 1) / 2; }

    to round to 5 Cents (with is the smallst unit for CHF)

     
  • Alex Lance

    Alex Lance - 2012-07-14

    Hi rutzd,

    Forgive my ignorance, but are you telling me that there's no such

    thing as (eg) the amount 1.29 in swiss francs? Even in terms of bank

    transfers, credit cards etc?

    In Australia the smallest denomination coin is a 5 cent coin, but at the

    supermarket even though prices can be found in not-multiples-of-five

    (eg: chewing gum might cost $1.29) but when you go to pay it, if you

    pay with a credit card then exactly $1.29 is paid, but if you pay with

    cash/coins then the supermarket will round it off to $1.30.

    I would have thought that entering a number-to-basic of 2 for the Swiss

    Franc is what you want, as that will round it to 2 decimal places

    (although it won't round it to multiples of 5).

    If you require that the final digit of the amounts are either a 5 or 0,

    then in the short-term you might have to do the rounding off yourself,

    by either adjusting the amounts manually or modifying the code yourself.

    If you would like to provide me with more information then I can examine

    the situation and ensure that the behaviour you are experiencing isn't

    simply a programming error.

    Let me know what you decide to do!

    Kind regards,

    Alex Lance

    http://allocPSA.com

     
  • Daniel

    Daniel - 2012-08-09

    Hello Alex

    Sorry for my long response time (I was i vacation :-) )

    Wath you state is correct, but in Switzerland it is not usuel to send an
    Service Report or an Invoice with an amount of SFr. 79.73.

    I found an description to round to 0.05 at

    http://pastebin.com/6KXLsujm

    I will try to add this function for Switzerland my self

    Thanks for you quick and proffesional responses

    Daniel Rutz

     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo