IDEMPIERE-6199 Payment Print/Export cannot set filesuffix depending on the document type (#2427)
This commit is contained in:
parent
951f9681b2
commit
219aeffafe
|
|
@ -436,10 +436,9 @@ public class WPayPrint extends PayPrint implements IFormController, EventListene
|
||||||
if (no >= 0)
|
if (no >= 0)
|
||||||
{
|
{
|
||||||
// Get File Info
|
// Get File Info
|
||||||
tempFile = File.createTempFile(m_PaymentExport.getFilenamePrefix(), m_PaymentExport.getFilenameSuffix());
|
tempFile = File.createTempFile(m_PaymentExport.getFilenamePrefix(), null);
|
||||||
filenameForDownload = m_PaymentExport.getFilenamePrefix() + m_PaymentExport.getFilenameSuffix();
|
|
||||||
|
|
||||||
no = m_PaymentExport.exportToFile(m_checks,(Boolean) fDepositBatch.getValue(),PaymentRule, tempFile, err);
|
no = m_PaymentExport.exportToFile(m_checks,(Boolean) fDepositBatch.getValue(),PaymentRule, tempFile, err);
|
||||||
|
filenameForDownload = m_PaymentExport.getFilenamePrefix() + m_PaymentExport.getFilenameSuffix();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (no >= 0) {
|
if (no >= 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue