Merge pull request #19163 from thefalconx33/small-fixes

fix: Supplier field not getting populated in serial no on creation of asset
This commit is contained in:
Deepesh Garg
2019-09-25 22:09:41 +05:30
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -598,6 +598,7 @@ class BuyingController(StockController):
'item_code': d.item_code,
'via_stock_ledger': False,
'company': self.company,
'supplier': self.supplier,
'actual_qty': d.qty,
'purchase_document_type': self.doctype,
'purchase_document_no': self.name,
@@ -625,6 +626,7 @@ class BuyingController(StockController):
'asset_category': item_data.get('asset_category'),
'location': row.asset_location,
'company': self.company,
'supplier': self.supplier,
'purchase_date': self.posting_date,
'calculate_depreciation': 1,
'purchase_receipt_amount': purchase_amount,