mirror of
https://github.com/frappe/books.git
synced 2024-12-31 22:11:48 +00:00
fix: can create purchase receipt and shipment with zero rate
This commit is contained in:
parent
99e6cd5ec0
commit
b727cd9ea5
@ -107,7 +107,7 @@ export class StockManager {
|
|||||||
throw new ValidationError(t`Rate needs to be set`);
|
throw new ValidationError(t`Rate needs to be set`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (details.rate.lte(0)) {
|
if (details.rate.lt(0)) {
|
||||||
throw new ValidationError(
|
throw new ValidationError(
|
||||||
t`Rate (${details.rate.float}) has to be greater than zero`
|
t`Rate (${details.rate.float}) has to be greater than zero`
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user