All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.notima.generic.adempiere.AdempiereDunningRun Maven / Gradle / Ivy

The newest version!
package org.notima.generic.adempiere;

import java.sql.Connection;
import java.util.ArrayList;

import org.notima.generic.businessobjects.DunningRun;

public class AdempiereDunningRun {


	public static DunningRun load(int dunningRunId, Connection conn) throws Exception {
		
		DunningRun dun = new DunningRun();
		
		ArrayList tempEntries = AdempiereDunningEntry.loadAllForDunningRun(dunningRunId, conn);
		for(AdempiereDunningEntry entry : tempEntries){
			dun.addDunningEntry(AdempiereDunningEntry.convert(entry, conn));
		}
		
		return dun;
	}
	
	public AdempiereDunningRun(){};
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy