fix: link Purchase Invoice and Receipt Items to Asset

This commit is contained in:
Khushi Rawat
2024-08-26 23:33:10 +05:30
parent 27364b7e6b
commit a1aaffbebe
8 changed files with 108 additions and 6 deletions

View File

@@ -824,6 +824,8 @@ class BuyingController(SubcontractingController):
"asset_quantity": asset_quantity,
"purchase_receipt": self.name if self.doctype == "Purchase Receipt" else None,
"purchase_invoice": self.name if self.doctype == "Purchase Invoice" else None,
"purchase_receipt_item": row.name if self.doctype == "Purchase Receipt" else None,
"purchase_invoice_item": row.name if self.doctype == "Purchase Invoice" else None,
}
)