2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

Merge pull request #916 from AbleKSaju/fix-stoke-rate

fix: can create purchase receipt and shipment with zero rate
This commit is contained in:
Akshay 2024-08-10 14:39:23 +05:30 committed by GitHub
commit 900d6de9de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ export class StockManager {
throw new ValidationError(t`Rate needs to be set`);
}
if (details.rate.lte(0)) {
if (details.rate.lt(0)) {
throw new ValidationError(
t`Rate (${details.rate.float}) has to be greater than zero`
);