You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message="Quantity consumed for Milk Production must be quantity produced + quantity purchased - quantity sold - quantity used for butter production - quantity used for other things"# NOQA: E501
1362
1362
else:
1363
1363
message="Quantity consumed for a Livelihood Activity must be quantity produced + quantity purchased - quantity sold - quantity used for other things"# NOQA: E501
1364
1364
raiseValidationError(_(message))
1365
1365
1366
1366
defvalidate_income(self):
1367
-
income=self.incomeor0
1368
-
quantity_sold=self.quantity_soldor0
1369
-
price=self.priceor0
1370
-
ifself.incomeandincome!=quantity_sold*price:
1371
-
raiseValidationError(_("Income for a Livelihood Activity must be quantity sold multiplied by price"))
0 commit comments