modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/SalesInvoiceAddPaymentReadOnlyLogics.java
author David Baz Fayos <david.baz@openbravo.com>
Wed, 23 Sep 2015 19:54:52 +0200
changeset 27628 87fcaa257950
parent 24524 d9cd14c1241a
child 35352 4590a05d86f8
permissions -rw-r--r--
Related to issue 29414: Updated browser supported/recommended list for PR15Q4

* Chrome. Supported 44, Recommended 45 or higher.
* Firefox. Supported 38, Recommended 38 or higher.
* Internet Explorer. Supported 9, Recommended 11 or higher.
* Safari. Supported 7, Recommended 8 or higher.
/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
 */
package org.openbravo.advpaymentmngt.filterexpression;

import java.util.Map;

import org.codehaus.jettison.json.JSONException;
import org.openbravo.advpaymentmngt.utility.APRMConstants;
import org.openbravo.client.kernel.ComponentProvider;

@ComponentProvider.Qualifier(APRMConstants.SALES_INVOICE_WINDOW_ID)
public class SalesInvoiceAddPaymentReadOnlyLogics extends AddPaymentReadOnlyLogicsHandler {

  private static final long SEQUENCE = 100l;

  protected long getSeq() {
    return SEQUENCE;
  }

  @Override
  public boolean getPaymentDocumentNoReadOnlyLogic(Map<String, String> requestMap)
      throws JSONException {
    return false;
  }

  @Override
  public boolean getReceivedFromReadOnlyLogic(Map<String, String> requestMap) throws JSONException {
    return true;
  }

  @Override
  public boolean getPaymentMethodReadOnlyLogic(Map<String, String> requestMap) throws JSONException {
    return false;
  }

  @Override
  public boolean getActualPaymentReadOnlyLogic(Map<String, String> requestMap) throws JSONException {
    return false;
  }

  @Override
  public boolean getPaymentDateReadOnlyLogic(Map<String, String> requestMap) throws JSONException {
    return false;
  }

  @Override
  public boolean getFinancialAccountReadOnlyLogic(Map<String, String> requestMap)
      throws JSONException {
    return false;
  }

  @Override
  public boolean getCurrencyReadOnlyLogic(Map<String, String> requestMap) throws JSONException {
    return true;
  }

}