Fix:
Discount button was greyed out due to wrong check. Show was sending customer as empty dictionary which triggered an error in input as id was a required column
This commit is contained in:
1 parent
578385f866
commit
bf09471e9e
2 files changed
+2
-2
No files matched your search
@@ -69,7 +69,7 @@ export class SalesHomeComponent implements OnInit {
|
||||
}
|
||||
|
||||
discountAllowed(): boolean {
|
||||
return this.auth.user.perms.indexOf('discount') === -1;
|
||||
return this.auth.user.perms.indexOf('discount') !== -1;
|
||||
}
|
||||
|
||||
showDiscount(): Observable<boolean | { id: string, name: string, discount: number }[]> {
|
||||
|
||||
Reference in new issue
Block a user