Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027338Openbravo ERP07. Sales managementpublic2014-08-14 15:552014-08-14 15:56
rafaroda 
dmiguelez 
normalminoralways
newopen 
5
 
 
Core
No
0027338: Review deleting logic of tax lines in C_ORDERLINE_TRG2
When posting a Sales Order, logic for recreating the tax lines should be reviewed in order to modify existing ones instead of deleting and recreating them.

This is the second part of the issue 0027023.
Taken from issue 0027023

Using PG:
-Enable function statistics:
  -In postgresql.conf set track_functions = all
  -/etc/init.d/postgresql reload
-Create a sales order with one line
-Reset pg statistics: select pg_stat_reset();
-Book it
  * Check function calls: select funcname, calls, total_time, self_time from pg_stat_user_functions order by self_time desc
Review delete logic of C_ORDERLINE_TRG2 trigger https://code.openbravo.com/erp/devel/pi/file/085ea1fce739/src-db/database/model/triggers/C_ORDERLINE_TRG2.xml#l93 [^]

See issue 0027023 for more information.
No tags attached.
related to defect 0027023 closed vmromanos Order line taxes are regenerated on all order line changes 
related to defect 00290733.0PR15Q2 closed umartirena Review deleting logic of tax lines in C_INVOICELINE_TRG2 
Issue History
2014-08-14 15:55rafarodaNew Issue
2014-08-14 15:55rafarodaAssigned To => dmiguelez
2014-08-14 15:55rafarodaModules => Core
2014-08-14 15:55rafarodaTriggers an Emergency Pack => No
2014-08-14 15:56rafarodaRelationship addedrelated to 0027023
2015-02-26 11:30egoitzRelationship addedrelated to 0029073

There are no notes attached to this issue.