src-db/database/model/functions/M_GET_OFFER_PRICE.xml
author David Miguelez <david.miguelez@openbravo.com>
Fri, 19 Jul 2019 09:45:00 +0200
changeset 36329 98f6173cee75
parent 35758 751493543c04
permissions -rw-r--r--
Related to Issue 41372. Removed unnecessary .toString() calls.
If the variable is already a String it is not necessary to
call to the .toString() method.
<?xml version="1.0"?>
  <database name="FUNCTION M_GET_OFFER_PRICE">
    <function name="M_GET_OFFER_PRICE" type="NUMERIC" volatility="IMMUTABLE">
      <parameter name="p_offer_id" type="VARCHAR" mode="in">
        <default/>
      </parameter>
      <parameter name="p_pricestd" type="NUMERIC" mode="in">
        <default/>
      </parameter>
      <body><![CDATA[/*************************************************************************
* 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) 2001-2019 Openbravo SLU
* All Rights Reserved.
* Contributor(s):  ______________________________________.
************************************************************************/
/*
DEPRECATED!
This function should not be used. Promotions are calcualted by M_Promotion_Calculate
when posting orders/invoices.
*/
BEGIN
  return p_pricestd;
END M_GET_OFFER_PRICE
]]></body>
    </function>
  </database>