details:   /erp/devel/pi/rev/7d754f62937e
changeset: 10764:7d754f62937e
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Fri Feb 18 08:56:44 2011 +0100
summary:   Fixed document number setting

Use actual tablename instead of hardcoded C_Order one

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/SetDocumentNoHandler.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3e2d582fe956 -r 7d754f62937e 
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/SetDocumentNoHandler.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/SetDocumentNoHandler.java
     Fri Feb 18 08:18:39 2011 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/SetDocumentNoHandler.java
     Fri Feb 18 08:56:44 2011 +0100
@@ -83,7 +83,7 @@
         // recompute it
         documentNo = 
Utility.getDocumentNo(OBDal.getInstance().getConnection(false),
             new DalConnectionProvider(false), 
RequestContext.get().getVariablesSecureApp(),
-            windowId, Order.TABLE_NAME, docTypeTargetId, docTypeId, false, 
true);
+            windowId, entity.getTableName(), docTypeTargetId, docTypeId, 
false, true);
         event.setCurrentState(documentNoProperty, documentNo);
       }
     }

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to