feat(stock-reco): Fetch items in stock reco based on group warehouse

This commit is contained in:
Nabin Hait
2019-01-16 16:20:05 +05:30
parent 78ccbe24a3
commit 3dd5f55412
4 changed files with 38 additions and 23 deletions

View File

@@ -11,7 +11,7 @@ def validate_gstin_for_india(doc, method):
if not hasattr(doc, 'gstin'):
return
doc.gstin = doc.gstin.upper().strip()
doc.gstin = doc.gstin.upper().strip() if doc.gstin else ""
if not doc.gstin or doc.gstin == 'NA':
return