Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008395Openbravo ERP07. Sales managementpublic2009-04-02 09:542009-05-05 00:00
pjuvara 
AinhoaPagola 
highmajoralways
closedfixed 
20rPath Linux
2.50beta 
2.50MP1 
Core
No
0008395: Wrong error message when cannot complete POS order
Upon completion a POS order creates a shipment and an invoice.
If for some reason the creation of one of those transaction fails, you cannot complete the order and a proper error message should be displayed.

Instead, a technical error message is displayed.

In this thread a user reports that @ERROR=! is displayed:
http://forge.openbravo.com/plugins/espforum/post.php?group_id=100&forumid=808030&topicid=6992703 [^]

I tried to reproduce it and when I choose a product that cannot be shipped because it does not quantity on hand availale, the system returns an error that only says hipment@
1) Login as Openbravo
2) Choose role Openbravo Admin, organization California
3) Navigate to Sales Management / Transactions / Sales Order
4) Create new sales order with
  Type = POS Order
  Business Partner = Asad, Corporation
  Line 10:
     Product = Corkscrew Black (the warehouse quantity is 0)
     Quantity 1
5) Complete the order

You get:
Error:
hipment@
250MP1
related to defect 0008477 closed vinothbabu Without Locator error occurs while Completing Sales Order 
related to defect 0008405 closed gorkaion A POS order (sales order) can not be reactivated more than once 
related to defect 0008485 closed gorkaion The complete process of sales order does not work with POS document type if the product has not stock 
related to defect 0008827 closed shuehner Not correctly treated exception in C_BANKSTATEMENT_POST 
Issue History
2009-04-02 09:54pjuvaraNew Issue
2009-04-02 09:54pjuvaraAssigned To => rafaroda
2009-04-02 09:54pjuvaraRegression testing => No
2009-04-09 17:45rafarodaAssigned Torafaroda => gorkaion
2009-04-09 17:45rafarodaStatusnew => scheduled
2009-04-09 17:46rafarodaRelationship addedrelated to 0008405
2009-04-09 17:46rafarodaRelationship addedrelated to 0008485
2009-04-09 17:46rafarodaNote Added: 0015312
2009-04-23 16:05psarobeTag Attached: 250MP1
2009-04-28 17:03rafarodaRelationship addedrelated to 0008477
2009-04-29 12:44AinhoaPagolaAssigned Togorkaion => AinhoaPagola
2009-04-29 12:53hgbotCheckin
2009-04-29 12:53hgbotNote Added: 0015911
2009-04-29 12:53hgbotStatusscheduled => resolved
2009-04-29 12:53hgbotResolutionopen => fixed
2009-04-29 12:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/68d5486342ac5751100f9a387612bfbb6e227015 [^]
2009-04-29 13:21AinhoaPagolaRelationship addedrelated to 0008827
2009-05-04 20:00psarobeStatusresolved => closed
2009-05-05 00:00anonymoussf_bug_id0 => 2786889

Notes
(0015312)
rafaroda   
2009-04-09 17:46   
In sampledata, use product Shields.
(0015911)
hgbot   
2009-04-29 12:53   
Repository: erp/devel/pi
Changeset: 68d5486342ac5751100f9a387612bfbb6e227015
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Wed Apr 29 12:45:57 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/68d5486342ac5751100f9a387612bfbb6e227015 [^]

Fixes bug 8395. Wrong error message when cannot complete POS order in PostgreSQL

---
M src-db/database/model/functions/C_ORDER_POST1.xml
M src-db/database/model/functions/M_INOUT_CREATE.xml
---