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

Remove parentTypeId from InvoiceType data where InvoiceTypeId and parentTypeId are equal

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 14.12, Release Branch 15.12, Trunk
    • Fix Version/s: 14.12.01, 15.12.01, 13.07.04
    • Component/s: accounting
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: