AP - invoice discount number

Hello

I'm troubleshooting an issue where invoices are not supposed to have discounts, meet an amount of first discount applied. This updated amount is then poured into a cycle, when the total amount must be paid to payment.

Billing terms are 2% 3 days 1% 5 days Net 15, with a rate of payment/date of invoice date/conditions and date in September. the due date and payment date are in November, if the discount should not apply. In fact, the bill payment calendar presents the correct full amount, but payment, which took place the following month, uses the amount of 2% discount.

I double checked the configuration of words and assured "always take it Discount" implemented the option is not activated.

Someone at - he a clue as to why 1) the reduction is applied and 2) why the due date of the invoice amount is correct, but then the amount is reduced (incorrect).

Any help would be greatly appreciated!

Thank you and best regards,
Chris

Hi Chris,

the only logical explanation would be because configuration 'Always take Discount', which you have already checked... However just to go on the bases even once, did you check the places below:

(1) at the supplier level header.

Switch the liability to the creditors
Access providers > entry
Query for the provider
Click the management of invoices from the left pane.
In the region of terms of invoice payment, check the option 'Always take Discount' is checked or not...

(2) at the level of Site provider,.

Switch the liability to the creditors
Access providers > entry
Query for the provider
Click the management of invoices from the left pane.
Click the CONDITIONS tab in the area of supplier sites
See the option 'Always take Discount' is checked or not.

(3) for the accounts payable system configuration.

Switch the liability to the creditors
Go to Setup > Options > system settings
See the option 'Always take Discount' is checked or not.

System would check first for this level of the Supplier Site option, if no value found it will check provider header level, if no value not found check the system configuration level accounts payable...
Check and confirm if the above is checked... we would then see on different lines...

References:
Discount incorrectly always taken [1111628.1 ID]

Kind regards
Ivruksha

Tags: Oracle Applications

Similar Questions

  • My online discount number - appears not

    I signed up for the service from month to month for North America. The site said I should get a discount of 50% off an online number. I'm trying to reactivate one of my previous issues online. It's showing a price of $60 for the year instead of $30 (with 50% reduction). Help, please. Thank you!

    It works now! I guess you have to wait some time before the system accepts your subscription and applies to your discount number online.

  • The AR invoice line number does not Interface table

    Hello

    I have a Bill to convert with 5 lines, but the line numbers are 2, 3, 4, 5, 7. I pass the staging table line number to ra_interface_lines.line_number and I can see the data in the interface table I in the staging table. But when the car invoice is executed and the invoice lines have serialized numbers line 1,2,3,4,5. Can someone let me know why this is happening?

    Thank you.

    I don't think that you can control the target (desired) line numbers, you can control how lines are classified by mentioning a rule-based command line
    some columns, associate the collection and then rule command line batch source.
    Your condition must wear the same # s to AR and I see gaps in the sequence numbers (line), I don't think it's possible.
    See the description of column auto invoice. If the idea is to link to the desired line number, pass the number of line in a column of attributes and open a FDF so that you know
    What that line the old system it maps too. After creation of invoice, you can update by running a sql however not recommended by oracle if it is necessary you
    can do this as a last resort.

    LINE_NUMBER
    This column is used by AutoInvoice and should be left to zero. AutoInvoice know nothing
    values in this column and still the lines sequentially from numbers
    rule number 1, in the order determined by the command line.

  • I can't download invoice order number: 15551464100

    Capture.PNG

    Please, help me?

    Please read https://forums.adobe.com/thread/1499014

    -try some steps such as changing browsers and disable your firewall

    -also clear the cache of your browser if you start with a fresh browser

    -check the file hosts for blocked entries https://forums.adobe.com/thread/1912777

    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip.

    https://helpx.Adobe.com/creative-cloud/KB/creative-cloud-desktop-application-failed.html

    http://helpx.Adobe.com/creative-cloud/KB/failed-install-creative-cloud-desktop.html

    or

    A chat session where an agent can remotely look inside your computer can help

    Cloud creative support chat (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Transfer discount: If/Else statement

    His assignment that I spent hours on:

    http://ImageShack.us/a/img834/7124/273e.PNG

    http://ImageShack.us/a/img706/4691/fhfd.PNG

    That of how long I'm away until now, according to my code:

    __________________________________________________________________________________________ ________________________________

    var body_txt:TextField = new TextField();

    body_txt.x = 225;

    body_txt.y = 300;

    body_txt. AutoSize = TextFieldAutoSize.LEFT;

    var myFormat:TextFormat = new TextFormat();

    var yourPurchase:String;

    var yourDiscount:String;

    var yourPrice:String;

    delivery of the var: number;

    var total: Number;

    yourPurchase = max_txt.text;

    discount: 10.00 / 10%

    yourDiscount = discount_txt.text;

    yourPrice = price_txt.text;

    Total = yourPurchase - discount

    If (yourDiscount)

    {

    trace();

    }

    on the other

    {

    trace();

    }

    __________________________________________________________________________________________ ________________________________

    As you can see, I have no idea on how to get the discounts written into the code, I don't know how.

    Please explain as much as possible on how to resolve this dilemma (in simple terms if possible). Thank you!

    use:

    ______________________________________________________________________ ____________________________________________________

    var body_txt:TextField = new TextField();

    body_txt.x = 225;

    body_txt.y = 300;

    body_txt. AutoSize = TextFieldAutoSize.LEFT;

    var myFormat:TextFormat = new TextFormat();

    I'm not sure the above is

    var yourPurchase:Number;

    var yourDiscount:Number;

    var discount: Number =. 1;

    the code below (up to formatF) should run WHEN the user finishes coming into max_txt

    yourPurchase = Number (max_txt.text);

    {if(yourPurchase>10)}
    yourDiscount = discount * yourPurchase.
    } else {}
    yourDiscount = 0;
    }

    discount_txt. Text = formatF (yourDiscount);

    price_txt. Text = formatF (yourPurchase *(1-discount));

    function formatF(n:Number):String {}

    now write a function that converts numbers into dollars and cents for display

    }

  • How to get the number of delivery to the lines AR-Transaction?

    Hello

    We try to develop a personalized Transactions AR Invoice output (12.0.5). What our goal is to get delivery number of screen of Transactions at the level of the line. We want to offer it, because our client wants to show number of delivery at the exit of Bill...

    How can we make this?

    I'll be very grateful for any help

    Thanks in advance...


    Cagri

    When the order line is invoiced, delivery number is stored in the interface_line_attribute3 in the ra_customer_trx_lines_all table.

    Thank you
    Claire

  • Update statement works only inside the function

    The logic of this function:

    **************************

    The system of billing, we will post data to the ERP system once the invoice is processed this function will update the invoice of erp number and treat a flag to the table of billing system.

    CREATE OR REPLACE FUNCTION ERP_TO_MOPS_INV_UPD RETURN NUMBER IS

    / * Update function treated invoice status back to the invoice table number * /.

    FRETVAL NUMBER: = 0;

    BEGIN

    FOR I IN (SELECT PISH_ID, PISH_INV_NO FROM PH_INVOICE_SMRY_HDR WHERE ERP_STGFLG = S ') LOOP

    FOR J IN (SELECT INVOICE_NO XXMO_AR_INVOICE_ARC, WHERE REFERENCE_NO = I.PISH_INV_NO AND REFERENCE_DOC_ID = I.PISH_ID AND NVL(MO_STATUS,'N') =' NO) LOOP

    UPDATE PH_INVOICE_SMRY_HDR SET ERP_INVOICE_NO = J.INVOICE_NO, ERP_STGFLG = 'P' WHERE PISH_ID = I.PISH_ID AND PISH_INV_NO = I.PISH_INV_NO;

    IF SQL % NOTFOUND THEN

    FRETVAL: = 1003;

    END IF;

    UPDATE XXMO_AR_INVOICE_ARC SET MO_STATUS = 'P' WHERE REFERENCE_DOC_ID = I.PISH_ID AND REFERENCE_NO = I.PISH_INV_NO;

    IF SQL % NOTFOUND THEN

    FRETVAL: = 1004;

    END IF;

    END LOOP;

    END LOOP;

    RETURN FRETVAL;

    exception when others then

    FRETVAL: = - 1;

    END ERP_TO_MOPS_INV_UPD;

    When I try to run as these values are not updated. But when I run this code using anonymous block of his work. Someone help me please

    declare

    number of RET: = 0;

    Start

    RET: = ERP_TO_MOPS_INV_UPD;

    DBMS_OUTPUT. PUT_LINE ("RETURN VALUE" | ") (RET);

    end;

    Hello Abisheksiva,

    when I try to run as these values are not updated. But when I run this code using anonymous block his work. >>

    What do you mean 'try to start like that...'?  Maybe you mean that SOME myfunction (...) DOUBLE; gives you an error message? It is good, as in this case using Returns is not really enjoyable because your 'function' is much more than calculation and returns its result. You must use a procedure with a parameter 'OUT', if you wish.

    ((Remarque: votre bloc d'exception met-1 en FRETVAL mais ne retourne pas cette valeur))

    declare

    RET number;

    Start

    ERP_TO_MOPS_INV_UPD (ret);

    DBMS_OUTPUT. PUT_LINE ("RETURN VALUE:" | ") To_char (retired));

    end;

    Best regards

    Bruno Vroman.

  • ORA-02260: table can have only one primary key

    CREATE TABLE Invoice_Deatil

    (

    Invoice # KEY PRIMARY NUMBER REFERS to Invoice(Invoice#).

    Prod # KEY PRIMARY NUMBER REFERS to Product(Prod#).

    CHECKING NUMBER of Qty_Ordered (Qty_Ordered BETWEEN 50-5000)

    );

    create table invoice_deatil
    (
      invoice# NUMBER  REFERENCES invoice(invoice#),
      prod#    NUMBER  REFERENCES product(prod#),
      QTY_ORDERED NUMBER CHECK(QTY_ORDERED BETWEEN 50 AND 5000),
      CONSTRAINT invoice_deatil_pk PRIMARY KEY (invoice#,prod#)
    );
    
  • Get 2 amounts of 2 columns of 2 tables without primary key

    I would like to get the sum of column A of table 1 and the sum of column D in table 2 without using the primary key.

    Because I can't link the two tables, the only corresponding value is not the primary key.

    TABLE 1

    COLUMN A.     COLUMN B |    COLUMN C

    PAID NUMBER DESCRIPTION

    15472 blabla1 S15-875

    18515S15-875 blabla1

    215526.52 blabla2 D17-517

    ...                               ...                           ...

    TABLE 2

    COLUMN D |     COLUMN E |    COLUMN F

    INVOICENUMBERDESCRIPTION

    185525 blabla1 S15-875

    158520 D17-517 blabla2

    8964D17-517

    blabla2

    I would like to see the number, the sum of which should be paid and what has been paid.

    But as you can see, you can pay in several times and there may be several invoices.

    There is therefore no link between two tables which is a primary key in both entities.

    No idea how I could get it?

    NUMBER |    DESCRIPTION |    BILL |     PAID

    S15-875 185525 33987 blabla1

    D17-517 blabla2 167484 215526.52

    The tables can be attached on «NUMBER», regardless of weather conditions, as a primary key is defined.

    sql> with table_1 as
      2    (         select 15472     as paid, 'S15-875' as "NUMBER", 'blabla1' as description from dual
      3    union all select 18515     as paid, 'S15-875' as "NUMBER", 'blabla1' as description from dual
      4    union all select 215526.52 as paid, 'D17-517' as "NUMBER", 'blabla2' as description from dual
      5    )
      6  , table_2 as
      7    (         select 185525    as invoice, 'S15-875' as "NUMBER", 'blabla1' as description from dual
      8    union all select 158520    as invoice, 'D17-517' as "NUMBER", 'blabla2' as description from dual
      9    union all select 8964      as invoice, 'D17-517' as "NUMBER", 'blabla2' as description from dual
     10    )
     11  select t1."NUMBER"     as "NUMBER"
     12  ,      t1.description  as description
     13  ,      ( select sum(t2.invoice) from table_2 t2 where t2."NUMBER" = t1."NUMBER" ) as invoice
     14  ,      sum(t1.paid)    as paid
     15  from   table_1 t1
     16  group by t1."NUMBER"
     17  ,        t1.description
     18  /
    
    NUMBER  DESCRIP    INVOICE       PAID
    ------- ------- ---------- ----------
    D17-517 blabla2     167484  215526.52
    S15-875 blabla1     185525      33987
    

    BTW: 'NUMBER' is a horrible name for a column. I strongly recommend to change something that is not a reserved word.

  • create partitioned indexes

    Hello

    I have created a new local index and found a syntax problem, I thought I had created an index as local, but it was created under the global name.

    Here is my syntax of test:
    CREATE TABLE invoices
    (invoice_no    NUMBER NOT NULL,
     invoice_date  DATE   NOT NULL,
     comments      VARCHAR2(500))
    PARTITION BY RANGE (invoice_date)
    (PARTITION invoices_q1 VALUES LESS THAN (TO_DATE('01/04/2001', 'DD/MM/YYYY')) ,
     PARTITION invoices_q2 VALUES LESS THAN (TO_DATE('01/07/2001', 'DD/MM/YYYY')) ,
     PARTITION invoices_q3 VALUES LESS THAN (TO_DATE('01/09/2001', 'DD/MM/YYYY')) ,
     PARTITION invoices_q4 VALUES LESS THAN (TO_DATE('01/01/2002', 'DD/MM/YYYY')));
    
    CREATE INDEX i_ia ON  invoices  (comments) local
    CREATE INDEX i_ia2 ON  invoices local (comments)
    If I run the interviewed next I get results only for the index 'I_IA ':
    SELECT * 
    FROM DBA_INDEXES,
         dba_ind_PARTITIONS
    WHERE TABLE_NAME like UPPER('%invoices%') and
          DBA_INDEXES.INDEX_NAME = dba_ind_PARTITIONS.INDEX_NAME
    My production table I thought that I had created a table with local index and only when the fact of the decline of the partitions I realized that something was wrong because it was taking too long to execute.
    My database is:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    Shouldn't receive a syntax warning if "local" is used outside the correct place?


    Thank you
    Ricardo Tomas

    This position in the CREATE INDEX Syntax [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_5012.htm] is used for a table alias.

    LOCAL is not a reserved word.

  • Retrieve the value of the XML node in XMLTable

    Hello, hope that it is something simple and I went beside her, but consider this example:
     with et as(
         SELECT 
               xmlType('<Invoice>
        <InvoiceInformation>
            <Number>123456</Number>
        </InvoiceInformation>
        <InvoiceLines>
            <InvoiceLine>
                <Detail>
                    <Amount>100</Amount>
                    <Line>1</Line>
                </Detail>
                <Type>
                    <CheesyPotato>
                        <Instructions>
                            <CookTime>120</CookTime>
                            <CookTimeUnits>Minutes</CookTimeUnits>
                            <CookTemperature>450</CookTemperature>
                        </Instructions>
                    </CheesyPotato>
                </Type>
            </InvoiceLine>
            <InvoiceLine>
                <Detail>
                    <Amount>10000</Amount>
                    <Line>2</Line>
                </Detail>
                <Type>
                    <DeathStar>
                        <Instructions>
                            <CookTime>4</CookTime>
                            <CookTimeUnits>5 "parsecs"</CookTimeUnits>
                            <CookTemperature>1000000</CookTemperature>
                        </Instructions>
                    </DeathStar>
                </Type>
            </InvoiceLine>  
            <InvoiceLine>
                <Detail>
                    <Amount>250</Amount>
                    <Line>3</Line>
                </Detail>
                <Type>
                    <Quiche>
                        <Instructions>
                            <CookTime>75</CookTime>
                            <CookTimeUnits>Minutes</CookTimeUnits>
                            <CookTemperature>350</CookTemperature>
                        </Instructions>
                    </Quiche>
                </Type>      
            </InvoiceLine>    
        </InvoiceLines>  
    </Invoice>  
     ') xt
          from dual
           ) 
            SELECT     
                ext.*
               FROM
               et,
               XMLTABLE(
               'for $Invoice in $INV/Invoice
                    for $InvoiceItem in $Invoice/InvoiceLines/InvoiceLine
                      return <row> 
                      {
                        $Invoice
                        ,$InvoiceItem
                      } 
                      </row>'           
                  PASSING et.xt as INV
                        COLUMNS
                   INVOICENUMBER                   VARCHAR2  (6)       PATH 'Invoice/InvoiceInformation/Number'                    
                  ,InvoiceLineNumber               VARCHAR2  (5)       PATH 'InvoiceLine/Detail/Line'
                  ,Amount                          VARCHAR2  (5)       PATH 'InvoiceLine/Detail/Amount'
                  ,CookTime                        VARCHAR2  (5)       PATH 'InvoiceLine/Type//Instructions/CookTime'
                  ,CookTimeUnits                   VARCHAR2  (15)       PATH 'InvoiceLine/Type//Instructions/CookTimeUnits'
                  ,CookTemperature                 VARCHAR2  (10)       PATH 'InvoiceLine/Type//Instructions/CookTemperature'
                ) ext
    /            
                  
                  
        INVOICENUMBER INVOICELINENUMBER AMOUNT COOKTIME COOKTIMEUNITS   COOKTEMPERATURE 
    ------------- ----------------- ------ -------- --------------- --------------- 
    123456        1                 100    120      Minutes         450             
    123456        2                 10000  4        5 "parsecs"     1000000         
    123456        3                 250    75       Minutes         350   
    How the child node of the 'name' Type?
    TypeChild       INVOICENUMBER INVOICELINENUMBER AMOUNT COOKTIME COOKTIMEUNITS   COOKTEMPERATURE 
    ------------------- ------------- ----------------- ------ -------- --------------- --------------- 
    CheesyPotato 123456        1                 100    120      Minutes         450             
    DeathStar      123456        2                 10000  4        5 "parsecs"     1000000         
    Quiche          123456        3                 250    75       Minutes         350 
    I have tried different methods; along the lines of ', $InvoiceItem, Type, child, name ' does not, any help would be appreciated, thanks

    Hello

    You can use the name() function in the COLUMNS clause:

    SQL> WITH et AS(
      2    SELECT XMLType('
      3      
      4          123456
      5      
      6      
      7          
      8              
      9                  100
     10                  1
     11              
     12              
     13                  
     14                      
     15                          120
     16                          Minutes
     17                          450
     18                      
     19                  
     20              
     21          
     22          
     23              
     24                  10000
     25                  2
     26              
     27              
     28                  
     29                      
     30                          4
     31                          5 "parsecs"
     32                          1000000
     33                      
     34                  
     35              
     36          
     37          
     38              
     39                  250
     40                  3
     41              
     42              
     43                  
     44                      
     45                          75
     46                          Minutes
     47                          350
     48                      
     49                  
     50              
     51          
     52      
     53  ') xt
     54    FROM dual
     55  )
     56  SELECT ext.*
     57  FROM et
     58     , XMLTable(
     59         'for $Invoice in $INV/Invoice
     60            for $InvoiceItem in $Invoice/InvoiceLines/InvoiceLine
     61            return 
     62            {
     63              $Invoice/InvoiceInformation
     64            , $InvoiceItem
     65            }
     66            '
     67         PASSING et.xt as INV
     68         COLUMNS
     69           typechild          VARCHAR2(30)  PATH 'name(InvoiceLine/Type/*)'
     70         , INVOICENUMBER      VARCHAR2(6)   PATH 'InvoiceInformation/Number'
     71         , InvoiceLineNumber  VARCHAR2(5)   PATH 'InvoiceLine/Detail/Line'
     72         , Amount             VARCHAR2(5)   PATH 'InvoiceLine/Detail/Amount'
     73         , CookTime           VARCHAR2(5)   PATH 'InvoiceLine/Type/*/Instructions/CookTime'
     74         , CookTimeUnits      VARCHAR2(15)  PATH 'InvoiceLine/Type/*/Instructions/CookTimeUnits'
     75         , CookTemperature    VARCHAR2(10)  PATH 'InvoiceLine/Type/*/Instructions/CookTemperature'
     76       ) ext
     77  ;
    
    TYPECHILD                      INVOICENUMBER INVOICELINENUMBER AMOUNT COOKTIME COOKTIMEUNITS   COOKTEMPERATURE
    ------------------------------ ------------- ----------------- ------ -------- --------------- ---------------
    CheesyPotato                   123456        1                 100    120      Minutes         450
    DeathStar                      123456        2                 10000  4        5 "parsecs"     1000000
    Quiche                         123456        3                 250    75       Minutes         350
     
    

    If this does not work for your version (pre 11g), you will need to push the expression in the main XQuery expression:

    ...
       , XMLTable(
           'for $Invoice in $INV/Invoice
              for $InvoiceItem in $Invoice/InvoiceLines/InvoiceLine
              return 
              {
                element TypeChild {name($InvoiceItem/Type/*)}
              , $Invoice/InvoiceInformation
              , $InvoiceItem
              }
              '
           PASSING et.xt as INV
           COLUMNS
             typechild          VARCHAR2(30)  PATH 'TypeChild'
           , INVOICENUMBER      VARCHAR2(6)   PATH 'InvoiceInformation/Number'
    ...
    
  • statistics on the partition lock

    Hello

    DB: 10.2

    I created under the table.

    CREATE TABLE invoices
    (invoice_no NUMBER NOT NULL,
    invoice_date DATE NOT NULL,
    Comments VARCHAR2 (500))
    PARTITION OF RANGE (invoice_date)
    (PARTITION invoices_q1 VALUES LESS THAN (TO_DATE (January 4, 2001 ',' DD/MM/YYYY ')) TABLESPACE userdata,)
    PARTITION invoices_q2 VALUES LESS THAN (TO_DATE (7 January 2001 ',' DD/MM/YYYY ')) TABLESPACE userdata,
    PARTITION invoices_q3 VALUES LESS THAN (TO_DATE (January 9, 2001 ',' DD/MM/YYYY ')) TABLESPACE userdata,
    PARTITION invoices_q4 VALUES LESS THAN (TO_DATE (January 1, 2002 ',' DD/MM/YYYY ')) TABLESPACE userdata);

    EXEC DBMS_STATS. UNLOCK_PARTITION_STATS ("SYS", "BILLS", "INVOICES_Q1");

    Select TABLE_NAME, nom_partition, SUBPARTITION_NAME, OBJECT_TYPE, OWNER, stattype_locked from dba_tab_statistics where table_name = 'INVOICES' and owner = 'SYS ';

    OWNER, TABLE_NAME NOM_PARTITION SUBPARTITION_N OBJECT_TYP STATT
    ---------- -------------- -------------- -------------- ---------- -----
    TABLE OF INVOICES SYS
    SYS BILLS INVOICES_Q1 PARTITION
    SYS BILLS INVOICES_Q2 PARTITION
    SYS BILLS INVOICES_Q3 PARTITION
    SYS BILLS INVOICES_Q4 PARTITION


    I tried to block the executed below partitions.i query.the unlocked partition? What is the reason?



    Thank you and best regards,
    VN

    Maybe because you have run UNLOCK_PARTITION_STATS not LOCK_PARTITION_STATS?

  • Import an XML level 3 in 3 separate tables

    Hello

    I read some interesting discussions of Odie where he had several great solutions for this. However, I could not solve those in a solution of work for my challenge, so I was wondering if some could give me another push in the back. I look like a huge post, but I'm not able to attach files so it is all copied in corn so I guess that very easy to understand what I'm trying to achieve.

    Based on the example XML file that I expect to get:
    7 records in the INVOICE table
    8 records in table USR
    14 records in the PRODUCTS table.

    But I do not know how... I am very happy if someone could help me.

    I have a XML file with 3 levels (invoice, user, product) and I want to store these 3 separate tables in and of course create references between these entities.
    I add 3 things in this post:
    DB version:
    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE Production 11.1.0.7.0
    AMT for 64-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production

    Tables in which I would like to store the information: (if changes are needed is OK)
    CREATE THE TABLE GOA_DOCS. INVOICE
    (
    SUBID NUMBER,
    STYPE VARCHAR2 (20 BYTE),
    VARCHAR2 (20 BYTE) GENDER,
    FNAME VARCHAR2 (50 BYTE),
    MNAME VARCHAR2 (50 BYTE),
    LNAME VARCHAR2 (50 BYTE),
    STREET VARCHAR2 (75 BYTE),
    NUMBER OF HOUSENO,
    HOUSENOADD VARCHAR2 (20 BYTE),
    ZIP VARCHAR2 (20 BYTE),
    CITY VARCHAR2 (50 BYTE),
    COUNTRY VARCHAR2 (50 BYTE)
    PHONE VARCHAR2 (20 BYTE),
    VARCHAR2 (20 BYTE) MOBILE,
    E-MAIL VARCHAR2 (20 BYTE),
    ACCOUNT BANK VARCHAR2 (20 BYTE),
    BANKACCOWNER VARCHAR2 (50 BYTE),
    PAYMENTTYPE NUMBER,
    NUMBER OF PAYMENTINTERVAL
    FDATE VARCHAR2 (20 BYTE),
    NUMBER OF CURRENTPERIOD,
    YEAR SCHOOL VARCHAR2 (20 BYTE).
    VARCHAR2 (75 BYTE) PRODUCTS,
    USERS VARCHAR2 (750 BYTE)
    )
    TABLESPACE DOCUMENTEN
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    64K INITIALS
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    NOLOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;

    CREATE THE TABLE GOA_DOCS. USR
    (
    THE USER ID NUMBER,
    TYPE VARCHAR2 (20 BYTE),
    FNAME VARCHAR2 (50 BYTE),
    MNAME VARCHAR2 (50 BYTE),
    LNAME VARCHAR2 (50 BYTE),
    NUMBER OF SAPID,
    SCHOOL VARCHAR2 (50 BYTE),
    VARCHAR2 (20 BYTE) EDATE,
    VARCHAR2 (750 BYTE) PRODUCTS,
    SUBID NUMBER
    )
    TABLESPACE DOCUMENTEN
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    64K INITIALS
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    NOLOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;

    CREATE THE TABLE GOA_DOCS. OUR
    (
    PRODID NUMBER,
    NAME VARCHAR2 (50 BYTE),
    NUMBER OF THE MOMENT,
    NUMBER OF AMOUNT,
    NUMBER OF UNIT PRICE,
    TOTALPRICE NUMBER,
    INVOICETYPE VARCHAR2 (20 BYTE),
    VAT VARCHAR2 (20 BYTE),
    THE USER ID NUMBER
    )
    TABLESPACE DOCUMENTEN
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    64K INITIALS
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    NOLOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;

    Example XML file: (I removed some TAGS with sensitive information)
    <? XML version = "1.0" encoding = "ISO-8859-1? >
    < INVOICE >
    < INVOICE >
    < SUBID > 90011302 < / SUBID >
    Parent < STYPE > < / STYPE >
    Female < SEX > < / TYPE >
    B < FNAME > < / FNAME >
    < MNAME / >
    Baart < LNAME > < / LNAME >
    < PAYMENTTYPE > 2 < / PAYMENTTYPE >
    < PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
    < FDATE > 2011 - 12 - 08 < / FDATE >
    < CURRENTPERIOD > 2 < / CURRENTPERIOD >
    < year SCHOOL > 2011-2012 < / year SCHOOL >
    < PRODUCTS / >
    < USER >
    < USER >
    < username > 80018011 < / USERID >
    Student of < TYPE > < / TYPE >
    Lidewij < FNAME > < / FNAME >
    < MNAME / >
    Baart < LNAME > < / LNAME >
    < SAPID > 80001960 < / SAPID >
    Boldinghschool M.M. < SCHOOL > < / SCHOOL >
    < EDATE / >
    < PRODUCTS >
    < PRODUCT >
    < PRODID > 93 < / PRODID >
    < NAME > Halfvolle chocolademelk 200 ml < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 41 < / AMOUNT >
    < UNITPRICE > 38 < / UNIT price >
    < > 1558 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < PRODUCT >
    < PRODID > 703307 < / PRODID >
    < NAME > Halfvolle melk 200 ml < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 41 < / AMOUNT >
    < UNITPRICE > 36 < / UNIT price >
    < > 1476 TOTALPRICE < / TOTALPRICE >
    debit < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < / PRODUCT >
    < / USER >
    < / USERS >
    < / INVOICE >
    < INVOICE >
    < SUBID > 90011326 < / SUBID >
    Parent < STYPE > < / STYPE >
    Female < SEX > < / TYPE >
    R < FNAME > < / FNAME >
    < MNAME / >
    < LNAME > JC-lalmahomed < / LNAME >
    < PAYMENTTYPE > 2 < / PAYMENTTYPE >
    < PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
    < FDATE > 2011 - 12 - 08 < / FDATE >
    < CURRENTPERIOD > 2 < / CURRENTPERIOD >
    < year SCHOOL > 2011-2012 < / year SCHOOL >
    < PRODUCTS / >
    < USER >
    < USER >
    < username > 80018092 < / USERID >
    Student of < TYPE > < / TYPE >
    Seyyed < FNAME > < / FNAME >
    < MNAME / >
    JC < LNAME > < / LNAME >
    < SAPID > 80002007 < / SAPID >
    Parkiet < SCHOOL > < / SCHOOL >
    < EDATE / >
    < PRODUCTS >
    < PRODUCT >
    < PRODID > 702632 < / PRODID >
    < NAME > Campina glass rolled vruchten 200 ml < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 51 < / AMOUNT >
    < UNITPRICE > 38 < / UNIT price >
    < > 1938 TOTALPRICE < / TOTALPRICE >
    debit < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < PRODUCT >
    < PRODID > 703307 < / PRODID >
    < NAME > Halfvolle melk 200 ml < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 51 < / AMOUNT >
    < UNITPRICE > 36 < / UNIT price >
    < > 1836 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < / PRODUCT >
    < / USER >
    < / USERS >
    < / INVOICE >
    < INVOICE >
    < SUBID > 90011548 < / SUBID >
    Parent < STYPE > < / STYPE >
    Female < SEX > < / TYPE >
    < FNAME > A < / FNAME >
    Van < MNAME > < / MNAME >
    Loo < LNAME > < / LNAME >
    < PAYMENTTYPE > 2 < / PAYMENTTYPE >
    < PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
    < FDATE > 2011 - 12 - 08 < / FDATE >
    < CURRENTPERIOD > 2 < / CURRENTPERIOD >
    < year SCHOOL > 2011-2012 < / year SCHOOL >
    < PRODUCTS / >
    < USER >
    < USER >
    < username > 80018607 < / USERID >
    Student of < TYPE > < / TYPE >
    Ricardo < FNAME > < / FNAME >
    < MNAME / >
    Ramaker < LNAME > < / LNAME >
    < SAPID > 80000863 < / SAPID >
    SCHOOL <>Achtbaan < / SCHOOL >
    < EDATE / >
    < PRODUCTS >
    < PRODUCT >
    < PRODID > 703307 < / PRODID >
    < NAME > Halfvolle melk 200 ml < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 30 < / AMOUNT >
    < UNITPRICE > 36 < / UNIT price >
    < > 1080 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < / PRODUCT >
    < / USER >
    < / USERS >
    < / INVOICE >
    < INVOICE >
    < SUBID > 90011555 < / SUBID >
    Parent < STYPE > < / STYPE >
    Female < SEX > < / TYPE >
    J. < FNAME > < / FNAME >
    < MNAME / >
    Dijkman < LNAME > < / LNAME >
    < PAYMENTTYPE > 1 < / PAYMENTTYPE >
    < PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
    < FDATE > 2011 - 12 - 08 < / FDATE >
    < CURRENTPERIOD > 2 < / CURRENTPERIOD >
    < year SCHOOL > 2011-2012 < / year SCHOOL >
    < PRODUCTS / >
    < USER >
    < USER >
    < username > 80018618 < / USERID >
    Student of < TYPE > < / TYPE >
    Tess < FNAME > < / FNAME >
    < MNAME / >
    Dijkman < LNAME > < / LNAME >
    < SAPID > 80009575 < / SAPID >
    Burcht < SCHOOL > < / SCHOOL >
    < EDATE / >
    < PRODUCTS >
    < PRODUCT >
    < PRODID > 702633 < / PRODID >
    < NAME > Optimel drink 200 ml framboos < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 42 < / AMOUNT >
    < UNITPRICE > 38 < / UNIT price >
    < > 1596 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < / PRODUCT >
    < / USER >
    < / USERS >
    < / INVOICE >
    < INVOICE >
    < SUBID > 90011597 < / SUBID >
    Parent < STYPE > < / STYPE >
    Female < SEX > < / TYPE >
    E.J. < FNAME > < / FNAME >
    < MNAME / >
    Sebok < LNAME > < / LNAME >
    < PAYMENTTYPE > 2 < / PAYMENTTYPE >
    < PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
    < FDATE > 2011 - 12 - 08 < / FDATE >
    < CURRENTPERIOD > 2 < / CURRENTPERIOD >
    < year SCHOOL > 2011-2012 < / year SCHOOL >
    < PRODUCTS / >
    < USER >
    < USER >
    < username > 80018711 < / USERID >
    Student of < TYPE > < / TYPE >
    Wort < FNAME > < / FNAME >
    < MNAME / >
    Sebok < LNAME > < / LNAME >
    < SAPID > 80006071 < / SAPID >
    Basisschool Montini < SCHOOL > < / SCHOOL >
    < EDATE / >
    < PRODUCTS >
    < PRODUCT >
    < PRODID > 702633 < / PRODID >
    < NAME > Optimel drink 200 ml framboos < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 39 < / AMOUNT >
    < UNITPRICE > 38 < / UNIT price >
    < > 1482 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < PRODUCT >
    < PRODID > 703307 < / PRODID >
    < NAME > Halfvolle melk 200 ml < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 52 < / AMOUNT >
    < UNITPRICE > 36 < / UNIT price >
    < > 1872 TOTALPRICE < / TOTALPRICE >
    debit < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < / PRODUCT >
    < / USER >
    < / USERS >
    < / INVOICE >
    < INVOICE >
    < SUBID > 90011631 < / SUBID >
    Parent < STYPE > < / STYPE >
    Female < SEX > < / TYPE >
    < FNAME > I < / FNAME >
    < MNAME / >
    Vliese < LNAME > < / LNAME >
    < PAYMENTTYPE > 1 < / PAYMENTTYPE >
    < PAYMENTINTERVAL > 1 < / PAYMENTINTERVAL >
    < FDATE > 2011 - 12 - 08 < / FDATE >
    < CURRENTPERIOD > 9 < / CURRENTPERIOD >
    < year SCHOOL > 2011-2012 < / year SCHOOL >
    < PRODUCTS / >
    < USER >
    < USER >
    < username > 80034981 < / USERID >
    Student of < TYPE > < / TYPE >
    Lyandra < FNAME > < / FNAME >
    < MNAME / >
    Vliese < LNAME > < / LNAME >
    < SAPID > 80002299 < / SAPID >
    Dominicus < SCHOOL > school < / SCHOOL >
    2011-11-30 < EDATE > < / EDATE >
    < PRODUCTS >
    < PRODUCT >
    < PRODID > 702633 < / PRODID >
    < NAME > Optimel drink 200 ml framboos < / NAME >
    < TIME > 1 < / TIME >
    < AMOUNT > 123 < / AMOUNT >
    < UNITPRICE > 38 < / UNIT price >
    < > 4674 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < PRODUCT >
    < PRODID > 702633 < / PRODID >
    < NAME > Optimel drink 200 ml framboos < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 123 < / AMOUNT >
    < UNITPRICE > 38 < / UNIT price >
    < > 4674 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < / PRODUCT >
    < / USER >
    < USER >
    < username > 80053302 < / USERID >
    Student of < TYPE > < / TYPE >
    Tany < FNAME > < / FNAME >
    < MNAME / >
    Vliese < LNAME > < / LNAME >
    < SAPID > 80002976 < / SAPID >
    SCHOOL <>BS Joh. of Graaff < / SCHOOL >
    2011-11-30 < EDATE > < / EDATE >
    < PRODUCTS >
    < PRODUCT >
    < PRODID > 702633 < / PRODID >
    < NAME > Optimel drink 200 ml framboos < / NAME >
    < TIME > 1 < / TIME >
    < AMOUNT > 127 < / AMOUNT >
    < UNITPRICE > 38 < / UNIT price >
    < > 4826 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < PRODUCT >
    < PRODID > 93 < / PRODID >
    < NAME > Halfvolle chocolademelk 200 ml < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 101 < / AMOUNT >
    < UNITPRICE > 38 < / UNIT price >
    < > 3838 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < / PRODUCT >
    < / USER >
    < / USERS >
    < / INVOICE >
    < INVOICE >
    < SUBID > 90014733 < / SUBID >
    Parent < STYPE > < / STYPE >
    < SEX > unknown < / TYPE >
    M.J. < FNAME > < / FNAME >
    < MNAME / >
    Artiel < LNAME > < / LNAME >
    < PAYMENTTYPE > 2 < / PAYMENTTYPE >
    < PAYMENTINTERVAL > 1 < / PAYMENTINTERVAL >
    < FDATE > 2011 - 12 - 08 < / FDATE >
    < CURRENTPERIOD > 9 < / CURRENTPERIOD >
    < year SCHOOL > 2011-2012 < / year SCHOOL >
    < PRODUCTS / >
    < USER >
    < USER >
    < username > 80024315 < / USERID >
    Student of < TYPE > < / TYPE >
    Rey < FNAME > < / FNAME >
    < MNAME / >
    Artiel < LNAME > < / LNAME >
    < SAPID > 80002292 < / SAPID >
    SCHOOL <>Blijberg < / SCHOOL >
    < EDATE / >
    < PRODUCTS >
    < PRODUCT >
    < PRODID > 703307 < / PRODID >
    < NAME > Halfvolle melk 200 ml < / NAME >
    < TIME > 1 < / TIME >
    < AMOUNT > 102 < / AMOUNT >
    < UNITPRICE > 36 < / UNIT price >
    < > 3672 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < PRODUCT >
    < PRODID > 703307 < / PRODID >
    < NAME > Halfvolle melk 200 ml < / NAME >
    < TIME > 2 < / TIME >
    < AMOUNT > 80 < / AMOUNT >
    < UNITPRICE > 36 < / UNIT price >
    < > 2880 TOTALPRICE < / TOTALPRICE >
    credit of < INVOICETYPE > < / INVOICETYPE >
    Laag < VAT > < / VAT >
    < / PRODUCT >
    < / PRODUCT >
    < / USER >
    < / USERS >
    < / INVOICE >
    < / INVOICES >

    However, this directory exists on my local machine and it will perhaps exist on DB server?

    Indeed, a directory object Oracle should point to a location on the DB server, or elsewhere on the network, the server can reach.

  • How to calculate the data according to the fiscal

    I want to dispaly the result for  the accounting year from April to March for any accounting year (Accounting year is from April to March). 
    I have a table INVOICE. 
    
    CREATE TABLE INVOICE
    (
      IN_NO       NUMBER,
      IN_DT       DATE,
      IN_DETAILS  VARCHAR2(20 BYTE)
    )
    
    I want to calculate display the result for accounting year from April 2010 to March 2011, and from April 2011 to MArch 2012.
    What statement should i use to filter the data as above ?
    
    Sanjay

    user12957777 wrote:

    I want to dispaly the result for  the accounting year from April to March for any accounting year (Accounting year is from April to March).
    I have a table INVOICE. 
    
    CREATE TABLE INVOICE
    (
    IN_NO       NUMBER,
    IN_DT       DATE,
    IN_DETAILS  VARCHAR2(20 BYTE)
    )
    
    I want to calculate display the result for accounting year from April 2010 to March 2011, and from April 2011 to MArch 2012.
    What statement should i use to filter the data as above ?
    
    Sanjay
    

    You should now learn to use correctly

     tags
    
    select to_char(add_months(in_dt,-3),'YYYY') FISCAL_YEAR FROM INVOICE;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
    
  • Select a field based on the value

    I have a table where VAL_DATE can have a value or is empty.

    What I need is:

    When it is not empty, it must use VAL_DATE

    the selection must be
    select INV_ID,VAL_DATE,AMOUNT FROM INVOICE:
    When VAL_DATE is empty, it must use INV_DATE
    SELECT INV_ID,INV_DATE,AMOUNT FROM INVOICE;
    here some examples:
    create table INVOICE
    (INV_ID NUMBER(5)
    ,INV_DATE DATE
    ,VAL_DATE DATE
    ,AMOUNT NUMBER(5));
    
    INSERT
    INTO INVOICE
      (
        INV_ID,
        INV_DATE,
        VAL_DATE,
        AMOUNT
      )
      VALUES
      (
        1,
        SYSDATE,
        NULL,
        100
      );
    INSERT
    INTO INVOICE
      (
        INV_ID,
        INV_DATE,
        VAL_DATE,
        AMOUNT
      )
      VALUES
      (
        2,
        SYSDATE,
       SYSDATE,
        200
      );
      
    Kind regards

    Menk Slot
    SELECT INV_ID,NVL(VAL_DATE,INV_DATE),AMOUNT FROM INVOICE;
    

Maybe you are looking for

  • BIOS reset to the Satellite M30X

    Hello I own a Satellite M30X and its start not more after soldering a new D/C. It turns on and the fan starts to operate. But the screen remains black and after 2 seconds, the fan stops and everything is frozen (can not turn off by pressing the power

  • @ and position "on the keyboard.

    I have an Acer Aspire one Aspire one (Linux) with mail arpire running   I have system settings set to English (United Kingdom), but the sign @ is on the 2 and the "is on the ' I think it's for the configuration of the U.S." My question is how do they

  • Live Messenger fail "set up side by side" not correct

    It seems that MANY people are in this situation, Please HELP I'm connected but for others, even though I'm not logged in I uninstalled and reinstalled but no change.  We visited forums and tried everything suggested.  I can connect in all accounts ex

  • using Remote Desktop for access the ddns domain how to

    Hello Hope someone can help me. I have a host pc that is running windows 7 Professional, that it has installed the TightVNC server. It works well with the connection to other machines using tightVNC viewer to connect to other PCs. I implemented the p

  • How can I read variable in JSON?

    As a test, I have this JSON file called info.js:var JSONObject = '{"page_text" : "This a normal string that can be used."}' Now in my file animate CC I want to read this variable "page_text" so I can put its content, the string in a text field. I sta