private void insert_BHS_PhieuNhapKhoNoiBo(
InventTransferJour _inventTransferJour,
InventTransferJourLine _inventTransferJourLine,
InventDim _inventDim,
CompanyInfo _companyinfo)
{
InventTransferLine inventTransferLine;
TaxInformation_IN taxInformation;
InventLocation inventLocation;
_BHS_PhieuNhapKhoNoiBo.ToAddressName = _inventTransferJour.ToAddressName;
_BHS_PhieuNhapKhoNoiBo.TransferId = _inventTransferJour.TransferId;
_BHS_PhieuNhapKhoNoiBo.TransDate = _inventTransferJour.TransDate;
_BHS_PhieuNhapKhoNoiBo.InventLocationIdFrom = _inventTransferJour.InventLocationIdFrom;
_BHS_PhieuNhapKhoNoiBo.InventLocationIdTo = _inventTransferJour.InventLocationIdTo;
_BHS_PhieuNhapKhoNoiBo.VoucherId = _inventTransferJour.VoucherId;
_BHS_PhieuNhapKhoNoiBo.FromAddress = _inventTransferJour.fromAddress();
_BHS_PhieuNhapKhoNoiBo.ItemId = _inventTransferJourLine.ItemId;
_BHS_PhieuNhapKhoNoiBo.QtyReceived = _inventTransferJourLine.QtyReceived;
_BHS_PhieuNhapKhoNoiBo.inventUnit = _inventTransferJourLine.inventUnit();
_BHS_PhieuNhapKhoNoiBo.LocationName = this.getPostalAddressByType(_DirPartyTable.RecId, LogisticsLocationRoleType::Delivery).Address;
_BHS_PhieuNhapKhoNoiBo.UnitPrice = _inventTransferJourLine.UnitPrice_IN;
_BHS_PhieuNhapKhoNoiBo.ItemName = _inventTransferJourLine.itemName();
_BHS_PhieuNhapKhoNoiBo.Name = DirpartyTable::findRec(_companyinfo.RecId).Name;
_BHS_PhieuNhapKhoNoiBo.Address = LogisticsPostalAddress::findByLocation(CompanyInfo::find().postalAddress().Location).Address;
_BHS_PhieuNhapKhoNoiBo.FromAddressName = I want to get warehouses address here.
_BHS_PhieuNhapKhoNoiBo.insert();
}