Skip to content

Commit

Permalink
fix: do not validate numericality on postal codes of customer/vendor …
Browse files Browse the repository at this point in the history
…form (#294)
  • Loading branch information
cschuijt authored Dec 26, 2023
1 parent 34e97fc commit 39115b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ const Schema = Yup.object().shape({
billing_address_2: Yup.string().trim(),
billing_address_city: Yup.string().trim(),
billing_address_state: Yup.string().trim(),
billing_address_postcode: Yup.number().nullable(),
billing_address_postcode: Yup.string().nullable(),
billing_address_phone: Yup.number(),

shipping_address_country: Yup.string().trim(),
shipping_address_1: Yup.string().trim(),
shipping_address_2: Yup.string().trim(),
shipping_address_city: Yup.string().trim(),
shipping_address_state: Yup.string().trim(),
shipping_address_postcode: Yup.number().nullable(),
shipping_address_postcode: Yup.string().nullable(),
shipping_address_phone: Yup.number(),

opening_balance: Yup.number().nullable(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ const Schema = Yup.object().shape({
billing_address_2: Yup.string().trim(),
billing_address_city: Yup.string().trim(),
billing_address_state: Yup.string().trim(),
billing_address_postcode: Yup.number().nullable(),
billing_address_postcode: Yup.string().nullable(),
billing_address_phone: Yup.number(),

shipping_address_country: Yup.string().trim(),
shipping_address_1: Yup.string().trim(),
shipping_address_2: Yup.string().trim(),
shipping_address_city: Yup.string().trim(),
shipping_address_state: Yup.string().trim(),
shipping_address_postcode: Yup.number().nullable(),
shipping_address_postcode: Yup.string().nullable(),
shipping_address_phone: Yup.number(),

opening_balance: Yup.number().nullable(),
Expand Down

0 comments on commit 39115b3

Please sign in to comment.