Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0036453 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 09. Financial management | minor | have not tried | 2017-07-10 18:10 | 2017-07-31 11:03 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | markmm82 | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR17Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 32e02917e3ed | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | aferraz | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0036453: plpgsql_check tool finds a number of issues in pl-functions & trigger in mod-functional-basic modules | |||||||
Description | The new plpgsql_check tool finds a number of issues in modules in the ci job mod-functional-basic: The check is already running in the job and output saved as new plpgsql_check.log artifact. Quick review of list shows: 1.) First issue maybe real functional bug (type mismatch) 2.) All others seem to be simple code cleanup only (unused variables in pl code) Note: When checking for unused variables careful to check case-insentively! | |||||||
Steps To Reproduce | the mod-functional-basic output for plpgsql_check warnings Alternatively run plgpsql_check yourself | |||||||
Proposed Solution | - | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0098224) hgbot (developer) 2017-07-26 13:44 |
Repository: erp/pmods/org.openbravo.accrualsanddeferrals Changeset: b67683eae490aa1800b8b246841c8fcae1cfe760 Author: Mark <markmm82 <at> gmail.com> Date: Wed Jul 12 15:10:51 2017 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/b67683eae490aa1800b8b246841c8fcae1cfe760 [^] Fixes issue 36453: plpgsql_check tool finds a number of issues in pl-functions & trigger in mod-functional-basic modules Fixed the following functions and triggers: ACCDEF_GENERATE_PLAN - Avoid error when days between two dates is calculated by subtracting them, and using the result to compare with an integer value. To avoid it, this date difference is assigned to a numeric variable before doing the comparison with the numeric value. Removed unused variables: ACCDEF_UNPOST - v_Posted - v_Count - v_Updated - v_Deleted - v_rowcount - v_Message - p_PInstance_ID ACCDEF_PLAN_CHK_TRG - v_Prec ACCDEF_PLAN_LINE_CHK_TRG - v_Prec - v_Currency --- M src-db/database/model/functions/ACCDEF_GENERATE_PLAN.xml M src-db/database/model/functions/ACCDEF_UNPOST.xml M src-db/database/model/triggers/ACCDEF_PLAN_CHK_TRG.xml M src-db/database/model/triggers/ACCDEF_PLAN_LINE_CHK_TRG.xml --- |
(0098225) hgbot (developer) 2017-07-26 13:45 |
Repository: erp/mods/org.openbravo.financial.accounttreeexport Changeset: f5040b884892ae54fed0e5544f23967a24dc92b2 Author: Mark <markmm82 <at> gmail.com> Date: Wed Jul 12 16:00:24 2017 -0400 URL: http://code.openbravo.com/erp/mods/org.openbravo.financial.accounttreeexport/rev/f5040b884892ae54fed0e5544f23967a24dc92b2 [^] Fixes issue 36453: plpgsql_check tool finds a number of issues in pl-functions & trigger in mod-functional-basic modules Removed unused variables in the following functions: OBFATE_EXPORT_ACCOUNTTREE - V_DEFAULT OBFATE_GETDEFAULT - V_C_ACCTSCHEMA_DEFAULT_ID --- M src-db/database/model/functions/OBFATE_EXPORT_ACCOUNTTREE.xml M src-db/database/model/functions/OBFATE_GETDEFAULT.xml --- |
(0098226) hgbot (developer) 2017-07-26 13:45 |
Repository: erp/pmods/org.openbravo.financial.multitaxcategory Changeset: ecb8d9a4f5f205edf1f89f505485f9d7ff7933cd Author: Mark <markmm82 <at> gmail.com> Date: Wed Jul 12 15:41:52 2017 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.financial.multitaxcategory/rev/ecb8d9a4f5f205edf1f89f505485f9d7ff7933cd [^] Fixes issue 36453: plpgsql_check tool finds a number of issues in pl-functions & trigger in mod-functional-basic modules Removed unused variables in OBFMTC_GET_PRODUCT_TAXCATEGORY: - v_Sql --- M src-db/database/model/functions/OBFMTC_GET_PRODUCT_TAXCATEGORY.xml --- |
(0098227) hgbot (developer) 2017-07-26 13:46 |
Repository: erp/pmods/org.openbravo.creditmanagement.dunning Changeset: c87cf281fdf8e353bf6b03a3400d84b2b6fb794e Author: Mark <markmm82 <at> gmail.com> Date: Wed Jul 12 15:33:17 2017 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.creditmanagement.dunning/rev/c87cf281fdf8e353bf6b03a3400d84b2b6fb794e [^] Fixes issue 36453: plpgsql_check tool finds a number of issues in pl-functions & trigger in mod-functional-basic modules Removed unused variables in DUN_FINPAYMENTSCH_TRG: - v_IsEmployee - v_NewDueDate --- M src-db/database/model/triggers/DUN_FINPAYMENTSCH_TRG.xml --- |
(0098228) hgbot (developer) 2017-07-26 13:46 |
Repository: erp/pmods/org.openbravo.module.intrastat Changeset: 9b477569d6a0c665a34bea6899bbf44f203139db Author: Mark <markmm82 <at> gmail.com> Date: Wed Jul 12 15:39:06 2017 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.intrastat/rev/9b477569d6a0c665a34bea6899bbf44f203139db [^] Fixes issue 36453: plpgsql_check tool finds a number of issues in pl-functions & trigger in mod-functional-basic modules Removed unused variables in the following functions: INTR_C_BPARTNER_EU - v_Message INTR_C_INVOICELINE_TRG - v_iscustomer INTR_C_ORDERLINE_TRG - v_iscustomer INTR_M_INOUTLINE_TRG - v_iscustomer --- M src-db/database/model/functions/INTR_C_BPARTNER_EU.xml M src-db/database/model/triggers/INTR_C_INVOICELINE_TRG.xml M src-db/database/model/triggers/INTR_C_ORDERLINE_TRG.xml M src-db/database/model/triggers/INTR_M_INOUTLINE_TRG.xml --- |
(0098229) hgbot (developer) 2017-07-26 13:47 |
Repository: erp/pmods/org.openbravo.interco Changeset: fa8ee8aeec30fdd86991617322c4e5e630436531 Author: Mark <markmm82 <at> gmail.com> Date: Wed Jul 12 15:19:29 2017 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.interco/rev/fa8ee8aeec30fdd86991617322c4e5e630436531 [^] Fixes issue 36453: plpgsql_check tool finds a number of issues in pl-functions & trigger in mod-functional-basic modules Removed unused variables in the following functions: INTERCO_AUTO_SETTLEMENT - v_AD_Org_ID - v_created - v_updated - v_status INTERCO_CREATE_INVOICE - v_pricelistversion - v_price INTERCO_CREATE_ORDER - v_isacctle - v_org_bule_id - v_available_period - v_pricelistversion - v_price - v_matchingAmt --- M src-db/database/model/functions/INTERCO_AUTO_SETTLEMENT.xml M src-db/database/model/functions/INTERCO_CREATE_INVOICE.xml M src-db/database/model/functions/INTERCO_CREATE_ORDER.xml --- |
(0098230) hgbot (developer) 2017-07-26 13:47 |
Repository: erp/pmods/org.openbravo.interco Changeset: bf666dc5d8791676f8c5180e40e192b1f5b165cf Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> Date: Wed Jul 26 13:32:50 2017 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.interco/rev/bf666dc5d8791676f8c5180e40e192b1f5b165cf [^] Related to issue 36453: Code review improvements --- M src-db/database/model/functions/INTERCO_AUTO_SETTLEMENT.xml M src-db/database/model/functions/INTERCO_CREATE_INVOICE.xml --- |
(0098231) hgbot (developer) 2017-07-26 17:07 |
Repository: erp/mods/org.openbravo.financial.accounttreeexport Changeset: 32e02917e3ed9e8fa4229cd0832f18d81a1df306 Author: Mark <markmm82 <at> gmail.com> Date: Wed Jul 12 16:00:24 2017 -0400 URL: http://code.openbravo.com/erp/mods/org.openbravo.financial.accounttreeexport/rev/32e02917e3ed9e8fa4229cd0832f18d81a1df306 [^] Fixes issue 36453: plpgsql_check tool finds a number of issues in pl-functions & trigger in mod-functional-basic modules Removed unused variables in the following functions: OBFATE_EXPORT_ACCOUNTTREE - V_DEFAULT OBFATE_GETDEFAULT - V_C_ACCTSCHEMA_DEFAULT_ID --- M src-db/database/model/functions/OBFATE_EXPORT_ACCOUNTTREE.xml M src-db/database/model/functions/OBFATE_GETDEFAULT.xml --- |
(0098232) hgbot (developer) 2017-07-26 17:24 |
Repository: erp/pmods/org.openbravo.accrualsanddeferrals Changeset: cd836a3b7825805f168a461704df5e344bc78065 Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> Date: Wed Jul 26 17:19:53 2017 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/cd836a3b7825805f168a461704df5e344bc78065 [^] Related to issue 36453: Code review improvements --- M src-db/database/model/functions/ACCDEF_GENERATE_PLAN.xml --- |
(0098240) hgbot (developer) 2017-07-27 10:20 |
Repository: erp/pmods/org.openbravo.accrualsanddeferrals Changeset: 63221d9cc4b30a12272c50d5a44f5cf4dda9975c Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> Date: Thu Jul 27 10:17:16 2017 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/63221d9cc4b30a12272c50d5a44f5cf4dda9975c [^] Related to issue 36453: Code review improvements Remove v_MonthNo variable declaration as it is automatically declared inside FOR loop. --- M src-db/database/model/functions/ACCDEF_GENERATE_PLAN.xml --- |
(0098271) aferraz (viewer) 2017-07-31 11:03 |
Code review OK |
Copyright © 2000 - 2009 MantisBT Group |