Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- validate :check_vds_amount
- def check_vds_amount
- errors.add :vds_amount,
- 'needs to be less than or equal to VAT' if vds_amount > self.purchase.vat_payable
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement