Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0000570Openbravo ERP07. Sales managementpublic2008-06-06 17:572008-12-04 12:52
plujan 
gorkaion 
highminorhave not tried
closedfixed 
10XPsp2
2.40alpha-r2 
 
Core
No
0000570: TST240r2: POS order cannot be completed
I create an order type "POS order" and when trying to complete, I get an error:
      
Error:
There has been an error and the invoice couldn't be created

and the order status change to "Under way"
1. Move to Sales
2. Create an Order
3. Select "POS Order" as order type
4. Create a line
5. Back and complete. Error appears (see attach)
No tags attached.
related to feature request 0004350 acknowledged iciordia Calls to ComboReload callouts on Auxiliar Inputs 
related to defect 0010205 closed jonalegriaesarte SL_Order_Doctype returns non translated values 
related to defect 0021572 closed naiaramartinez Invoice Terms list in Return From Customer does not show all the options when the document is completed. 
related to defect 00275743.0PR15Q1 closed reinaldoguerra Invoice rule - Do not invoice not working in create lines from in purchase flow 
jpg r240r2_BUG_POSOrderError.JPG (90,171) 2008-06-06 17:57
https://issues.openbravo.com/file_download.php?file_id=65&type=bug
jpg

png POSOrder-SalesOrder.png (220,106) 2008-06-23 23:45
https://issues.openbravo.com/file_download.php?file_id=124&type=bug
png
Issue History
2008-06-06 17:57plujanNew Issue
2008-06-06 17:57plujanAssigned To => cromero
2008-06-06 17:57plujanFile Added: r240r2_BUG_POSOrderError.JPG
2008-06-09 13:01psarobeStatusnew => scheduled
2008-06-13 19:59cromeroTarget Version => 2.40
2008-06-21 22:45pjuvaraPrioritynormal => high
2008-06-23 23:45cromeroFile Added: POSOrder-SalesOrder.png
2008-06-23 23:47cromeroNote Added: 0007969
2008-06-23 23:47cromeroStatusscheduled => feedback
2008-06-23 23:48cromeroNote Edited: 0007969
2008-06-30 16:21psarobeTarget Version2.40 =>
2008-06-30 16:24psarobeStatusfeedback => scheduled
2008-06-30 16:37psarobeStatusscheduled => feedback
2008-07-01 17:56anonymoussf_bug_id0 => 2007934
2008-07-03 19:07cromeroNote Added: 0008162
2008-07-03 19:07cromeroAssigned Tocromero => gorkaion
2008-07-03 19:07cromeroStatusfeedback => new
2008-07-03 19:07cromeroStatusnew => scheduled
2008-07-03 19:07cromerofix_in_branch => trunk
2008-07-08 15:30gorkaionRelationship addedrelated to 0004350
2008-07-08 17:31svnbotCheckin
2008-07-08 17:31svnbotNote Added: 0008226
2008-07-08 17:31svnbotStatusscheduled => resolved
2008-07-08 17:31svnbotResolutionopen => fixed
2008-07-08 17:31svnbotsvn_revision => 5713
2008-12-04 12:52krishnaRegression testing => No
2008-12-04 12:52krishnaStatusresolved => closed
2009-09-23 12:13shuehnerRelationship addedrelated to 0010205
2015-10-07 17:38ngarciaRelationship addedrelated to 0021572
2015-10-07 17:45ngarciaRelationship addedrelated to 0027574

Notes
(0007969)
cromero   
2008-06-23 23:47   
(edited on: 2008-06-23 23:48)
I have tested and it has worked (See attach file POSOrder-SalerOrder.png).
Could you please provide me more details?

(0008162)
cromero   
2008-07-03 19:07   
The problem is that now, for the Document type POS order a callout is throw to put the invoice rule to After delivery. But if you clivk on New (so POS Order is selected by default) and you choose a client with an Invoice rule Customer schedule after delivery, it throws the error.

So, to solve this problem we should:
* Display the invoice rule field for POS Order.
* Filter the invoice rules in order to exclude the Customer schedule after delivery from the list for the POS Order
* Remove the callout that automatically set the invoice rule to After delivery when POS Order is selected
(0008226)
svnbot   
2008-07-08 17:31   
Repository: openbravo
Revision: 5713
Author: gorkaion
Date: 2008-07-08 17:31:29 +0200 (Tue, 08 Jul 2008)

Fixed bug 570.
Changed the display logic of the invoice terms combo to be shown when the Transaction Document is 'POS Order'.
Added a validation rule to the invoice terms combo to show only 'After Delivery', 'Immediate' and 'After Order delivered'.
It has been created a Feature Request (0004350) to make the validation rule work properly when the Transaction Document is changed, while this Feature Request is not done it has been modified the callout of the Transaction Document combo to filter the values of the Invoice terms combo. This modification should be removed when the feature request is done.

---
U trunk/src/org/openbravo/erpCommon/ad_callouts/SL_Order_DocType.java
U trunk/src-db/database/sourcedata/AD_COLUMN.xml
U trunk/src-db/database/sourcedata/AD_FIELD.xml
U trunk/src-db/database/sourcedata/AD_VAL_RULE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=5713&sc=1 [^]