Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020931Openbravo ERP08. Project and service managementpublic2012-07-05 10:182012-09-03 16:20
malsasua 
caristu 
urgentmajoralways
closedfixed 
20Community Appliance
 
3.0MP15 
OBPS
Google Chrome
Core
No
0020931: expense sheet is created with line net amount 0
If you create an expense sheet line from grid, the line net amount is saved with 0

So, when you create the purchase invoice, the line net amount is 0
in F&B
. product: Cerveza Lager 0,5L (only this product is "expense type")
   product type: Expense type
. business partner: Javier Martinez
   purchase price list: Precios Bebidas Alegres
   PO Payment Method: transferencia
   PO Payment terms: 30 days
   PO Financial Account: Banco de EspaƱa - Cuenta 2

. Expense sheet:
   new:
    employee: Javier Martinez
 --> STEPS 1
 . Expense sheet line
   new in grid:
     product: Cerveza Lager 0.5L <press tab>
     quantity: 10 <press tab>
      <press tab> several times: the actual line is saved, and new line is created.
    the line 10 , in net unit price, the value is 0, and it should be null

 --> STEPS 2
 . Expense sheet line
   new in form:
     product: Cerveza Lager 0.5L (is selected by default)
     quantity: 10
     save record.
     refresh record:
      net unit price is 0 and it should be null
No tags attached.
related to defect 0021532 closed caristu Line net amount not updating properly in Oracle 
Issue History
2012-07-05 10:18malsasuaNew Issue
2012-07-05 10:18malsasuaAssigned To => mirurita
2012-07-05 10:18malsasuaWeb browser => Google Chrome
2012-07-05 10:18malsasuaModules => Core
2012-07-05 10:18malsasuaOBNetwork customer => Yes
2012-07-10 12:13naiaramartinezAssigned Tomirurita => jonalegriaesarte
2012-07-25 12:48jonalegriaesarteAssigned Tojonalegriaesarte => caristu
2012-07-25 12:48jonalegriaesarteWeb browserGoogle Chrome => Google Chrome
2012-07-25 12:48jonalegriaesarteTarget Version => 3.0MP14
2012-07-27 10:32caristuStatusnew => feedback
2012-07-31 17:18jonalegriaesarteWeb browserGoogle Chrome => Google Chrome
2012-07-31 17:18jonalegriaesarteNote Added: 0051041
2012-07-31 17:18jonalegriaesarteTarget Version3.0MP14 => 3.0MP15
2012-08-08 11:10hgbotCheckin
2012-08-08 11:10hgbotNote Added: 0051162
2012-08-08 11:10hgbotStatusfeedback => resolved
2012-08-08 11:10hgbotResolutionopen => fixed
2012-08-08 11:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d25b4678489abf35a1f18a676e7d333e20ad9286 [^]
2012-08-08 11:13caristuNote Added: 0051163
2012-08-30 10:23hgbotCheckin
2012-08-30 10:23hgbotNote Added: 0051665
2012-08-31 11:09hgbotCheckin
2012-08-31 11:09hgbotNote Added: 0051702
2012-09-01 01:03hudsonbotCheckin
2012-09-01 01:03hudsonbotNote Added: 0051745
2012-09-01 01:03hudsonbotCheckin
2012-09-01 01:03hudsonbotNote Added: 0051749
2012-09-03 12:52caristuRelationship addedrelated to 0021532
2012-09-03 16:20malsasuaNote Added: 0051783
2012-09-03 16:20malsasuaStatusresolved => closed

Notes
(0051041)
jonalegriaesarte   
2012-07-31 17:18   
Moved to MP15 due to other priorities
(0051162)
hgbot   
2012-08-08 11:10   
Repository: erp/devel/pi
Changeset: d25b4678489abf35a1f18a676e7d333e20ad9286
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Aug 08 10:59:04 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d25b4678489abf35a1f18a676e7d333e20ad9286 [^]

fixes issue 20931: expense sheet is created with line net amount 0

---
M src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java
---
(0051163)
caristu   
2012-08-08 11:13   
Solution applied:

When creating a new expense sheet line, the net unit price is updated with the price of the product in the business partner purchase price list.

If the product is not present in the price list or the business partner hasn't got a purchase price list assigned, then the net unit price field is leaving blank and the user must fill it.
(0051665)
hgbot   
2012-08-30 10:23   
Repository: erp/devel/pi
Changeset: 1549d7119a636ded0d153cba642263f64b52bd31
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Aug 30 10:04:37 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1549d7119a636ded0d153cba642263f64b52bd31 [^]

related to issue 20931: expense sheet is created with line net amount 0

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
M src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java
---
(0051702)
hgbot   
2012-08-31 11:09   
Repository: erp/devel/pi
Changeset: e364b1c3d2d7c3afd1bb3efcb90445c6005f2d5b
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Aug 31 11:08:22 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e364b1c3d2d7c3afd1bb3efcb90445c6005f2d5b [^]

related to issue 20931: fixes numeric comparation

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
M src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java
---
(0051745)
hudsonbot   
2012-09-01 01:03   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/05b3ea484705 [^]

Maturity status: Test
(0051749)
hudsonbot   
2012-09-01 01:03   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/05b3ea484705 [^]

Maturity status: Test
(0051783)
malsasua   
2012-09-03 16:20   
. steps to reproduce: OK
. create new line:
  . product is selected and net unit price is selected (from price list)
  . select other product: net unit price is changed to the price list of product selected
  . change the net unit price and select other product: net unit price is not changed

. code review: OK