Skip to content

Commit

Permalink
Merge pull request #916 from AbleKSaju/fix-stoke-rate
Browse files Browse the repository at this point in the history
fix: can create purchase receipt and shipment with zero rate
  • Loading branch information
akshayitzme authored Aug 10, 2024
2 parents ea25c84 + b727cd9 commit 900d6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/inventory/StockManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
);
Expand Down

0 comments on commit 900d6de

Please sign in to comment.