-->
Welcome, Guest
Username: Password: Remember me
You can also tweak your setup of Dolibarr by setting hidden configurations found in Dolibarr Setup Other

TOPIC: How 2 display the GST Rate [localtax1& localtax2]

How 2 display the GST Rate [localtax1& localtax2] 8 months 5 days ago #36491

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 50
  • Thank you received: 1
  • Karma: 2
How do I display the localtax1 and localtax2 rates in custom ODT. What are the tags for them. I can get the total numerical value but not the percentages to display in the table.

crabe generates it seamlessly however, I am unable to achieve the same.

Any help in this regard would be appreciated.
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36609

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 50
  • Thank you received: 1
  • Karma: 2
Guys any help on this?
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36613

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 383
  • Thank you received: 99
  • Karma: 18
Hi,

Evertihing is in there : https://wiki.dolibarr.org/index.php/Create_an_ODT_document_template

The localtax1 and localtax2 rates TAG doesn't exist.

Either you create it by your self or you open a Feature Request on Git : https://github.com/Dolibarr/dolibarr/issues
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36616

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 50
  • Thank you received: 1
  • Karma: 2
Hi,

I tried creating it. However couldn't achieve the desired results.

There should be a simpler method as the same is achieved in the crabe file

Could you please guide me on this.
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36638

  • alanq
  • alanq's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 3
  • Karma: 0
I couldn't achieve the desired results.
192.168.0.1
Last Edit: 7 months 3 weeks ago by alanq.
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36657

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 50
  • Thank you received: 1
  • Karma: 2
Hi,

So this is the edit suggested by Eldy and I believe it should be included in the future updates.

Update your file located in htdocs/core/class/ and edit the file commondocgenerator.php

Delete line number 542 which should be 'line_up'=>price2num($line->subprice),

and add the following 3 lines
'line_localtax1_vatrate'=>vatrate($line->localtax1_tx),
'line_localtax2_vatrate'=>vatrate($line->localtax1_tx),
'line_up'=>price2num($line->subprice),

Then in your ODT use the tag line_localtax1_vatrate and line_localtax2_vatrate

Thats it.
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36658

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 50
  • Thank you received: 1
  • Karma: 2
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36661

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 383
  • Thank you received: 99
  • Karma: 18
Thanks,

So it will be integrated in V10...
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36662

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 50
  • Thank you received: 1
  • Karma: 2
Dont know which version it would include probably in 9.0.2. If they release one before V10
The administrator has disabled public write access.

How 2 display the GST Rate [localtax1& localtax2] 7 months 3 weeks ago #36663

  • h6585
  • h6585's Avatar
  • OFFLINE
  • Senior
  • Posts: 50
  • Thank you received: 1
  • Karma: 2
This lead me into another problem in my ODT.

In my product description and rate table if I have 3 rows of products a table of only 3 rows is generated whereas in crabe module we have a set table size so it doesn't matter if you have 2 product rows or 10 product rows. Trying to figure out a similar set up in my ODT.

How can it be achieved?
The administrator has disabled public write access.
Time to create page: 0.073 seconds