Skip to content

Commit

Permalink
fix: renamed variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleKSaju committed Jan 14, 2025
1 parent 9e5ab4e commit 792c676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/baseModels/Invoice/Invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -986,12 +986,12 @@ export abstract class Invoice extends Transactional {
let linkedEntries;

if (this.returnAgainst) {
const someDOC = (await this.fyo.doc.getDoc(
const sinvDoc = (await this.fyo.doc.getDoc(
ModelNameEnum.SalesInvoice,
this.returnAgainst
)) as SalesInvoice;

linkedEntries = await getLinkedEntries(someDOC);
linkedEntries = await getLinkedEntries(sinvDoc);
}

if (!this.stockNotTransferred) {
Expand Down

0 comments on commit 792c676

Please sign in to comment.