Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-7147

Remove parentTypeId from InvoiceType data where InvoiceTypeId and parentTypeId are equal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 14.12, Release Branch 15.12, Trunk
    • 14.12.01, 15.12.01, 13.07.04
    • accounting
    • None

    Description

      In InvoiceType data, we have invoiceTypeId value with same parentTypeId.

      Please refer AccountingTypeData.xml.

      <InvoiceType description="Purchase Invoice" hasTable="N" invoiceTypeId="PURCHASE_INVOICE" parentTypeId="PURCHASE_INVOICE"/>
      <InvoiceType description="Sales Invoice" hasTable="N" invoiceTypeId="SALES_INVOICE" parentTypeId="SALES_INVOICE"/>

      Here, invoiceTypeId="PURCHASE_INVOICE" has "PURCHASE_INVOICE" as its parentTypeId. Same applies for invoiceTypeId="SALES_INVOICE"

      This also causes issue of infinite loop with EntityTypeUtil.hasParentType() method.

      Attachments

        1. OFBIZ-7147.patch
          1 kB
          Anurag Chandak

        Issue Links

          Activity

            People

              jleroux Jacques Le Roux
              arunpati Arun Patidar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: