2
0
mirror of https://github.com/frappe/books.git synced 2025-02-13 17:39:09 +00:00

Merge pull request #1114 from AbleKSaju/fix-loyalty-points

fix: resolved points error in loyalty program
This commit is contained in:
Akshay 2025-02-05 12:06:30 +05:30 committed by GitHub
commit 1b6fb74717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,7 @@ export class SalesInvoice extends Invoice {
validations: ValidationMap = {
loyaltyPoints: async (value: DocValue) => {
if (!this.redeemLoyaltyPoints) {
if (!this.redeemLoyaltyPoints || this.isSubmitted) {
return;
}