mirror of
https://github.com/frappe/books.git
synced 2024-12-22 02:49:03 +00:00
Merge pull request #1042 from AbleKSaju/fix-hideCouponTable
fix: hide coupon table when no coupons available
This commit is contained in:
commit
22f71b215f
@ -843,6 +843,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