int-basic-oracle - Build # 876 - Failure:

Check console output at https://ci.openbravo.com/job/int-basic-oracle/876/ to 
view the results.


Committers since last success:

Changes for Build #876

    Rafa Alonso <[email protected]> null
    Related issue 28190: Failing to drop the database will cause the build to 
fail (II)

After Stefan feedback:
- the fix now makes use of the existing DROP in the "clean.database.POSTGRE" 
task. The change is that the build will but the build fail if the drop fails.
- the "clean.database.POSTGRE" task is being accessed by the <target 
name="create.database"> task.

Note that the "clean.database.ORACLE" task has not been in this changeset.
        src-db/database/build-create.xml

    Unai Martirena <[email protected]> null
    Fixes bug 29615: Correctly used credit when paying an invoice and refunding

There were two issues while managing this scenario:

[1] In 'addCredit' method inside AddPaymentActionHandler.java class, a loop of 
Credit to Use grid is done, creating Payment Credit Used records assigned to 
the new created payment of the invoice. This method was not taking into account 
that could be credit amount that exceeds the invoice amount (amount to be 
refunded) and it was assigning all the credit amount as used to the payment of 
the invoice. So the refund payment that is created right after was been left 
without any used credit payment.

[2] After fixing the previous method, the second issue appears. The 
'updateUsedCredit' method inside FIN_PaymentProcess.java class retrieves all 
the payments of the business partner that has generated credit, and it assigns 
as used to the refund payment. The problem with this function is that before 
the Add Payment refactor it was not possible to select which credit payments we 
wanted to consume, it was only a total credit amount to be consumed and the 
system behind was being consuming any of them. But after the refactor it is 
possible to select the ones that want to be consumed.

In order to fix this last issue the selected credit line ids are added as a 
parameter to 'updateUsedCredit' method.
        
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
        
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
        
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java




Last 20 lines of the console output:

[...truncated 13319 lines...]
    [junit] 
    [junit] Error: 
    [junit] Apr 20, 2015 3:55:55 PM org.openqa.selenium.remote.Augmenter 
extractRemoteWebDriver
    [junit] WARNING: Augmenter should be applied to the instances of 
@Augmentable clases or previously augmented instances only
    [junit] 

BUILD FAILED
/srv/ci/workspace/int-basic-oracle/SANDBOX/automation/pi/src-test/com/openbravo/test/integration/erp/testsuites/smoke/build.xml:40:
 The following error occurred while executing this line:
/srv/ci/workspace/int-basic-oracle/SANDBOX/automation/pi/src-test/com/openbravo/test/integration/erp/testsuites/smoke/procurement/build.xml:29:
 The following error occurred while executing this line:
/srv/ci/workspace/int-basic-oracle/SANDBOX/automation/pi/src-test/com/openbravo/test/integration/erp/testsuites/smoke/procurement/build.xml:42:
 The following error occurred while executing this line:
/srv/ci/workspace/int-basic-oracle/SANDBOX/automation/pi/build.xml:71: Test 
com.openbravo.test.integration.erp.testsuites.smoke.procurement.PROb_OrderAndPaymentToInvoice
 failed

Total time: 42 minutes 46 seconds
Build step 'Execute managed script' marked build as failure
Recording test results
Archiving artifacts
Checking \] ERROR|\] WARN
Email was triggered for: Failure
Sending email for trigger: Failure
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Openbravo-builds mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-builds

Reply via email to