View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000691 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2009-03-11 09:32 | 2012-12-10 13:45 |
Reporter | sigmarkress | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Summary | 0000691: OXTOTALNETSUM, OXTOTALBRUTSUM and OXTOTALORDERSUM are filled with 0 | ||||
Description | After update.sql the entries from old orders (pe3.0.4.1 or ee) (in fields OXTOTALNETSUM, OXTOTALBRUTSUM and OXTOTALORDERSUM) are filled with 0. The value is wrong. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.3 | ||||
Database Version | 5.0.33 | ||||
|
@dainius_bigelis from version PE 3.0.4.1 to PE 4.0.0.1 |
|
Reminder sent to: sigmarkress Hi, These columns are made only for external use only (if there are some special modules written), and are not used by general eShop source code. So we are planning to drop these columns in some next Major eShop version release (in future). |
|
Columns are made only for user convenience and not used by eShop source code. Columns will be droped in some next Major version release. |
|
hi, in "core/oxorder.php" on line 1578 you use the field oxorder__oxtotalbrutsum for "$this->ftotalbrutsum" and in out/admin/tpl/order_overview.tpl you use "$edit->ftotalbrutsum" Old orders are filled with 0 an new Orders are okay! |
|
@Developers: please check the refered source code places, if these columns are realy used by eShop source code. If used - need to discuss about the purpose of these columns (is it necessary for eShop or only made forexternal use). |
|
and??? |
|
Reminder sent to: sigmarkress These fields after update were left empty because precise calculation is not possible. If you still need to have at least some close to real values, here is an update query: UPDATE `oxorder` AS _main SET _main.oxtotalordersum = _main.oxdelcost + _main.oxpaycost + _main.oxwrapcost - _main.oxdiscount + ( SELECT SUM( oxbrutprice ) FROM `oxorderarticles` WHERE oxorderid = _main.oxid ), _main.oxtotalbrutsum = ( SELECT SUM( oxbrutprice ) FROM `oxorderarticles` WHERE oxorderid = _main.oxid ), _main.oxtotalnetsum = ( SELECT SUM( oxnetprice ) FROM `oxorderarticles` WHERE oxorderid = _main.oxid ) WHERE _main.oxtotalnetsum = 0 AND _main.oxtotalbrutsum = 0 AND _main.oxtotalordersum = 0; |
|
NOTICE: query fill up values for all three fiels, by writing: oxtotalnetsum = order articles net price sum oxtotalbrutsum = order articles brut price sum oxtotalordersum = delivery costs + payment costs + wrapping costs - discount value + order articles brut price sum |
|
The problem is only in the orders, which habe been made in old version and remain in shop after upgrade to new version. With orders, made in eShop v.4 there are no such problems. This may be solved by executing the SQL query once (see comments above) and no general fix in the shop is needed. |