Skip to content

Commit

Permalink
fix: change quantity of vendor credit entries to decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia committed Nov 13, 2024
1 parent 96bacc8 commit 9feab88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default class VendorCreditController extends BaseController {
check('entries.*.index').exists().isNumeric().toInt(),
check('entries.*.item_id').exists().isNumeric().toInt(),
check('entries.*.rate').exists().isNumeric().toFloat(),
check('entries.*.quantity').exists().isNumeric().toInt(),
check('entries.*.quantity').exists().isNumeric().toFloat(),
check('entries.*.discount')
.optional({ nullable: true })
.isNumeric()
Expand Down

0 comments on commit 9feab88

Please sign in to comment.