mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
fix: hide pricelist field when its empty and doc is submitted/cancelled
This commit is contained in:
parent
8db453c2f0
commit
99b1b08cb8
@ -692,7 +692,9 @@ export abstract class Invoice extends Transactional {
|
||||
!(this.attachment || !(this.isSubmitted || this.isCancelled)),
|
||||
backReference: () => !this.backReference,
|
||||
quote: () => !this.quote,
|
||||
priceList: () => !this.fyo.singles.AccountingSettings?.enablePriceList,
|
||||
priceList: () =>
|
||||
!this.fyo.singles.AccountingSettings?.enablePriceList ||
|
||||
(!this.canEdit && !this.priceList),
|
||||
returnAgainst: () =>
|
||||
(this.isSubmitted || this.isCancelled) && !this.returnAgainst,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user