Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007695Openbravo ERP03. Procurement managementpublic2009-02-20 03:332009-04-22 00:00
bennyfake 
gorkaion 
highmajoralways
closedfixed 
10XP
2.50alpha-r11 
2.50 
Core
No
0007695: Purchase Order cannot complete and print error.
After create PO from "Requisition to Order", view Purchase Order but cannot editable. "Copy Line", "Copy from Order" and "Complete" button are blurred, unable to click (please see attachment of screen capture). When I click the print button on the menu bar, it throws ArrayIndexOutOfBound Exception.

This is the one and only one Purchase Order exists on my system.

Exception from TC6.0:
[http-9001-1] ERROR org.openbravo.erpCommon.utility.reporting.printing.PrintOrders - Error captured: java.lang.ArrayIndexOutOfBoundsException: 0
No tags attached.
png PO_ERROR.PNG (39,498) 2009-02-20 03:33
https://issues.openbravo.com/file_download.php?file_id=877&type=bug
png
Issue History
2009-02-20 03:33bennyfakeNew Issue
2009-02-20 03:33bennyfakeAssigned To => rafaroda
2009-02-20 03:33bennyfakeFile Added: PO_ERROR.PNG
2009-02-20 03:38bennyfakeIssue Monitored: bennyfake
2009-02-24 11:55rafarodaNote Added: 0013999
2009-02-24 11:55rafarodaAssigned Torafaroda => gorkaion
2009-02-24 11:55rafarodaStatusnew => feedback
2009-02-24 13:03gorkaionNote Added: 0014010
2009-02-25 03:11bennyfakeNote Added: 0014040
2009-02-27 13:24gorkaionNote Added: 0014154
2009-02-28 03:25bennyfakeNote Added: 0014180
2009-02-28 05:43bennyfakeNote Edited: 0014180
2009-03-02 07:20bennyfakeNote Added: 0014188
2009-03-03 10:12rafarodaNote Added: 0014272
2009-03-03 12:09gorkaionNote Added: 0014288
2009-03-06 08:34rafarodaPrioritynormal => high
2009-03-06 08:34rafarodaSeverityminor => major
2009-03-06 08:34rafarodaStatusfeedback => scheduled
2009-03-09 17:09hgbotCheckin
2009-03-09 17:09hgbotNote Added: 0014529
2009-03-09 17:09hgbotStatusscheduled => resolved
2009-03-09 17:09hgbotResolutionopen => fixed
2009-03-09 17:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2c03526a1576bad7a91429cb375d80b4e12d1af4 [^]
2009-04-21 10:33psarobeStatusresolved => closed
2009-04-22 00:00anonymoussf_bug_id0 => 2777974

Notes
(0013999)
rafaroda   
2009-02-24 11:55   
Gorka Ion,

Could you please determine whether this is a bug or not?

Thank you.
(0014010)
gorkaion   
2009-02-24 13:03   
Hi,

I'd say that it is a problem with the organizations. The order has been created in an organization that the user has no access. So that user with that role can view it but not modify.

We should review that the Purchase Orders are generated in the correct organization.
(0014040)
bennyfake   
2009-02-25 03:11   
Hi,

Additional information:

I created a Client (Client A) with an admin role (ClientAdmin) in the ERP system. I'm using Openbravo (System Admin) change the role to ClientAdmin to produce this problem.

I've checked the ClientAdmin role is granted to access the organization and [grant all] access to every module under [General Setup || Security || Role || Role ]. I verified the access right to [Purchase Order] is [Y] on both [Active] and [Editable Field] under [Window Access] tab.

I hope those information may help.
(0014154)
gorkaion   
2009-02-27 13:24   
Hi benny,

I've tried to reproduce it but I was unable.

I've done an initial client setup without accounting and created a new organization of type Legal Entity without accounting.

I've inserted a product and a vendor with the necessary setup to create a purchase order, locations, pricelist, warehouse, taxes...

I've created a Requisition complete it and generated the purchase order. It is not completed because I don't have a cashbok (I choosed cash on delivery as payment rule). But the Purchase Order is in the organization I created and it is editable.

Can you give me more detailed descriptions to reproduce the error? Otherwise I'd have to close the issue without changes. I'll try again later.

Thanks
(0014180)
bennyfake   
2009-02-28 03:25   
(edited on: 2009-02-28 05:43)
Hi Gorka,

Thank you for your reply, I found out the problem occur when create organization. The interesting thing is I can select organization in "order requisition" but can't in "purchase order" (the option box is blank).

Here is my procedure.
1. login openbravo
2. create client via "Initial Client Setup" with account file "AccountsSimplifiedUS06v5.csv".
3. Switch the role to client admin.
4. Create Organization via "Initial Organization Setup". "Organization type" is "Organization"
5. "Save" and "Set as Ready"
6. Create "order requisition". (create the compulsory item and select created organization)
7. Generate purchase order "requisition to order"
8. View Purchase Order.

I've tried to create PO simply on "create new record" menu button. The organization option box is blank.

Benny

(0014188)
bennyfake   
2009-03-02 07:20   
Hi All,

I over-looked organization type. As my organization type is "organization", it can't do any transaction. I can make a purchase order after change the organization type to "legal".

ref: http://wiki.openbravo.com/wiki/ERP/2.50/Configuration_Manual [^]

The following question is, "organization" type could make "order requisition" if it cannot complete the PO?

Benny
(0014272)
rafaroda   
2009-03-03 10:12   
Reminder sent to: gorkaion

Gorka Ion,

Could you please make a decision whether this is a defect or not?

Thanks.
(0014288)
gorkaion   
2009-03-03 12:09   
Hi,

Yes it is a defect. It shouldn't be possible to log requisitions in organizations where is not possible to have transactions.

Gorka Ion
(0014529)
hgbot   
2009-03-09 17:09   
Repository: erp/devel/pi
Changeset: 2c03526a1576bad7a91429cb375d80b4e12d1af4
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon Mar 09 17:08:55 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2c03526a1576bad7a91429cb375d80b4e12d1af4 [^]

Fixed bug 7695. Changed to 'Transaction' the window type of 'Requisition' and 'Manage Requisitions'.

---
M src-db/database/sourcedata/AD_WINDOW.xml
---