Many thanks to Scott Gray for the patch (Apache OFBIZ-87). git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422403 13f79535-47bb-0310-9956-ffa450edef68
41 lines
1.7 KiB
Properties
41 lines
1.7 KiB
Properties
#####################################################################
|
|
# Copyright 2001-2006 The Apache Software Foundation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
# use this file except in compliance with the License. You may obtain a copy of
|
|
# the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#####################################################################
|
|
#
|
|
# Arithmetic properties for configuring BigDecimal calculations
|
|
#
|
|
|
|
# For setting decimal precision and rounding method of operations related to invoices
|
|
invoice.decimals = 2
|
|
invoice.rounding = ROUND_HALF_UP
|
|
|
|
# For setting decimal precision and rounding method of operations related to orders,
|
|
# such as shopping cart amounts and order amounts
|
|
order.decimals = 2
|
|
order.rounding = ROUND_HALF_UP
|
|
|
|
# For setting decimal precision and rounding method of operations related to customer accounts
|
|
# such as Financial Accounts
|
|
finaccount.decimals = 2
|
|
finaccount.rounding = ROUND_HALF_UP
|
|
|
|
# Most companies would want their sales tax calculations ALWAYS to round up (ie, 100.081 becomes 100.09)
|
|
# This could be ROUND_CEILING or ROUND_UP. (The difference is that ROUND_CEILING rounds towards positive infinity,
|
|
# ROUND_UP away from zero. So, for 1.13, both ROUND_UP and ROUND_CEILING will round to 1.2, but for -1.13,
|
|
# ROUND_UP gives you -1.2 and ROUND_CEILING -1.1.)
|
|
salestax.calc.decimals = 3
|
|
salestax.final.decimals = 2
|
|
salestax.rounding = ROUND_HALF_UP
|