[Vtigercrm-developers] vtws_retrieve returns incorrect data for Inventory records.
Alan Lord
alanslists at gmail.com
Wed Sep 23 13:09:48 GMT 2020
Could someone else confirm this before I raise a ticket please?
Create a product and a service. Give them some taxes.
Create a Quote with the product and service, first using Group Tax Mode,
then duplicate it, edit it and use Individual tax mode setting some
taxes on each line item.
The totals shown on-screen should be different, as they are. See
attached screenshots.
Then, using a simple test script retrieve the data for each of the two
quote ids using vtws_retrieve and dump the results using print_r or
something to text files.
Take a look at the values provided in the final_details array of the
LineItems_FinalDetails array... When your inventory record is in
Individual Tax Mode, the tax_totalamount is completely wrong!
Also, each LineItem in LineItems_FinalDetails, in Individual tax mode,
the *netPrice* value contains the price *Including Taxes* ;-)
Sheesh.
Al
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quote-indv-tax-mode.png
Type: image/png
Size: 62203 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200923/22caa1a9/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quote-group-tax-mode.png
Type: image/png
Size: 59638 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200923/22caa1a9/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2020-09-23 14-06-37.png
Type: image/png
Size: 32557 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200923/22caa1a9/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2020-09-23 14-06-12.png
Type: image/png
Size: 164263 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200923/22caa1a9/attachment-0007.png>
More information about the vtigercrm-developers
mailing list