2
0
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:
akshayitzme 2023-08-19 10:12:54 +05:30
parent 1a93ab04a5
commit 861493ed90

View File

@ -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 = {