Skip to content

Support ChargeTotalAmount in InvoiceMapper::mapLegalMonetaryTotal() #35

Description

@mustafa2011

Hi,

LegalMonetaryTotal already supports ChargeTotalAmount through:

  • setChargeTotalAmount()
  • ChargeTotalAmount XML serialization

However, InvoiceMapper::mapLegalMonetaryTotal() does not map this field from the input array.

Suggested change:

->setAllowanceTotalAmount($data['allowanceTotalAmount'] ?? 0)
->setChargeTotalAmount($data['chargeTotalAmount'] ?? 0);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions