mirror of
https://github.com/frappe/books.git
synced 2024-12-22 02:49:03 +00:00
fix: hide coupons table when no coupons are available after submission
This commit is contained in:
parent
7ff492adfc
commit
614d8931f5
@ -843,7 +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,
|
||||
coupons: () => this.isSubmitted && !this.coupons?.length,
|
||||
priceList: () =>
|
||||
!this.fyo.singles.AccountingSettings?.enablePriceList ||
|
||||
(!this.canEdit && !this.priceList),
|
||||
|
Loading…
Reference in New Issue
Block a user