mirror of
https://github.com/frappe/books.git
synced 2025-01-03 15:17:30 +00:00
fix: returnAgainst hiding rule
This commit is contained in:
parent
1a93ab04a5
commit
861493ed90
@ -68,7 +68,8 @@ export abstract class StockTransfer extends Transfer {
|
|||||||
terms: () => !(this.terms || !(this.isSubmitted || this.isCancelled)),
|
terms: () => !(this.terms || !(this.isSubmitted || this.isCancelled)),
|
||||||
attachment: () =>
|
attachment: () =>
|
||||||
!(this.attachment || !(this.isSubmitted || this.isCancelled)),
|
!(this.attachment || !(this.isSubmitted || this.isCancelled)),
|
||||||
returnAgainst: () => this.isSubmitted && !this.returnAgainst,
|
returnAgainst: () =>
|
||||||
|
(this.isSubmitted || this.isCancelled) && !this.returnAgainst,
|
||||||
};
|
};
|
||||||
|
|
||||||
static defaults: DefaultMap = {
|
static defaults: DefaultMap = {
|
||||||
|
Loading…
Reference in New Issue
Block a user