[0004212] Work Order Entry: fixed error when voided WO refence is reused.
[fa-stable.git] / doc / calculate_price.txt
1 Calculate sales price from standard cost
2 ----------------------------------------
3
4 You can have automatic sales price calculation for items that do not have any 
5 prices in Sales Prices entered. This works independently from the Base Price 
6 List setting, but if the factor is set in the other Sales Type Lists it works
7 together with them.
8
9 Preparing and operation
10 -----------------------
11
12 Go into Setup tab - Company Setup.
13
14 In the field, Base for auto price calculation, set a Base Price List.
15 In the field, Add Price from Std cost, enter the % that you want to increase 
16 from the average standard costs for the items not listed in the Item Price List. 
17 If this value is empty there are no automatic price calculations. BE aware that 
18 an increase value of 0 will calculate the price to be the same as the Std cost. 
19 So to remove the calculation, just empty the field. It will then get an internal
20 value of -1.
21 If the average standard costs is 0, the calculation would result in 0 as well.
22
23 The field, Round to nearest xxx Cents, will round the calculated result to the 
24 nearest Cent entered. If you have 2 decimals in the amounts the value 100 would 
25 be divided by the xxx value. If you have 3 decimals in the amounts the value 
26 1000 will be divided by the xxx value. If there is no fraction, the value will 
27 be rounded up to the nearest xxx value. If there is a fraction, the value xxx 
28 will be subtracted from the value (100-xxx) or (1000-xxx).
29
30 Let us take an example:
31 ----------------------
32
33 Item standard cost = 20.77
34 Decimals = 2
35 Value to increase the items with = 70 (%)
36 Round to nearest value = 5
37
38 the pow(10, 2) = 100. 100 divided by 5 = 20 and no fraction. Price after increase
39 = 20.77 * (1 + 70 / 100) = 35.309. Rounded to nearest 5 cent value = 35.35;
40
41 Let us set the Round to nearest value = 95.
42
43 The value 100 / 95 = 1 and a fraction of 95. The Price will still be calculated 
44 to 35.309. Now the value will be rounded to 36.00 and subtracted by (100 - 95) = 
45 35.95.
46
47 So you see it is very flexible. If you have larger prices you can even round up 
48 to nearest 10, 100 by setting the rounding to nearest value = 1000 or 10000. 
49 But take care if you have different prices, large prices and small prices. It might
50 not be a good idea to round a value of 10.77 to 100.
51
52 If there is a base price list set and for instance a factor 0.7 the price list in 
53 foreign currencies are calculated as well. And again, if a 'Round to nearest' value
54 is set to other than 1 the foreign prices are rounded in the same way as explained 
55 above.
56
57 This new price calculaton should work with sales kits too.
58