/*
 * Axelor Business Solutions
 *
 * Copyright (C) 2019 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.axelor.apps.sale.exception;

/**
 * Interface of Exceptions.
 *
 * @author dubaux
 */
public interface IExceptionMessage {

  /** Sales Order Stock Move Service */
  static final String SALES_ORDER_STOCK_MOVE_1 = /*$$(*/
      "Invoice by delivery impose that all sale order lines must have service or stockable product with provision from stock" /*)*/;

  /** Sales Order Service Impl */
  static final String SALES_ORDER_1 = /*$$(*/
      "The company %s doesn't have any configured sequence for sale orders" /*)*/;

  static final String SALES_ORDER_COMPLETED = /*$$(*/ "This sale order is completed." /*)*/;

  /** Sale Config Service */
  static final String SALE_CONFIG_1 = /*$$(*/
      "%s : You must configure Sales module for company %s" /*)*/;

  /** Merge sale order */
  public static final String SALE_ORDER_MERGE_ERROR_CURRENCY = /*$$(*/
      "The currency is required and must be the same for all sale orders" /*)*/;

  public static final String SALE_ORDER_MERGE_ERROR_CLIENT_PARTNER = /*$$(*/
      "The client Partner is required and must be the same for all sale orders" /*)*/;
  public static final String SALE_ORDER_MERGE_ERROR_COMPANY = /*$$(*/
      "The company is required and must be the same for all sale orders" /*)*/;

  static final String SALE_ORDER_PRINT = /*$$(*/ "Please select the sale order(s) to print." /*)*/;
  static final String SALE_ORDER_MISSING_PRINTING_SETTINGS = /*$$(*/
      "Please fill printing settings on sale order %s." /*)*/;

  /** Configurator creator */
  String CONFIGURATOR_CREATOR_SCRIPT_ERROR = /*$$(*/
      "This script has errors, please see server logs for more details." /*)*/;

  String CONFIGURATOR_CREATOR_FORMULA_TYPE_ERROR = /*$$(*/
      "This script returned value is of type %s, it should return a value of type %s instead." /*)*/;
  String CONFIGURATOR_CREATOR_SCRIPT_WORKING = /*$$(*/ "The syntax of the script is correct." /*)*/;

  /** Configurator Service */
  String CONFIGURATOR_PRODUCT_MISSING_NAME = /*$$(*/
      "You must configure a script to fill the created product name." /*)*/;

  String CONFIGURATOR_PRODUCT_MISSING_CODE = /*$$(*/
      "You must configure a script to fill the created product code." /*)*/;
  String CONFIGURATOR_SALE_ORDER_LINE_MISSING_PRODUCT_NAME = /*$$(*/
      "You must configure a script to fill the product name in the created sale order line." /*)*/;

  String CONFIGURATOR_ON_GENERATING_TYPE_ERROR = /*$$(*/
      "The field %s is of type %s, but the configured script returned value is of type %s." /*)*/;

  static final String SALE_ORDER_EDIT_ORDER_NOTIFY = /*$$(*/
      "At least one sale order line has a stock move with availability request." /*)*/;
}
