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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.09.2013, 06:16   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Oversettlement error when posting a Retail statement in AX 2012 R2
Источник: http://blogs.msdn.com/b/axsupport/ar...x-2012-r2.aspx
==============

Posting Retail Statement Generates the error:

"Update for voucher XXXXX has been cancelled to avoid oversettlement. The settled customer or vendor balance for the transaction must not exceed the transaction amount."



You may run into this scenario when a POS transaction contains a sale and return on the same transaction for the same amount. The transaction subtotal will be $0.00 and there is a tax amount of .01 or -.01.

A good way to find if you have a POS transaction on your statement with a $0 subtotal and a tax amount would be to look at the RETAILTRANSACTIONTABLE where the NetAmount = 0 and the GrossAmount 0 (normally you will see a GrossAmount of .01 or -.01)



I would advise setting the Sales Tax Group for your store (General Ledger>>Setup>>Sales Tax>>Sales Tax Groups) to rounding by "Sales Tax Code Combination". For the Sales Tax Codes (General Ledger>>Setup>>Sales Tax>>Sales Tax Codes) set the Marginal base field to "Net amount per line". This will help going forward.



If you still receive the error, I would advise limiting your statement, by date and time, so only the transaction with the issue is included in the statement.



The following code change will allow the statement to post without the settlement. As always, try this in a test environment before running on production. Make sure no other statements are being posted manually or in a batch job or you will need to manually settle all transactions that are posted.



[s] \Classes\RetailStatementPaymentJournal\postPaymentJournalForSales



//toSettle = true;

toSettle= false;

totalCreditAmountCur = totalRoundAmountCur;

lastInvoiceId = transTable.invoiceId;



Once the statement is posted, change the toSettle back to true and you can manually settle the payment and invoice for the customer. You may need to create a transaction either positive or negative to bring the customer balance to 0 and settle the transaction created when the statement posted.






Источник: http://blogs.msdn.com/b/axsupport/ar...x-2012-r2.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
emeadaxsupport: AX for Retail 2012 R2: Run-down on Log Files Blog bot DAX Blogs 0 21.06.2013 08:11
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
emeadaxsupport: Microsoft Dynamics AX 2012 Retail Statement Posting Error: Account number for transaction type Ledger journal does not exist Blog bot DAX Blogs 0 27.09.2012 20:13
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:01.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.