Uploaded image for project: 'VPMS Web Application'
  1. OVPMS-1593

NPE receiving ESCI invoices missing tax information in AllowanceCharge

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.9.1
    • Component/s: Supplier
    • Labels:
      None
    • Sprint:

      Description

      If a UBL invoice is missing tax information for AllowanceCharge elements, the following NPE is generated:

      org.openvpms.esci.adapter.util.ESCIAdapterException: ESCIA-0700: Failed to process Invoice 0001912078 for supplier Foo and stock location Bar (527725): null
      Caused by: java.lang.NullPointerException
              at org.openvpms.esci.adapter.map.invoice.InvoiceMapperImpl.checkTaxCategory(InvoiceMapperImpl.java:394)
              at org.openvpms.esci.adapter.map.invoice.InvoiceMapperImpl.mapCharge(InvoiceMapperImpl.java:679)
              at org.openvpms.esci.adapter.map.invoice.InvoiceMapperImpl.map(InvoiceMapperImpl.java:256)
              at org.openvpms.esci.adapter.dispatcher.invoice.InvoiceProcessor.process(InvoiceProcessor.java:117)
              ... 53 more
      

      For ESCI, the TaxCategory and TaxSubtotal elements are required. An appropriate error needs to be raised if they are missing.

        Attachments

          Activity

            People

            • Assignee:
              tanderson Tim Anderson
              Reporter:
              tanderson Tim Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Who's Looking?