title: Items Unit Price Caluclation
body: <p>I have two items </p>
  
  <pre><code>Item A Qty =1 and unit Cost Price(up) is 60
  
  Item B Qty =1 and unit Cost Price(up) is 40
  
      Total Cost Price(cp) is 100
  
      Overhead 10 % over cp (may vary as per requirement) 100*10/100 = 10
  cp + 10 = 110
  Markup   10 % over overhead(may vary as per requirement) 110*10/100  = 11
  cp + 10 +11 = 121
  Now Customer has agreed to pay 110 instead of 121 so I have to change CP of items based on unit Cost price
      What I did is Item A 60-((60/100)*(121-110)) which is Up - (up/cp* diff) = 53.4
  Item B is  40-((40/100)*(121-110)) which is Up - (up/cp* diff) = 35.6
  
      Now my cp became 89
  Overhead 10 % over cp (stated above overhead %) 89*10/100 = 8.9
  cp + 8.9 = 97.9
  Markup   10 % over overhead(stated above mark up %)  97.9*10/100= 9.79
  cp + 8.9 +9.79 = 107.69
      Now Customer agreed to pay 110 and my calculation by changing the unit price is getting 107.69
      I have to change the unit price of the items to meet the customer price.
  </code></pre>
  
  <p>It is not purely Ax related question but surely a touch would be required in the logic building of X++</p>
  
  <p>Any Suggestions on this?</p>