Jump to content

koko20212021

Member
  • Posts

    13
  • Joined

  • Last visited

Everything posted by koko20212021

  1. any solution would be of real help, thanks!!
  2. Hi everyone. I have a little issue. On my invoices I had to add a second currency with static exchange rate - Default currency is EUR and I added also RON, with the following code. <td class="total-row text-center">{($item.amount|replace:'€':''|replace:'EUR':'' *4.95)|string_format:"%.2f"} RON</td> The issue is that if total is ex: €49,99Eur the equiv in RON will display ( on invoice pdf and view invoice ) with the earlier code : 242.55 RON But if we make a calculation: 49.99 x 4.95 = 247.45 What is wrong ?
  3. This made the trick and then replace the line with a $temp $temp = str_replace("€","", $trans['amount']); $temp = str_replace("Eur","", $temp); $temp = $temp*4.9; Maybe it will help others too
  4. Hi I am trying to apply this rule: <td class="total-row text-center">{($total|replace:'€':''|replace:'EUR':'' * 4.9)|string_format:"%.2f"} RON</td> Ex: The thing is that that line is not working if I edit it this way: foreach ($invoiceitems as $item) { $tblhtml .= ' <tr bgcolor="#fff"> <td align="left">' . nl2br($item['description']) . '<br /></td> <td align="center">' . $item['amount'] . '</td> <td align="center">{($total|replace:'€':''|replace:'EUR':'' * 4.9)|string_format:"%.2f"} RON</td> </tr>'; } Any help would be much appreciated for this line, thanks!
  5. I have found this script : http://www.heliosdesign.ro/resurse/php/preluare-curs-valutar.htm It seems it creating 2 tables in mysql - Curs ( rate ) & Valuta ( currency ) His sourse it seems not functional: https://www.bnr.ro/ro/info/curs_ext.asp i will try : https://www.bnr.ro/nbrfxrates.xml Not sure how will call these entries in my formula but will see :))
  6. I have found a way it seems to basicly grab daily rate from our National Bank and solve the history of currency, this is a small php script that does this: https://www.curs-valutar-bnr.ro/preluare-curs-valutar-bnr-script-php My question is how would I call this rate into my formula: <td class="total-row text-center">{($total|replace:'€':''|replace:'EUR':'' * 4.9)|string_format:"%.2f"} RON</td>
  7. This is a good idea. I am now .. partially solved my issue alone. What I did was to leave just 1 Default currency - Eur and I applyed on invoices tpl a simple formula : <td class="total-row text-center">{($total|replace:'€':''|replace:'EUR':'' * 4.9)|string_format:"%.2f"} RON</td> The best solution as u say, would be the use the national bank rate: https://www.bnr.ro/nbrfxrates.xml Not sure if there would be any solution, like to grab this line or data "<Rate currency="EUR">4.9257</Rate>" and have this as refference / history . I am not a programmer to do this
  8. it seems it can be solved by accountant these differences so it will not be a real issue
  9. Sounds cool, unfortinatley here is totally different :((( My situation is, I have company ID #A ( for example ) ID #A is available only in Romania and Rest of the world - Except European Countries. ID #B is a second id my company has, only for European countries. So i need to: display ID #A to Romania & Rest of the world display ID #B to European countries I need to make a hook to switch these 2 codes , based on user country , i supose PS I will also probably consult other accountants
  10. So my stage now is this: I have 2 currency: Default RON and EURO. On bouth i created separate Total/Value fields in bout - viewinvoice.tpl & invoicepdf.tpl , now I am wondering what should be the switch. I am thinking of making for each field: {$subtotal} {$taxrate}% {$credit} {$total} Different variable in Ron and Euro , so basicly no matter what currency client will chose between euro and ron will have them bouth
  11. Hello everyone. As deeper I go into this VAT issues as deeper it seems the issues 😞 . I need to display VAT Code "Your Tax ID/VAT Number" from vat settings, only to european countries. Upon checking and creating an invoice for a country outside europe - Australia, will keep display that code. Accountant said that this is not correct and it should be not displaid. Any ideas to solve this issues ? Thank you in advance
  12. Hi Clever host, could you please tell me how did you manage to solve this. You just edited the invoices .tpl ?
  13. Hello everyone. I do apoligise for opening this old thread, but I found it the moust relevand for my issue... again I need to display on invoice Ron and EUR. I setup as default Ron and second currency Eur, but accountant asked that the ones in euro would need to have visible the Ron as well. How is this possible, i tried to explain to accountant that to me is something very strange in this flow , ex: Customer chose Euro currency -- > he will pay with our payment provider Netopia --- > then he will get an invoice with Euro & Ron ( at a certain rate ) ---> Netopia will send an invoice/confirmation in Ron ( at their rate ) How will this be even possible to manage ? aaany kind of advice would be so much welcomed!!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated