Skip to content

Commit

Permalink
adempiere adempiere#1555 BankTransfer: Voiding Payments
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanneCalderon committed Oct 3, 2018
1 parent 2623542 commit a4185fe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
11 changes: 0 additions & 11 deletions base/src/org/compiere/model/I_C_Payment.java
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,6 @@ public interface I_C_Payment
/** Get Payment Related */
public int getRelatedPayment_ID();

public org.compiere.model.I_C_Payment getC_RelatedPayment() throws RuntimeException;

/** Column name C_POS_ID */
public static final String COLUMNNAME_C_POS_ID = "C_POS_ID";

Expand Down Expand Up @@ -795,15 +793,6 @@ public interface I_C_Payment
*/
public boolean isSelfService();

/** Column name IsVoidRelatedDocument */
public static final String COLUMNNAME_IsVoidRelatedDocument = "IsVoidRelatedDocument";

/** Set IsVoidRelatedDocument */
public void setIsVoidRelatedDocument (boolean IsVoidRelatedDocument);

/** Get IsVoidRelatedDocument */
public boolean isVoidRelatedDocument();

/** Column name Micr */
public static final String COLUMNNAME_Micr = "Micr";

Expand Down
2 changes: 1 addition & 1 deletion base/src/org/compiere/model/MPayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -2546,7 +2546,7 @@ private void reverseGeneratedPayments() {
*/
private void reverseRelatedPayments() {
if (getRelatedPayment_ID() !=0){
MPayment relatedPayment = (MPayment)getC_RelatedPayment();
MPayment relatedPayment = (MPayment)getRelatedPayment();
if (relatedPayment.isProcessing()) // to avoid endless loop
return;
if (relatedPayment.getDocStatus().equals(MPayment.DOCSTATUS_Completed)){
Expand Down
22 changes: 1 addition & 21 deletions base/src/org/compiere/model/X_C_Payment.java
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ public int getC_PaymentBatch_ID ()
return ii.intValue();
}

public org.compiere.model.I_C_Payment getC_RelatedPayment() throws RuntimeException
public org.compiere.model.I_C_Payment getRelatedPayment() throws RuntimeException
{
return (org.compiere.model.I_C_Payment)MTable.get(getCtx(), org.compiere.model.I_C_Payment.Table_Name)
.getPO(getRelatedPayment_ID(), get_TrxName()); }
Expand Down Expand Up @@ -1342,26 +1342,6 @@ public boolean isSelfService ()
return false;
}

/** Set IsVoidRelatedDocument.
@param IsVoidRelatedDocument IsVoidRelatedDocument */
public void setIsVoidRelatedDocument (boolean IsVoidRelatedDocument)
{
set_Value (COLUMNNAME_IsVoidRelatedDocument, Boolean.valueOf(IsVoidRelatedDocument));
}

/** Get IsVoidRelatedDocument.
@return IsVoidRelatedDocument */
public boolean isVoidRelatedDocument ()
{
Object oo = get_Value(COLUMNNAME_IsVoidRelatedDocument);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}

/** Set Micr.
@param Micr
Expand Down

0 comments on commit a4185fe

Please sign in to comment.