Openbravo Issue Tracking System - Modules
View Issue Details
0032555ModulesProcurement Contractspublic2016-03-30 10:012016-03-30 11:46
psanjuan 
Triage Omni OMS 
highmajoralways
newopen 
20Professional Appliance
 
 
0032555: Error shown when trying to complete a Procurement Contract - Mandatory fields can not be left empty, regardless it is not empty.
Error shown when trying to complete a Procurement Contract - Mandatory fields can not be left empty, regardless it is not empty.
As group admin role:
Apply module's dataset
Create a new Contract Type:
Service Contract: Y
Sales Contract: N
Create a Contract Invoice Schedule with this Contract Type with an Invoice Frequency = Annual

Create a Procurement Contract by selecting contract type created.

Fill in all the fields in the header, as described below:
Search key = Name = Contract test
BP = La Fruta es la Vida
Starting date = 30-03-2016
Duration 3
Duration Unit = Year
Price List = Tarifa la Fruta es la vida
Save

Go to Lines (Form view):

Add a line to it by selecting the contract invoice schedule created, Product = Zumo de Naranja 0.33L
Price = 0.89
Quantity = 100

Do not save

Press Complete by selecting "Generate Invoice Plan" action. Press OK.

Below error is shown, regardless there is a contract invoice schedule selected.

Error:
The following fields are mandatory and cannot be left empty: Contract Invoice Schedule.

See image below.

No tags attached.
related to defect 0032472 closed markmm82 Purchase Invoices with Total Gross Amount of 0 created from Procurement Contract Billing Process 
png Issue_32555.png (133,691) 2016-03-30 10:02
https://issues.openbravo.com/file_download.php?file_id=9216&type=bug
png
Issue History
2016-03-30 10:01psanjuanNew Issue
2016-03-30 10:01psanjuanAssigned To => Triage Finance
2016-03-30 10:02psanjuanFile Added: Issue_32555.png
2016-03-30 10:04psanjuanSummarytbd => Error shown when trying to complete a Procurement Contract - Mandatory fields can not be left empty, regardless it is not empty.
2016-03-30 10:04psanjuanDescription Updatedbug_revision_view_page.php?rev_id=11556#r11556
2016-03-30 10:04psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11558#r11558
2016-03-30 10:04psanjuanNote Added: 0085328
2016-03-30 10:07psanjuanRelationship addedrelated to 0032472
2016-03-30 11:46psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11561#r11561

Notes
(0085328)
psanjuan   
2016-03-30 10:04   
error Log:


c59635e2 1555998 [http-8080-5] ERROR org.openbravo.base.exception.OBException - The following fields are mandatory and cannot be left empty: Contract Invoice Schedule.
org.openbravo.base.exception.OBException: The following fields are mandatory and cannot be left empty: Contract Invoice Schedule.
    at org.openbravo.contract.services.process.ProcessServiceContract.checkMandatoryFields(ProcessServiceContract.java:124)
    at org.openbravo.contract.services.process.ProcessServiceContract.preCompleteHook(ProcessServiceContract.java:37)
    at org.openbravo.contract.process.ProcessContract.processContract(ProcessContract.java:50)
    at org.openbravo.contract.process.ProcessContract.doExecute(ProcessContract.java:37)
    at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:82)
    at org.openbravo.scheduling.ProcessRunner.execute(ProcessRunner.java:82)
    at org.openbravo.erpWindows.org.openbravo.procurement.contract.ProcurementContract.Lines75361A4C141E4ED3B595397997176CA4.doPost(Lines75361A4C141E4ED3B595397997176CA4.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:228)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:428)
    at org.openbravo.erpWindows.org.openbravo.procurement.contract.ProcurementContract.Lines75361A4C141E4ED3B595397997176CA4.service(Lines75361A4C141E4ED3B595397997176CA4.java:110)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:701)