[Fix] Project not set in the stock ledger entry (#13357)

This commit is contained in:
rohitwaghchaure
2018-03-21 17:52:41 +05:30
committed by Nabin Hait
parent e010ddf65f
commit 93779c21a7
5 changed files with 28 additions and 3 deletions

View File

@@ -252,7 +252,7 @@ class StockController(AccountsController):
"company": self.company,
"batch_no": cstr(d.get("batch_no")).strip(),
"serial_no": d.get("serial_no"),
"project": d.get("project"),
"project": d.get("project") or self.get('project'),
"is_cancelled": self.docstatus==2 and "Yes" or "No"
})