AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 07.11.2014, 20:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Dynamics AXBR: Adicionar Textos de notas fiscais na ordem de venda
Источник: http://feedproxy.google.com/~r/daxbr/~3/_OCtiSLyDLk/
==============

Olá Pessoal,
Tudo bem?

Hoje adicionar um texto de nota fiscal a uma ordem de venda via X++. Estou compartilhando com vocês caso precisem algum dia.

public void generateDocumentReferenceExternal(SalesTable _salesTable, FiscalDocumentTextID_BR _textID) { DocuRef docuRefLocal; DocuRefExt_BR docuRefExt_BRLocal; FiscalDocumentSourceText_BR fiscalDocumentSourceTextLocal; if (_textID) { fiscalDocumentSourceTextLocal = FiscalDocumentSourceText_BR::findByTextID(_textID); if (fiscalDocumentSourceTextLocal) { try { ttsBegin; docuRefLocal.RefTableId = _salesTable.TableId; docuRefLocal.RefRecId = _salesTable.RecId; docuRefLocal.RefCompanyId = _salesTable.dataAreaId; docuRefLocal.TypeId = BrazilParameters::find().FiscalDocumentTextDocuTypeId; docuRefLocal.initFromFiscalDocumentSourceText_BR(fiscalDocumentSourceTextLocal); docuRefLocal.insert(); docuRefExt_BRLocal.DocuRef = docuRefLocal.RecId; docuRefExt_BRLocal.Type = FiscalDocumentTextType_BR::UserDef; docuRefExt_BRLocal.initFromFiscalDocumentSourceText(fiscalDocumentSourceTextLocal); docuRefExt_BRLocal.insert(); docuRefExt_BRLocal.initProcessReference(); ttsCommit; } catch { throw error(strFmt("Falha ao tentar gerar texto de nota fiscal para a ordem de venda %1", _salesTable.SalesId)); } } } }


Источник: http://feedproxy.google.com/~r/daxbr/~3/_OCtiSLyDLk/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 16 Blog bot Dynamics CRM: Blogs 0 23.01.2014 03:15
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
Dynamics AXBR: Calcular impostos das ordens de venda Blog bot DAX Blogs 0 11.04.2011 19:11
CRM DE LA CREME! Configuring Microsoft Dynamics CRM 4.0 for Internet-facing deployment Blog bot Dynamics CRM: Blogs 0 18.08.2009 11:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:31.