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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 21.02.2013, 16:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
palleagermark: Choose payments means in the danish OIOUBL invoice
Источник: http://palleagermark.blogspot.com/20...sh-oioubl.html
==============

When building the OIOUBL invoice you can choose which form of payment should apply. You can choose between bank transfer, FIK 71 and Giro.

How payment information is added to the OIOUBL file is determined from the AX OIOUBL stylesheet.

The stylesheet assumes that you to have used the following payment method codes in AX: "DK:BANK", "DK:FIK" or "DK:GIRO".

According to the code, the stylesheet formats the payment information correct.
If you don't want to work with these codes in AX, you need to change the stylesheet according to look for the codes you are using.

If you are using FIK or Giro, you'd want AX to fill the field CustInvoiceJour.PaymId with payment reference information. This is however not implemented for Denmark, but only Norway.

PaymentId is set from code in:
\Classes\CustPostInvoice\run
\Classes\SalesInvoiceJournalCreateBase\createJournalHeader

You need to choose the the correct Giro type for the invoice when doing the invoice update, to get the right payment id calculation.

With the correct Giro type you only need to add #isoDK to the container here:
X++:
if (SysCountryRegionCode::isLegalEntityInCountryRegion([B][#isoNO][/B]) && numberSeq)
    {
        moneyTransferSlip = PaymMoneyTransferSlip::construct(custInvoiceJour.GiroType);
        moneyTransferSlip.init(custInvoiceJour.GiroType);

        moneyTransferSlip.parmNumSeqCode(numberSeq.parmNumberSequenceCode());

        paymId = moneyTransferSlip.ocrField( custInvoiceJour.InvoiceAccount, custInvoiceJour.InvoiceId,
                                             strLen(int2str(NumberSeq::highest(numberSeq.parmNumberSequenceId()))));

        custInvoiceJour.PaymId = strLRTrim(paymId);
    }
Источник: http://palleagermark.blogspot.com/20...sh-oioubl.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
ax-erp: Posting Invoice from Sales order/ Purchase order. Blog bot DAX Blogs 0 06.11.2012 15:11
emeadaxsupport: Can't find the packing slip during invoice matching or is the invoice form not showing any order lines? Blog bot DAX Blogs 0 11.06.2012 22:13
dynamicsaxtraining: Paying a Vendor Blog bot DAX Blogs 0 22.03.2012 22:11
dynamicsaxtraining: Purchase Blog bot DAX Blogs 0 11.03.2012 05:25
Shekhar: Invoice journal linked with Purchase order Blog bot DAX Blogs 0 31.05.2010 22:05

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

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

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