mirror of
https://github.com/frappe/books.git
synced 2025-01-02 22:50:14 +00:00
fix: hide coupon table when no coupons available
This commit is contained in:
parent
0b310c2a49
commit
bdb684354d
@ -842,6 +842,7 @@ export abstract class Invoice extends Transactional {
|
||||
loyaltyProgram: () => !this.loyaltyProgram,
|
||||
loyaltyPoints: () => !this.redeemLoyaltyPoints || this.isReturn,
|
||||
redeemLoyaltyPoints: () => !this.loyaltyProgram || this.isReturn,
|
||||
coupons: () => !this.coupons?.length,
|
||||
priceList: () =>
|
||||
!this.fyo.singles.AccountingSettings?.enablePriceList ||
|
||||
(!this.canEdit && !this.priceList),
|
||||
|
Loading…
Reference in New Issue
Block a user