Questions about Payment Form extension

Invoice don't have currency symbol

  • Jibon
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 1 week ago - 1 month 1 week ago #170947 by Jibon
Invoice don't have currency symbol was created by Jibon
Hi,

The invoice PDF file don't have currency symbol which is creating confusion. Need to format pricing with currency:

components/com_pmform/Helper/Helper.php line 2355
Code:
        $replaces['AMOUNT']          = $replaces['ITEM_AMOUNT'] = $replaces['ITEM_SUB_TOTAL'] = self::formatAmount($row->total_amount, $config);         $replaces['DISCOUNT_AMOUNT'] = self::formatAmount($row->discount_amount, $config);         $replaces['SUB_TOTAL']       = self::formatAmount($row->total_amount - $row->discount_amount, $config);         $replaces['TOTAL_AMOUNT']    = self::formatAmount($row->gross_amount, $config);         $replaces['TAX_AMOUNT']      = self::formatAmount($row->tax_amount, $config);

instated use
Code:
self::formatCurrency

Thanks
Last edit: 1 month 1 week ago by Jibon.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #170949 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice don't have currency symbol
Hi

I do not want to introduce this change. The reason is because if someone already included the currency symbol inside the invoice layout, it will end up with duplicate

So for the time being, please insert the currency directly to invoice layout yourself

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Jibon
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 1 week ago #170950 by Jibon
Replied by Jibon on topic Invoice don't have currency symbol
Hi,

Thanks for reply but how about having multiple currency? In our case we are using Euro and USD for different forms. I think this is an important changes. If user are adding manually then they can easily remove.

Thanks

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #170951 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice don't have currency symbol
The problem is that they are not aware of this change during update, kind of backward incompatible change

Maybe I should introduce a new tags which including currency symbol. I will do that and update you when the new package is ready to download

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Jibon
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 1 week ago #170952 by Jibon
Replied by Jibon on topic Invoice don't have currency symbol
Thank you! In release post you can mark the changes in red text as well as.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #170953 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice don't have currency symbol
Not everyone read the release post before updating :)

Please Log in or Create an account to join the conversation.

  • Jibon
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 1 week ago #170954 by Jibon
Replied by Jibon on topic Invoice don't have currency symbol
In this case you can create tag [CURRENCY_SYMBOL] & [CURRENCY_NAME]. User can easily use that in invoice for dynamic update.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #170955 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice don't have currency symbol
So I updated code of the extension to show amount with currency. You can download latest package, update it to your site

Then edit invoice layout, change the tag, append _WITH_CURRENCY to these tags and it will be OK

For example, [AMOUNT_WITH_CURRENCY], [DISCOUNT_AMOUNT_WITH_CURRENCY], [TOTAL_AMOUNT_WITH_CURRENCY], [TAX_AMOUNT_WITH_CURRENCY]...

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Jibon
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 1 week ago #170956 by Jibon
Replied by Jibon on topic Invoice don't have currency symbol
Thank you for quick update! Now looks much better.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #170957 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice don't have currency symbol
You're welcome !

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc