Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018614Openbravo ERP01. General setuppublic2011-09-26 17:012011-11-18 11:52
jecharri 
ioritzCia 
urgentminoralways
closedfixed 
5
2.50MP33 
2.50MP362.50MP36 
Google Chrome
Core
No
0018614: Default PaymentTerm is not working
If you have one paymenterm defined like a default and you have one Business Partner who has not payment term defined, the application doesn't put the default payment term, it put the first payment term.
As Admin go to Payment Tem window and verifie that you have the payment term Inmediate put as default.

Now go to Business Partner window and select mcgiver. In the tab customer put empty the field Payment Terms.

After that, create one sales invoice with the BP McGiver and see that the payment term has not been updated correctly. The payment term is Fifteen Day, the first item of the payment terms.
No tags attached.
blocks defect 00186133.0MP6 closed ioritzCia Default PaymentTerm is not working 
Issue History
2011-09-26 17:01jecharriTypedefect => backport
2011-09-26 17:01jecharrifix_in_branch => 2.50
2011-11-09 19:01jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2011-11-15 10:54hgbotCheckin
2011-11-15 10:54hgbotNote Added: 0042819
2011-11-15 10:54hgbotStatusscheduled => resolved
2011-11-15 10:54hgbotResolutionopen => fixed
2011-11-15 10:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/64d0b576207dda920460dc9f283fe40095090492 [^]
2011-11-15 17:02jecharriNote Added: 0042844
2011-11-15 17:02jecharriStatusresolved => closed
2011-11-15 17:02jecharriFixed in Version => 2.50MP36
2011-11-17 17:27hgbotCheckin
2011-11-17 17:27hgbotNote Added: 0042952
2011-11-17 17:27hgbotStatusclosed => resolved
2011-11-17 17:27hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.50/rev/64d0b576207dda920460dc9f283fe40095090492 [^] => http://code.openbravo.com/erp/stable/2.40/rev/13d869e662f5f1851f085944ace0167805d912df [^]
2011-11-18 09:02hgbotCheckin
2011-11-18 09:02hgbotNote Added: 0042964
2011-11-18 09:02hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.40/rev/13d869e662f5f1851f085944ace0167805d912df [^] => http://code.openbravo.com/erp/stable/2.50/rev/1b99970df154a893e79380c482aa3c05fd01ac5e [^]
2011-11-18 11:52jecharriNote Added: 0042974
2011-11-18 11:52jecharriStatusresolved => closed

Notes
(0042819)
hgbot   
2011-11-15 10:54   
Repository: erp/stable/2.50
Changeset: 64d0b576207dda920460dc9f283fe40095090492
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Mon Nov 14 09:23:11 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/64d0b576207dda920460dc9f283fe40095090492 [^]

Fixes issue 18614: Default PaymentTerm is not working.

---
M src/org/openbravo/erpCommon/ad_callouts/SE_Invoice_BPartner.java
M src/org/openbravo/erpCommon/ad_callouts/SE_Order_BPartner.java
M src/org/openbravo/erpCommon/businessUtility/BpartnerMisc_data.xsql
---
(0042844)
jecharri   
2011-11-15 17:02   
fixed
(0042952)
hgbot   
2011-11-17 17:27   
Repository: erp/stable/2.40
Changeset: 13d869e662f5f1851f085944ace0167805d912df
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Thu Nov 17 17:23:33 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.40/rev/13d869e662f5f1851f085944ace0167805d912df [^]

Fixes issue 18614: Default PaymentTerm is not working.
Had to add TO_NUMBER function and client restriction.

---
M src/org/openbravo/erpCommon/businessUtility/BpartnerMisc_data.xsql
---
(0042964)
hgbot   
2011-11-18 09:02   
Repository: erp/stable/2.50
Changeset: 1b99970df154a893e79380c482aa3c05fd01ac5e
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Thu Nov 17 17:45:11 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/1b99970df154a893e79380c482aa3c05fd01ac5e [^]

Fixes issue 18614: Default PaymentTerm is not working.
Had to add client filter.

---
M src/org/openbravo/erpCommon/businessUtility/BpartnerMisc_data.xsql
---
(0042974)
jecharri   
2011-11-18 11:52   
Verified.
I have tested without any payment term as default and take the first.
Apart from tht I put other client with dafault payment term and nothing change until The client of the business partner has a default payment term