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

Customer Bad Debt, Initial Balance archetypes missing nonNegative assertions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9
    • Fix Version/s: 2.0
    • Component/s: Financial
    • Labels:
      None
    • Sprint:

      Description

      The Customer Bad Debt (act.customerAccountBadDebt) and Initial Balance (act.customerAccountInitialBalance) archetypes are missing nonNegative assertions on the amount and tax nodes.
      This enables users to enter a negative amount which is invalid for the purpose of balance calculations.
      The archetypes should have:

              <node name="amount" path="/total"
                    type="org.openvpms.component.business.domain.im.datatypes.quantity.Money" minCardinality="1"
                    defaultValue="'0.0'">
                  <assertion name="nonNegative">
                      <errorMessage>Value must be >= 0.0</errorMessage>
                  </assertion>
              </node>
              <node name="tax" path="/taxAmount"
                    type="org.openvpms.component.business.domain.im.datatypes.quantity.Money" minCardinality="1"
                    defaultValue="'0.0'" readOnly="true">
                  <assertion name="nonNegative">
                      <errorMessage>Value must be >= 0.0</errorMessage>
                  </assertion>
              </node>
      

      Any Customer Bad Debt or Initial Balance created with a negative value will need to be removed manually via mysql.

        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:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h

                  Who's Looking?