Display warnings for product substitution, mismatch package size/units in deliveries

Description

A new read-only node "warnings" is required for act.supplierDeliveryItem which will be populated when mapping UBL invoices.
It will used to report warnings when:

  • an invoice line references an order line, but for a different product (i.e product substitution)

  • an invoice line has a different PackSizeNumeric to the original order item's packageSize

  • an invoice line has a different PackSizeNumeric to that of any corresponding entityRelationship.productSupplier. This is consulted if the order item specified no packageSize

  • an invoice line has a different unitCode to that of the original order item's packageUnits

  • an invoice line has a different unitCode to that of any corresponding entityRelationship.productSupplier. This is consulted if the order item specified no packageUnits

The warnings node will be displayed as:

  • a multi-line text field when editing/viewing delivery items, but only if non-null

  • a column in the delivery items table, indicating if a delivery item has warnings. Rather than display the entire warning text, this should display an icon

When editing a delivery with warnings, the warnings should be displayed in a summary dialog when the editor is first displayed.
When finalising a delivery with warnings, the warnings should be displayed in a summary dialog, and the user given the option to cancel finalisation.

Environment

None

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Time tracking

6h

Components

Affects versions

Priority

Major
Configure