Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userdocs:travelwise:documents_management:invoice:package_rounding_difference [2014/10/21 04:28]
dokuwiki_sync
userdocs:travelwise:documents_management:invoice:package_rounding_difference [2014/12/23 04:16] (current)
dokuwiki_sync
Line 1: Line 1:
-===== Invoice Package Calculation Flows and New Settings =====+===== Invoice Package Calculation Flows and Settings =====
  
-==== Reasons for new settings ​==== +==== Allowed Difference ==== 
-There were cases with a negative profit on a product inside a package and it was decided that //non package autoprice lines// (//NPAP// - a line for a product which has //'​Package Autoprice'//​ setting disabled in //Tools -> Products//) in a package should not have profit at all (i. e. 0 profit). To solve that and other requests the following is implemented:​+Allowed difference between package lines and sum of lines in the package after recalcualtion is controlled under: Tools → Company Settings → Invoicing → AllowedPackageRecalculationDifference. 
 + 
 +==== Negative Profit ​==== 
 +There can be the cases with a negative profit on a product inside a package and it was decided that //non package autoprice lines// (//NPAP// - a line for a product which has //'​Package Autoprice'//​ setting disabled in //Tools -> Products//) in a package should not have profit at all (i. e. 0 profit). To solve that and other requests the following is implemented:​
    
 +**Note**
 +In case of a multicurrency //total sell price// is not converted to //local sell price// for a package line after package recalculation. But it is converted when changes total sell price manually and when the package is created.
 +
 I I
 //Company Settings -> Settings -> Invoicing -> ResetNonPackageAutopriceLinesInPackage//​ //Company Settings -> Settings -> Invoicing -> ResetNonPackageAutopriceLinesInPackage//​
Line 36: Line 42:
 So on balancing package there is no recalculation (since lines are non pap and they are frozen by option1). So on balancing package there is no recalculation (since lines are non pap and they are frozen by option1).
 All difference goes to the new HF line, package gets balanced. All difference goes to the new HF line, package gets balanced.
- 
  
  
Line 79: Line 84:
 Yes: New line with the selected product for //​ProductForPuttingDifferenceInPackages//​ is added at the end of the package. It has Sell/Exp price = difference that we have. Yes: New line with the selected product for //​ProductForPuttingDifferenceInPackages//​ is added at the end of the package. It has Sell/Exp price = difference that we have.
 No: Nothing happens. User makes corrections. No: Nothing happens. User makes corrections.
 +
 +==== Discount ====
 +To solve the problems for the lines with discount inside the package it was decided to remove their discount. When invoice line with discount gets into a package (when new package is created or line is added to existing package) the discount from line is removed. Discounted sell price is used for package total calculation,​ discount amount and % from the line are removed.