Yes, that is what I'm trying to do.
It all started when I'm want to adjust my tax using this code :
1.
Upon trace this, I found something not right, especially because I'm using TaxRegulationDetail, which the trace is something like :
2.
Up to here I can see that the TaxRegulation is exists and it will be updated using the update() method.
And the TaxAdjustmentType is Detail, as what I'm using as well in the 1st place.
3. After the update, it will follow by this, which is the following of the super() at point no 2
This will again choose the "false" condition of IF condition, since the TaxAdjustmentType is Detail
4. But after this point, when it is call that method (addTaxRegulationDetailToSummary() ->
At first, the parameter _detailTmpTaxRegulation has its value, but after the 1st select, this _detailTmpTaxRegulation all will be null. I'm wondering why in the selection have the condition of RecId, but the point is at the pointer, this _detailTmpTaxRegulation having no value, as well as the tmpTaxRegulationDetail variable is null.
This will be resulting the 2nd select also null, as well the 3 variable is null. Means even if the IF condition is not failed, there is nothing to update anyway.
Thanks,