Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.


Symptoms

For some products where the prices fluctuates a lot, there is no price defined, and the cashier has to manually enter the daily price. However, this prevent the cashier to perform a return product, as the keyed in price is ignored

↑ Back to the top


Resolution

while the price not set, the NetAmountWithNoTax will be 0, but it try to calculate taxpercent by

taxPercent

 = saleLineItem.NetAmountWithTax - saleLineItem.NetAmountWithNoTax) / saleLineItem.NetAmountWithNoTax;

so exception thrown, here if netAmountWithNoTax = 0, then direct set taxpercent = 0.

↑ Back to the top


More information

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained here in is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

↑ Back to the top


Article Info
Article ID : 4076666
Revision : 1
Created on : 1/17/2018
Published on : 1/17/2018
Exists online : False
Views : 136