When bail_type == 'Monetary' but bail_percentage was not specified, an error was thrown. Fixed by setting default bail_percentage to 10% for Monetary bail and 100% for other bail types (e.g., Unsecured, Nominal) and only updating with the value in the "Percentage" column of Bail Information if it is specified.
When
bail_type == 'Monetary'
butbail_percentage
was not specified, an error was thrown. Fixed by setting defaultbail_percentage
to 10% for Monetary bail and 100% for other bail types (e.g., Unsecured, Nominal) and only updating with the value in the "Percentage" column of Bail Information if it is specified.