Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015646Openbravo ERP02. Master data managementpublic2011-01-13 14:442011-05-24 10:57
adrianromero 
adrianromero 
urgentmajoralways
closedfixed 
5
3.0RC3 
 
Core
No
0015646: Not possible to process orders imported from POS when APR module is installed
When trying to process orders synchronized from POS (which are already in Import Orders) with APR installed you obtain error:

Process result:
*POS*03 - El pedido facturado tiene pagos creados desde el antiguo flujo de cobros y pagos. Por favor elimínelos antes de completarlos.

1. Synchronize POS with ERP and import one order
2. Master Data Management || Import Data || Import Orders || Import Order : press "Import Orders" and you will obtain error

Debugging the process (ImportOrder.java) problen is that field "paymentrule1) in table "i_order" is filled so process create record in "c_debt_payment" table.
Then when c_order_post is run error is thrown.

Import Order process should be modified to be compatible with APR module
closingMay2011
blocks backport 00155092.50MP26 closed adrianromero Not possible to process orders imported from POS when APR module is installed 
Issue History
2011-01-13 14:44adrianromeroNew Issue
2011-01-13 14:44adrianromeroAssigned To => adrianromero
2011-01-13 14:44adrianromeroModules => Core
2011-01-13 14:44adrianromeroIssue generated from0015509
2011-01-13 14:44adrianromeroRelationship addedblocks 0015509
2011-01-13 16:10hgbotCheckin
2011-01-13 16:10hgbotNote Added: 0033626
2011-01-13 16:10hgbotStatusnew => resolved
2011-01-13 16:10hgbotResolutionopen => fixed
2011-01-13 16:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ababf5fce9b1f5ff1ffaab799479ec33155956b9 [^]
2011-01-13 16:12adrianromeroNote Added: 0033628
2011-05-24 10:03dalsasuaTag Attached: closingMay2011
2011-05-24 10:57dalsasuaStatusresolved => closed

Notes
(0033626)
hgbot   
2011-01-13 16:10   
Repository: erp/devel/pi
Changeset: ababf5fce9b1f5ff1ffaab799479ec33155956b9
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Jan 13 16:09:46 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ababf5fce9b1f5ff1ffaab799479ec33155956b9 [^]

Fixes issue 0015646: Not possible to process orders imported from POS when APR module is installed
It has been added a condition that if the APRM moudle is installed, the import order process does not add old payments

---
M src/org/openbravo/erpCommon/ad_process/ImportOrder.java
---
(0033628)
adrianromero   
2011-01-13 16:12   
* Testing the issue

Synchronize some orders created in Openbravo POS and test that now this orders can be imported and completed with and without the APR module installed

* Other areas affected

This change only affects to the Import order process.