Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010789Openbravo ERP03. Procurement managementpublic2009-09-28 13:222009-10-09 00:00
networkb 
harikrishnan 
urgentmajoralways
closedfixed 
30
2.40MP9 
2.40MP102.50MP7 
Core
No
0010789: 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.
related to defect 0010013 closed gmauleon Within the table C_orderLine, the default value in column cancelPriceAd bad set 
depends on backport 00108042.40MP10 closed harikrishnan When creating purchases using manage requistion window the price adjustments are not correctly applied 
Issue History
2009-09-28 13:22networkbNew Issue
2009-09-28 13:22networkbAssigned To => rafaroda
2009-09-29 09:57rafarodaPriorityimmediate => urgent
2009-09-29 09:57rafarodaStatusnew => scheduled
2009-09-29 09:57rafarodafix_in_branch => pi
2009-10-05 11:33harikrishnanAssigned Torafaroda => harikrishnan
2009-10-06 10:25rafarodaRelationship addedrelated to 0010013
2009-10-06 11:10hgbotCheckin
2009-10-06 11:10hgbotNote Added: 0020743
2009-10-06 11:10hgbotStatusscheduled => resolved
2009-10-06 11:10hgbotResolutionopen => fixed
2009-10-06 11:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c051b4f783cc876f879ee58b6965e3a795942baf [^]
2009-10-07 06:45harikrishnanNote Added: 0020799
2009-10-08 08:47sureshbabuStatusresolved => closed
2009-10-08 08:47sureshbabuNote Added: 0020858
2009-10-08 08:47sureshbabuFixed in Version => 2.50MP7
2009-10-09 00:00anonymoussf_bug_id0 => 2875128

Notes
(0020743)
hgbot   
2009-10-06 11:10   
Repository: erp/devel/pi
Changeset: c051b4f783cc876f879ee58b6965e3a795942baf
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Tue Oct 06 14:36:13 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/c051b4f783cc876f879ee58b6965e3a795942baf [^]

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

---
M src-db/database/model/functions/M_REQUISITION_CREATEPO.xml
---
(0020799)
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.
(0020858)
sureshbabu   
2009-10-08 08:47   
Tested working fine,