Skip to content

Commit

Permalink
fix: can create purchase receipt and shipment with zero rate
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleKSaju committed Aug 8, 2024
1 parent 1e09f5c commit eb8bab3
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 eb8bab3

Please sign in to comment.