Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010804Openbravo ERP03. Procurement managementpublic2009-09-28 13:222009-10-12 09:09
networkb 
harikrishnan 
urgentmajoralways
closedfixed 
30
2.40MP9 
2.40MP102.40MP10 
Core
No
0010804: When creating purchases using manage requistion window the price adjustments are not correctly applied
When creating purchases using manage requistion window the price adjustments are not correctly applied. The discount is not extracted but added
1-Create a price adjustment with 10% of discount that applies only to a partner
2-Create an material requirement, selecting as business partner the partner selected on the price adjustment wiht only one line
3-complet the requeriment
4-click on the create purchase order button
5-See that the purchase order created has a line and under the line a price adjustment that is not correct. The price is the price of the product plus the discount instead of extracting the discount.

To check the differences you can create a purchase order manualli with the same partner and product and you will see that the price adjustments are different.
No tags attached.
blocks defect 00107892.40MP10 closed harikrishnan When creating purchases using manage requistion window the price adjustments are not correctly applied 
Issue History
2009-09-29 09:57rafarodaTypedefect => backport
2009-09-29 09:57rafarodafix_in_branch => 2.40
2009-10-05 11:34harikrishnanAssigned Torafaroda => harikrishnan
2009-10-06 09:22hgbotCheckin
2009-10-06 09:22hgbotNote Added: 0020731
2009-10-06 09:22hgbotStatusscheduled => resolved
2009-10-06 09:22hgbotResolutionopen => fixed
2009-10-06 09:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/fd2f4806fab3a58e1dd88964e53f2cb12395be37 [^]
2009-10-07 06:45harikrishnanNote Added: 0020800
2009-10-12 09:09sureshbabuStatusresolved => closed
2009-10-12 09:09sureshbabuNote Added: 0020934
2009-10-12 09:09sureshbabuFixed in Version => 2.40MP10

Notes
(0020731)
hgbot   
2009-10-06 09:22   
Repository: erp/stable/2.40
Changeset: fd2f4806fab3a58e1dd88964e53f2cb12395be37
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Tue Oct 06 12:48:54 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/fd2f4806fab3a58e1dd88964e53f2cb12395be37 [^]

Fixes issue 10804: When creating purchases using manage requisition window the price adjustments are not correctly applied

---
M src-db/database/model/functions/M_REQUISITION_CREATEPO.xml
---
(0020800)
harikrishnan   
2009-10-07 06:45   
Steps To Test:

1.Enter Data in Price Adjustment (Master Data Management || Pricing || Price Adjustments || Adjustments )

    Adjustments:
        Name :Sample Price Adjustment
        Starting Date :01-01-2009
        Ending Date :01-01-2020
        Discount % :8
        Included Business Partners :All Selected
        Included Products:All Selected
    Business Partner:
        Business Partner:McGiver Supplies

    Products:
        Product:Hat

Save the record.

2.Enter the values in Manage Requisitions (Procurement Management || Transactions || Manage Requisitions || Header )

    Header:
        Business Partner:McGiver Supplies
    Lines:
        Product:Hat
        Need by date:1 week from now.
        Quantity:1

Complete the Requisition.Click on button "Create Purchase Order" .A purchase order will be generated after this process.Note down the "Order No".

3.Go into Purchase Order(Procurement Management || Transactions || Purchase Order || Header ).Select the created purchase order from previous process.

In the lines Unit price is "24.84".

And in Price Adjustment Tab

    Price Adjustment :27
    Adjustment Amount:2.16.

The problem is offer price is not applied in the Order ,when it was created from Manage Requisitions.
(0020934)
sureshbabu   
2009-10-12 09:09   
Tested working fine