*** Not-8b5f has quit IRC | 02:58 | |
*** xapiens has quit IRC | 04:09 | |
*** nmicoud has joined #idempiere | 06:47 | |
*** a42niem has joined #idempiere | 08:37 | |
*** herdem has joined #idempiere | 12:19 | |
*** herdem has quit IRC | 12:33 | |
*** nmicoud has left #idempiere | 15:05 | |
*** a42niem has quit IRC | 16:15 | |
*** a42niem has joined #idempiere | 16:20 | |
*** Not-c9fd has joined #idempiere | 17:52 | |
Not-c9fd | [IDEMPIERE] psnizek updated IDEMPIERE-2805 | 17:52 |
---|---|---|
Not-c9fd | [IDEMPIERE] Carlos Ruiz suggested following solution on the idempiere group forum on google: Hi: Sometime ago I had to write to core the following changes (in order to fix the tax problem). In my country taxes are calculated like your case. MInvoiceTax.java line 241 // Set Base if (isTaxIncluded()) //setTaxBaseAmt (taxBaseAmt.subtract(taxAmt));//changed by me setTaxBaseAmt (taxBaseAmt); else setTaxBaseAmt | 17:52 |
Not-c9fd | (taxBaseAmt); return true; MTax.java Line 268 if (!taxIncluded) // $100 * 6 / 100 == $6 == $100 * 0.06 { tax = amount.multiply (multiplier); } else // $106 - ($106 / (100+6)/100) == $6 == $106 - ($106/1.06) { tax = amount.multiply (multiplier);//added line //THIS WAS CHANGED BY ME PLEASE REVIEW AND DELETE IT LATER. CARLOS COLLAZOS /*multiplier = multiplier.add(Env.ONE); BigDecimal base = amount.divide(multiplier, 12, | 17:52 |
Not-c9fd | BigDecimal.ROUND_HALF_UP); tax = amount.subtract(base);*/ } MOrderTax.java line 248 // Set Base if (isTaxIncluded()) //setTaoxBaseAmt (taxBaseAmt.subtract(taxAmt));//OTRO CAMBIO PARA LOS IMPUESTOS setTaxBaseAmt (taxBaseAmt); else setTaxBaseAmt (taxBaseAmt); It would be great to have this functionality as an option for tax calculi inserted into core. Regards, | 17:52 |
Not-c9fd | [IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-2805 | 17:52 |
*** a42niem has quit IRC | 21:35 | |
*** xapiens has joined #idempiere | 23:55 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!