on 02-26-2014 3:04 PM
Hi Experts.
Has anyone encountered this error? "Object type for draft is missing".
StockTransfer stDraft = (StockTransfer)oSup.oCompany.GetBusinessObject(BoObjectTypes.oStockTransferDraft);
try
{
stDraft.CardCode = transferencia.ParceiroDeNegocio;
foreach (var item in transferencia.ListaItens)
{
stDraft.Lines.FromWarehouseCode = item.Deposito;
stDraft.Lines.ItemCode = item.ItemCode;
stDraft.Lines.Quantity = item.Quantidade;
stDraft.Lines.BinAllocations.BinActionType = BinActionTypeEnum.batFromWarehouse;
stDraft.Lines.BinAllocations.BinAbsEntry = item.Posicao;
stDraft.Lines.BinAllocations.Quantity = item.QtdPosicao;
stDraft.Lines.BinAllocations.Add();
stDraft.Lines.Add();
}
int iRetorno = stDraft.Add();
if (!iRetorno.Equals(0))
{
string sErro = oSup.oCompany.GetLastErrorDescription();
throw new Exception(sErro);
}
}
catch (Exception)
{
throw;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.