Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013282Openbravo ERP03. Procurement managementpublic2010-05-11 07:112010-06-15 10:13
arunkumar 
sathiyan 
normalmajorhave not tried
closedfixed 
5
pi 
 
Core
No
0013282: Callout does not work after checking the financial invoice line checkbox
Create a purchase invoice. Go to lines.First select a product. Net Unit price and Net list price will be updated automatically. Then select the financial invoice line check box and select any account. But still you can see the Net Unit Price and Net list price are same as the product. It should be refreshed.
• Login as HISAdmin/HISAdmin with “HISAdmin” role
• Go to Procurement Management - Transactions – Purchase Invoice – Header.
• Select the Organization “HISPublicOrg”.
• Select the Transaction document as AP Invoice.
• Select the business partner Vendor A
• Go to lines tab.
• Create a new record.
. Select a product. The unit price and list price will be updated automatically.
• Check the checkbox Financial Invoice Line. (This means an account is going to be entered instead of product - Product field will be removed).
• Select the GL item account “Asset account” in Account field.
. Now you can see the unit price and list price are not refreshed.
. Also If I try to create new line then I have got error message (Please refer the attached screenshot)
No tags attached.
jpg fininvoice.JPG (189,675) 2010-05-11 11:42
https://issues.openbravo.com/file_download.php?file_id=2544&type=bug
jpg
Issue History
2010-05-11 07:11arunkumarNew Issue
2010-05-11 07:11arunkumarAssigned To => sathiyan
2010-05-11 07:11arunkumarStatusnew => scheduled
2010-05-11 07:11arunkumarfix_in_branch => pi
2010-05-11 11:42arunkumarfix_in_branchpi =>
2010-05-11 11:42arunkumarSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=356#r356
2010-05-11 11:42arunkumarFile Added: fininvoice.JPG
2010-05-11 12:34sathiyanNote Added: 0027132
2010-05-11 12:34sathiyanStatusscheduled => resolved
2010-05-11 12:34sathiyanFixed in SCM revision => 4e80b0be5d5a
2010-05-11 12:34sathiyanResolutionopen => fixed
2010-05-11 13:26arunkumarNote Added: 0027135
2010-05-11 13:26arunkumarStatusresolved => new
2010-05-11 13:26arunkumarResolutionfixed => open
2010-05-12 06:28sathiyanNote Added: 0027154
2010-05-12 06:58arunkumarNote Added: 0027155
2010-05-12 06:58arunkumarStatusnew => closed
2010-05-12 06:58arunkumarResolutionopen => no change required
2010-05-13 00:00anonymoussf_bug_id0 => 3000771
2010-06-01 15:21hgbotCheckin
2010-06-01 15:21hgbotNote Added: 0027859
2010-06-01 15:21hgbotStatusclosed => resolved
2010-06-01 15:21hgbotResolutionno change required => fixed
2010-06-01 15:21hgbotFixed in SCM revision4e80b0be5d5a => http://code.openbravo.com/erp/devel/pi/rev/5d003df4a0f98070d36d3573b2cb46bc9d2864bb [^]
2010-06-03 22:49hudsonbotCheckin
2010-06-03 22:49hudsonbotNote Added: 0027940
2010-06-15 10:13arunkumarNote Added: 0028432
2010-06-15 10:13arunkumarStatusresolved => closed

Notes
(0027132)
sathiyan   
2010-05-11 12:34   
https://code.openbravo.com/erp/devel/pi-fininv/rev/4e80b0be5d5a [^]
(0027135)
arunkumar   
2010-05-11 13:26   
Sathiyan please follow the given steps.

Navigate to Procurement Management - Transactions – Purchase Invoice – Header.
• Select the Organization
• Select the Transaction document as AP Invoice.
• Select the business partner
• Go to lines tab.
• Create a new record.
. Select a product. The unit price and list price will be updated automatically.
• Check the checkbox Financial Invoice Line. (This means an account is going to be entered instead of product - Product field will be removed).
• Select the GL item account in Account field.
. Now you can see the unit price and list price are updated to 0.00.
. Then enter 20 in Net Unit price and save the record.
- You will see the error message as "
There is a constraint defined that was not satisfied. Please check the data entered"
(0027154)
sathiyan   
2010-05-12 06:28   
• Check the checkbox Financial Invoice Line. (This means an account is going to be entered instead of product - Product field will be removed).

Product field will be removed means we have to hide product field (display logic). It wont remove the product from the invoice line.

1) if you check the check box doesn't mean remove the product.

2) If you remove text in the product, it also doesn't mean we have removed product. Our selection screen of product(its not only in product, it the same in business partner and many more places in our apps) will behave little different. We have to go to selection of window of product and search with empty product id and we have to click on Cancel button(click on cancel...note this point:)). It is the mean of removing product id.

So we don't need to fix this through code.

Regards
Sathiyan.
(0027155)
arunkumar   
2010-05-12 06:58   
I agree with Sathiyan's comments. I will close the issue.
(0027859)
hgbot   
2010-06-01 15:21   
Repository: erp/devel/pi
Changeset: 5d003df4a0f98070d36d3573b2cb46bc9d2864bb
Author: Sathiyan Sivaprakasam <sathiyan.sivaprakasam <at> openbravo.com>
Date: Tue May 11 16:00:54 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/5d003df4a0f98070d36d3573b2cb46bc9d2864bb [^]

Fixes Issue 13282 : Reset the price list in callout

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Glitem.java
---
(0027940)
hudsonbot   
2010-06-03 22:49   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/5d003df4a0f9 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/c011484a38d9 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17407.obx [^]
(0028432)
arunkumar   
2010-06-15 10:13   
Tested working fine