mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
fix: hide pay ref if no refs and sub or canc
This commit is contained in:
parent
3b229321a9
commit
1e457ddcf2
@ -564,7 +564,7 @@ export class Payment extends Transactional {
|
|||||||
amountPaid: () => this.writeoff?.isZero() ?? true,
|
amountPaid: () => this.writeoff?.isZero() ?? true,
|
||||||
attachment: () =>
|
attachment: () =>
|
||||||
!(this.attachment || !(this.isSubmitted || this.isCancelled)),
|
!(this.attachment || !(this.isSubmitted || this.isCancelled)),
|
||||||
for: () => !((this.isSubmitted || this.isCancelled) && this.for?.length),
|
for: () => !!((this.isSubmitted || this.isCancelled) && !this.for?.length),
|
||||||
};
|
};
|
||||||
|
|
||||||
static filters: FiltersMap = {
|
static filters: FiltersMap = {
|
||||||
|
Loading…
Reference in New Issue
Block a user