src-db/database/model/functions/C_CREATE_PINVOICE_FROM_OUTS.xml
changeset 1259 aa36b7150211
parent 799 fef2c5e2feb7
child 1605 8a0fe0193bef
equal deleted inserted replaced
1258:ff6c6de71714 1259:aa36b7150211
    14 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
    14 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
    15 * License for the specific  language  governing  rights  and  limitations
    15 * License for the specific  language  governing  rights  and  limitations
    16 * under the License.
    16 * under the License.
    17 * The Original Code is Openbravo ERP.
    17 * The Original Code is Openbravo ERP.
    18 * The Initial Developer of the Original Code is Openbravo SL
    18 * The Initial Developer of the Original Code is Openbravo SL
    19 * All portions are Copyright (C) 2001-2006 Openbravo SL
    19 * All portions are Copyright (C) 2001-2008 Openbravo SL
    20 * All Rights Reserved.
    20 * All Rights Reserved.
    21 * Contributor(s):  ______________________________________.
    21 * Contributor(s):  ______________________________________.
    22 ************************************************************************/
    22 ************************************************************************/
    23   /*************************************************************************
    23   /*************************************************************************
    24   * Description:
    24   * Description:
   195             C_INVOICE_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE,
   195             C_INVOICE_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE,
   196             CREATED, CREATEDBY, UPDATED, UPDATEDBY,
   196             CREATED, CREATEDBY, UPDATED, UPDATEDBY,
   197             ISSOTRX, DOCUMENTNO, DOCSTATUS, DOCACTION,
   197             ISSOTRX, DOCUMENTNO, DOCSTATUS, DOCACTION,
   198             PROCESSING, PROCESSED, POSTED, C_DOCTYPE_ID,
   198             PROCESSING, PROCESSED, POSTED, C_DOCTYPE_ID,
   199             C_DOCTYPETARGET_ID, C_ORDER_ID, DESCRIPTION,
   199             C_DOCTYPETARGET_ID, C_ORDER_ID, DESCRIPTION,
   200             ISPRINTED, SALESREP_ID, DATEINVOICED,
   200             ISPRINTED, SALESREP_ID, DATEINVOICED, TAXDATE,
   201             DATEPRINTED, DATEACCT, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID,
   201             DATEPRINTED, DATEACCT, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID,
   202             POREFERENCE, ISDISCOUNTPRINTED, DATEORDERED, C_CURRENCY_ID,
   202             POREFERENCE, ISDISCOUNTPRINTED, DATEORDERED, C_CURRENCY_ID,
   203             PAYMENTRULE, C_PAYMENTTERM_ID, C_CHARGE_ID, CHARGEAMT,
   203             PAYMENTRULE, C_PAYMENTTERM_ID, C_CHARGE_ID, CHARGEAMT,
   204             TOTALLINES, GRANDTOTAL, M_PRICELIST_ID, ISTAXINCLUDED,
   204             TOTALLINES, GRANDTOTAL, M_PRICELIST_ID, ISTAXINCLUDED,
   205             C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID,
   205             C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID,
   211             v_Invoice_ID, Cur_Outs.AD_Client_ID, Cur_Outs.AD_Org_ID, 'Y',
   211             v_Invoice_ID, Cur_Outs.AD_Client_ID, Cur_Outs.AD_Org_ID, 'Y',
   212             now(), v_User_ID, now(), v_User_ID,
   212             now(), v_User_ID, now(), v_User_ID,
   213              'N', v_DocumentNo, 'DR', 'CO',
   213              'N', v_DocumentNo, 'DR', 'CO',
   214              'N', 'N', 'N', 0,
   214              'N', 'N', 'N', 0,
   215             v_DocType_ID, NULL, NULL,
   215             v_DocType_ID, NULL, NULL,
   216             'N', NULL, v_DateInvoiced,
   216             'N', NULL, v_DateInvoiced, v_DateInvoiced,
   217             NULL, v_DateInvoiced, v_BPartner_ID, v_BPLocation_ID,
   217             NULL, v_DateInvoiced, v_BPartner_ID, v_BPLocation_ID,
   218             v_ReferenceNo, 'Y', NULL, v_Currency_ID,
   218             v_ReferenceNo, 'Y', NULL, v_Currency_ID,
   219             v_PaymentRule, v_PaymentTerm_ID, NULL, 0,
   219             v_PaymentRule, v_PaymentTerm_ID, NULL, 0,
   220             0, 0, Cur_Outs.M_PriceList_ID, v_IsTaxIncluded,
   220             0, 0, Cur_Outs.M_PriceList_ID, v_IsTaxIncluded,
   221             NULL, v_Project_ID, NULL,
   221             NULL, v_Project_ID, NULL,