BF [ 1896880 ] Unlink Payment if TrxAmt is zero
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=1896880&group_id=176962
This commit is contained in:
parent
2d7e2c5119
commit
3e26b0b633
|
@ -36,6 +36,7 @@ import org.compiere.util.Msg;
|
||||||
* [ 1619076 ] Bank statement's StatementDifference becames NULL
|
* [ 1619076 ] Bank statement's StatementDifference becames NULL
|
||||||
*
|
*
|
||||||
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||||
|
* <li>BF [ 1896880 ] Unlink Payment if TrxAmt is zero
|
||||||
* <li>BF [ 1896885 ] BS Line: don't update header if after save/delete fails
|
* <li>BF [ 1896885 ] BS Line: don't update header if after save/delete fails
|
||||||
*/
|
*/
|
||||||
public class MBankStatementLine extends X_C_BankStatementLine
|
public class MBankStatementLine extends X_C_BankStatementLine
|
||||||
|
@ -153,6 +154,12 @@ import org.compiere.util.Msg;
|
||||||
log.saveError("FillMandatory", Msg.getElement(getCtx(), "C_Charge_ID"));
|
log.saveError("FillMandatory", Msg.getElement(getCtx(), "C_Charge_ID"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Un-link Payment if TrxAmt is zero - teo_sarca BF [ 1896880 ]
|
||||||
|
if (getTrxAmt().signum() == 0 && getC_Payment_ID() > 0)
|
||||||
|
{
|
||||||
|
setC_Payment_ID(I_ZERO);
|
||||||
|
setC_Invoice_ID(I_ZERO);
|
||||||
|
}
|
||||||
// Set Line No
|
// Set Line No
|
||||||
if (getLine() == 0)
|
if (getLine() == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue