Is it possible to modify the code so that any negative values, i.e. group pricing or reward points are stored as negative values in the ordertotals database table?
Is it possible to modify the code so that any negative values, i.e. group pricing or reward points are stored as negative values in the ordertotals database table?
You're going to have to do a database query to fix the values you already have. If someone doesn't post it before I get home I'll post it then.
For the code change to prevent future problems, here are the instructions.
http://thecartblog.com/2009/12/21/ze...counting-mods/
I notice that Edit Orders 3.0 has this problem partially fixed; I'll fix that at some point this month.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Moderator's note: thread moved to the appropriate forum.
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
I have latest version of edit orders.
I use reward points and group discount, these need to be stored as negative values in the order_totals table so that my exporting of sales data is shown correctly
This isn't an edit orders problem, as a fresh order stores the values as positive before I even look at the order. (checked in the database)
Right. It's your order export routine which needs improvement.
Zen Cart's architecture stores the 'value' field without a minus sign, because it knows that the line item is a negative amount based on the order total module used for that line item.
If you want to rewrite the core code to work entirely differently just so you don't need to change your export process, feel free.
If you go changing existing data then all your order details will show up incorrectly for your customers and in your admin panel.
Maybe you should change your export approach?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I'm using a mod on this website that is verified for version 1.5
monthly_sales_and_tax_summary_report_1-4
It isn't calculating my sales correctly.
The amount of "deductions" aren't adding up to the correct amount.
So what are you saying, go the other way? Make everything positive and then figure a solution from there.
Last edited by DigitalShadow; 19 Jan 2012 at 12:23 AM.
I switched to ver 1-3 as not on 1.5x
Right, if I update all values to be positive, everything should be grand.
Fix the edit/super orders problem with reward points and we are sorted.