Skip to content

Commit

Permalink
fix: change min Amount to equivalent to plan
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrak98 committed Sep 20, 2024
1 parent 9dffde3 commit b6ee808
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dashboard/src2/components/BuyPrepaidCreditsStripe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
!this.$team.doc.erpnext_partner
) {
throw new DashboardError(
`Amount must be greater than ${this.minimumAmount}`
`Amount must be greater than or equal to ${this.minimumAmount}`
);
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default {
!this.team?.data?.erpnext_partner
) {
throw new DashboardError(
`Amount must be greater than ${this.minimumAmount}`
`Amount must be greater than or equal to ${this.minimumAmount}`
);
}
},
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src2/pages/BillingOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default {
computed: {
minimumAmount() {
const unpaidAmount = this.$resources.unpaidAmountDue.data;
const minimumDefault = this.$team.doc.currency == 'INR' ? 800 : 10;
const minimumDefault = this.$team.doc.currency == 'INR' ? 410 : 5;
return Math.ceil(
unpaidAmount && unpaidAmount > 0 ? unpaidAmount : minimumDefault
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src2/pages/saas/in_desk_billing/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export default {
computed: {
minimumAmount() {
const unpaidAmount = this.$resources.unpaidAmountDue.data;
const minimumDefault = this.team?.data?.currency == 'INR' ? 800 : 10;
const minimumDefault = this.team?.data?.currency == 'INR' ? 410 : 5;

return Math.ceil(
unpaidAmount && unpaidAmount > minimumDefault
Expand Down

0 comments on commit b6ee808

Please sign in to comment.