Merge faa803acaeca
This commit is contained in:
commit
5a3e609189
|
@ -0,0 +1,7 @@
|
||||||
|
CREATE OR REPLACE VIEW m_costmovement_v AS
|
||||||
|
SELECT a.ad_client_id, a.ad_org_id, b.c_acctschema_id, a.m_costhistory_id, a.m_costtype_id, a.m_costelement_id, a.m_attributesetinstance_id, b.m_product_id, a.oldqty, a.newqty, a.oldcostprice, a.newcostprice, a.oldcqty, a.newcqty, a.oldcamt, a.newcamt, b.qty, b.amt, b.deltaqty, b.deltaamt, b.c_orderline_id, b.m_inoutline_id, b.c_invoiceline_id, b.m_movementline_id, b.m_inventoryline_id, b.m_productionline_id, b.c_projectissue_id, a.m_costdetail_id, b.description, a.created, a.createdby, a.updated, a.updatedby, a.isactive
|
||||||
|
FROM m_costhistory a
|
||||||
|
JOIN m_costdetail b ON a.m_costdetail_id = b.m_costdetail_id
|
||||||
|
ORDER BY a.m_costhistory_id
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
CREATE OR REPLACE VIEW m_costmovement_v AS
|
||||||
|
SELECT a.ad_client_id, a.ad_org_id, b.c_acctschema_id, a.m_costhistory_id, a.m_costtype_id, a.m_costelement_id, a.m_attributesetinstance_id, b.m_product_id, a.oldqty, a.newqty, a.oldcostprice, a.newcostprice, a.oldcqty, a.newcqty, a.oldcamt, a.newcamt, b.qty, b.amt, b.deltaqty, b.deltaamt, b.c_orderline_id, b.m_inoutline_id, b.c_invoiceline_id, b.m_movementline_id, b.m_inventoryline_id, b.m_productionline_id, b.c_projectissue_id, a.m_costdetail_id, b.description, a.created, a.createdby, a.updated, a.updatedby, a.isactive
|
||||||
|
FROM m_costhistory a
|
||||||
|
JOIN m_costdetail b ON a.m_costdetail_id = b.m_costdetail_id
|
||||||
|
ORDER BY a.m_costhistory_id
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- May 3, 2013 2:40:20 PM COT
|
||||||
|
-- IDEMPIERE-909 Enable back After Order delivered invoice rule
|
||||||
|
UPDATE AD_Ref_List SET IsActive='Y',Updated=TO_DATE('2013-05-03 14:40:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=214
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201305031441_IDEMPIERE-909.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
-- May 4, 2013 4:02:25 PM COT
|
||||||
|
-- IDEMPIERE-894 Not Possible to Link Business Partner to an Organization
|
||||||
|
UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_DATE('2013-05-04 16:02:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10927
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 4, 2013 4:03:03 PM COT
|
||||||
|
UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_DATE('2013-05-04 16:03:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8757
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201305041605_IDEMPIERE-894.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- May 3, 2013 2:40:20 PM COT
|
||||||
|
-- IDEMPIERE-909 Enable back After Order delivered invoice rule
|
||||||
|
UPDATE AD_Ref_List SET IsActive='Y',Updated=TO_TIMESTAMP('2013-05-03 14:40:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=214
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201305031441_IDEMPIERE-909.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
-- May 4, 2013 4:02:25 PM COT
|
||||||
|
-- IDEMPIERE-894 Not Possible to Link Business Partner to an Organization
|
||||||
|
UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-05-04 16:02:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10927
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 4, 2013 4:03:03 PM COT
|
||||||
|
UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-05-04 16:03:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8757
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201305041605_IDEMPIERE-894.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class CopyFromJournalDoc extends SvrProcess
|
||||||
MJournal from = new MJournal (getCtx(), m_GL_Journal_ID, get_TrxName());
|
MJournal from = new MJournal (getCtx(), m_GL_Journal_ID, get_TrxName());
|
||||||
MJournal to = new MJournal (getCtx(), To_GL_Journal_ID, get_TrxName());
|
MJournal to = new MJournal (getCtx(), To_GL_Journal_ID, get_TrxName());
|
||||||
//
|
//
|
||||||
int no = to.copyLinesFrom(from, from.getDateAcct(), 'x');
|
int no = to.copyLinesFrom(from, to.getDateAcct(), 'x');
|
||||||
//
|
//
|
||||||
return "@Copied@=" + no;
|
return "@Copied@=" + no;
|
||||||
} // doIt
|
} // doIt
|
||||||
|
|
|
@ -32,7 +32,7 @@ public interface IGridTabExporter {
|
||||||
* @param isCurrentRowOnly
|
* @param isCurrentRowOnly
|
||||||
* @param file
|
* @param file
|
||||||
*/
|
*/
|
||||||
public void export(GridTab gridTab, List<GridTab> childs, boolean isCurrentRowOnly, File file);
|
public void export(GridTab gridTab, List<GridTab> childs, boolean isCurrentRowOnly, File file, int indxDetailSelected);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return file extension
|
* @return file extension
|
||||||
|
|
|
@ -69,7 +69,7 @@ public class GridTabCSVExporter implements IGridTabExporter
|
||||||
private static CLogger log = CLogger.getCLogger(GridTabCSVExporter.class);
|
private static CLogger log = CLogger.getCLogger(GridTabCSVExporter.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file) {
|
public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file,int indxDetailSelected) {
|
||||||
|
|
||||||
ICsvMapWriter mapWriter = null;
|
ICsvMapWriter mapWriter = null;
|
||||||
Map<GridTab,GridField[]> tabMapDetails = new HashMap<GridTab, GridField[]>();
|
Map<GridTab,GridField[]> tabMapDetails = new HashMap<GridTab, GridField[]>();
|
||||||
|
@ -129,6 +129,9 @@ public class GridTabCSVExporter implements IGridTabExporter
|
||||||
int specialDetDispayType = 0;
|
int specialDetDispayType = 0;
|
||||||
int numOfTabs=0;
|
int numOfTabs=0;
|
||||||
for(GridTab detail: childs){
|
for(GridTab detail: childs){
|
||||||
|
|
||||||
|
if(indxDetailSelected != detail.getTabNo())
|
||||||
|
continue;
|
||||||
|
|
||||||
if(!detail.isDisplayed())
|
if(!detail.isDisplayed())
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -459,12 +459,11 @@ public class GridTabCSVImporter implements IGridTabImporter
|
||||||
|
|
||||||
if(isInsertMode())
|
if(isInsertMode())
|
||||||
logMsg = Msg.getMsg(Env.getCtx(), "Inserted")+" "+ po.toString();
|
logMsg = Msg.getMsg(Env.getCtx(), "Inserted")+" "+ po.toString();
|
||||||
else
|
else{
|
||||||
logMsg = Msg.getMsg(Env.getCtx(), "Updated")+" "+ po.toString();
|
logMsg = Msg.getMsg(Env.getCtx(), "Updated")+" "+ po.toString();
|
||||||
|
if(currentGridTab.equals(gridTab) && sortedtTabMapIndexes.size()>1)
|
||||||
//if it's parent record and there are details, parent needs to be refreshed
|
currentGridTab.dataRefresh(true);
|
||||||
if(currentGridTab.equals(gridTab) && sortedtTabMapIndexes.size()>1)
|
}
|
||||||
currentGridTab.dataRefresh(false);
|
|
||||||
} else {
|
} else {
|
||||||
ValueNamePair ppE = CLogger.retrieveWarning();
|
ValueNamePair ppE = CLogger.retrieveWarning();
|
||||||
if (ppE==null)
|
if (ppE==null)
|
||||||
|
@ -482,11 +481,17 @@ public class GridTabCSVImporter implements IGridTabImporter
|
||||||
|
|
||||||
if(currentGridTab.equals(gridTab) && masterRecord==null){
|
if(currentGridTab.equals(gridTab) && masterRecord==null){
|
||||||
isMasterok = false;
|
isMasterok = false;
|
||||||
|
rowResult.append("<"+currentGridTab.getTableName()+">: ");
|
||||||
|
rowResult.append(logMsg);
|
||||||
|
rowResult.append(" / ");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!currentGridTab.equals(gridTab) && masterRecord!=null){
|
if(!currentGridTab.equals(gridTab) && masterRecord!=null){
|
||||||
isDetailok = false;
|
isDetailok = false;
|
||||||
|
rowResult.append("<"+currentGridTab.getTableName()+">: ");
|
||||||
|
rowResult.append(logMsg);
|
||||||
|
rowResult.append(" / ");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -543,7 +548,6 @@ public class GridTabCSVImporter implements IGridTabImporter
|
||||||
row =row.replaceAll("Inserted","RolledBack");
|
row =row.replaceAll("Inserted","RolledBack");
|
||||||
logFileW.write(row);
|
logFileW.write(row);
|
||||||
}
|
}
|
||||||
gridTab.dataRefreshAll();
|
|
||||||
}else{
|
}else{
|
||||||
if(isThereDocAction){
|
if(isThereDocAction){
|
||||||
|
|
||||||
|
@ -581,13 +585,13 @@ public class GridTabCSVImporter implements IGridTabImporter
|
||||||
}
|
}
|
||||||
|
|
||||||
if(masterRecord!=null){
|
if(masterRecord!=null){
|
||||||
gridTab.getTableModel().dataRequery(masterRecord.get_WhereClause(true),false,0,false);
|
gridTab.query(false);
|
||||||
gridTab.navigateCurrent();
|
gridTab.getTableModel().setImportingMode(false,null);
|
||||||
gridTab.getTableModel().setImportingMode(false, null);
|
|
||||||
|
|
||||||
for(GridTab detail: childs)
|
for(GridTab detail: childs)
|
||||||
if(detail.getTableModel().isOpen())
|
if(detail.getTableModel().isOpen()){
|
||||||
|
detail.query(true);
|
||||||
detail.getTableModel().setImportingMode(false,null);
|
detail.getTableModel().setImportingMode(false,null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
trx.close();
|
trx.close();
|
||||||
trx=null;
|
trx=null;
|
||||||
|
@ -1227,7 +1231,7 @@ public class GridTabCSVImporter implements IGridTabImporter
|
||||||
}
|
}
|
||||||
if (isUpdateMode()){
|
if (isUpdateMode()){
|
||||||
if(gridTab.getTableModel().getRowCount()==1){
|
if(gridTab.getTableModel().getRowCount()==1){
|
||||||
gridTab.navigateRelative(gridTab.getCurrentRow());
|
gridTab.navigateCurrent();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
else if(gridTab.getTableModel().getRowCount()<=0)
|
else if(gridTab.getTableModel().getRowCount()<=0)
|
||||||
|
@ -1237,7 +1241,7 @@ public class GridTabCSVImporter implements IGridTabImporter
|
||||||
}
|
}
|
||||||
if (isMergeMode()){
|
if (isMergeMode()){
|
||||||
if(gridTab.getTableModel().getRowCount()==1){
|
if(gridTab.getTableModel().getRowCount()==1){
|
||||||
gridTab.navigateRelative(gridTab.getCurrentRow());
|
gridTab.navigateCurrent();
|
||||||
m_import_mode = IMPORT_MODE_UPDATE;
|
m_import_mode = IMPORT_MODE_UPDATE;
|
||||||
}else if(gridTab.getTableModel().getRowCount()<=0)
|
}else if(gridTab.getTableModel().getRowCount()<=0)
|
||||||
m_import_mode = IMPORT_MODE_INSERT;
|
m_import_mode = IMPORT_MODE_INSERT;
|
||||||
|
|
|
@ -153,7 +153,7 @@ public class GridTabExcelExporter extends AbstractExcelExporter implements IGrid
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file) {
|
public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file,int indxDetailSelected) {
|
||||||
m_tab = gridTab;
|
m_tab = gridTab;
|
||||||
setCurrentRowOnly(currentRowOnly);
|
setCurrentRowOnly(currentRowOnly);
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -2822,7 +2822,7 @@ public class GridTable extends AbstractTableModel
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql,get_TrxName());
|
||||||
rs = pstmt.executeQuery();
|
rs = pstmt.executeQuery();
|
||||||
// only one row
|
// only one row
|
||||||
if (rs.next())
|
if (rs.next())
|
||||||
|
@ -3681,7 +3681,7 @@ public class GridTable extends AbstractTableModel
|
||||||
String sql = "SELECT " + columns + " FROM " + m_tableName + " WHERE " + m_tableName + "_ID=?";
|
String sql = "SELECT " + columns + " FROM " + m_tableName + " WHERE " + m_tableName + "_ID=?";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, get_TrxName());
|
||||||
pstmt.setInt(1, getKeyID(row));
|
pstmt.setInt(1, getKeyID(row));
|
||||||
rs = pstmt.executeQuery();
|
rs = pstmt.executeQuery();
|
||||||
if (rs.next()) {
|
if (rs.next()) {
|
||||||
|
@ -3717,9 +3717,13 @@ public class GridTable extends AbstractTableModel
|
||||||
if (hasProcessed) {
|
if (hasProcessed) {
|
||||||
Boolean memProcessed = null;
|
Boolean memProcessed = null;
|
||||||
memProcessed = (Boolean) getOldValue(row, colProcessed);
|
memProcessed = (Boolean) getOldValue(row, colProcessed);
|
||||||
if (memProcessed == null)
|
if (memProcessed == null){
|
||||||
memProcessed = (Boolean) getValueAt(row, colProcessed);
|
if(getValueAt(row, colProcessed) instanceof Boolean )
|
||||||
|
memProcessed = (Boolean) getValueAt(row, colProcessed);
|
||||||
|
else if (getValueAt(row, colProcessed) instanceof String )
|
||||||
|
memProcessed = Boolean.valueOf((String)getValueAt(row, colProcessed));
|
||||||
|
}
|
||||||
|
|
||||||
Boolean dbProcessed = Boolean.TRUE;
|
Boolean dbProcessed = Boolean.TRUE;
|
||||||
if (! dbProcessedS.equals("Y"))
|
if (! dbProcessedS.equals("Y"))
|
||||||
dbProcessed = Boolean.FALSE;
|
dbProcessed = Boolean.FALSE;
|
||||||
|
|
|
@ -538,7 +538,7 @@ public class MBPartner extends X_C_BPartner
|
||||||
if (AD_OrgBP_ID == 0)
|
if (AD_OrgBP_ID == 0)
|
||||||
super.setAD_OrgBP_ID (null);
|
super.setAD_OrgBP_ID (null);
|
||||||
else
|
else
|
||||||
super.setAD_OrgBP_ID (String.valueOf(AD_OrgBP_ID));
|
super.set_Value("AD_OrgBP_ID", AD_OrgBP_ID);
|
||||||
} // setAD_OrgBP_ID
|
} // setAD_OrgBP_ID
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -370,6 +370,9 @@ public class DataEngine
|
||||||
eSql = MLookupFactory.getLookup_TableDirEmbed(m_language, ColumnName, tableName);
|
eSql = MLookupFactory.getLookup_TableDirEmbed(m_language, ColumnName, tableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Util.isEmpty(eSql)) { // No Identifier records found
|
||||||
|
eSql = lookupSQL;
|
||||||
|
}
|
||||||
// DisplayColumn
|
// DisplayColumn
|
||||||
String display = ColumnName;
|
String display = ColumnName;
|
||||||
// => (..) AS AName, Table.ID,
|
// => (..) AS AName, Table.ID,
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class GridTab2PackExporter implements IGridTabExporter {
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
@Override
|
@Override
|
||||||
public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file) {
|
public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file,int indxDetailSelected) {
|
||||||
String tableName = gridTab.getTableName();
|
String tableName = gridTab.getTableName();
|
||||||
PackOut packOut = new PackOut();
|
PackOut packOut = new PackOut();
|
||||||
packOut.setCtx(Env.getCtx());
|
packOut.setCtx(Env.getCtx());
|
||||||
|
|
|
@ -160,6 +160,6 @@ public class AExport
|
||||||
childs.add(gc.getMTab());
|
childs.add(gc.getMTab());
|
||||||
}
|
}
|
||||||
|
|
||||||
exporter.export(tab, childs, currentRowOnly, outFile);
|
exporter.export(tab, childs, currentRowOnly, outFile,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,7 +173,11 @@ public class ExportWindow extends Window implements EventListener<Event> {
|
||||||
childs.add(adTabPanel.getGridTab());
|
childs.add(adTabPanel.getGridTab());
|
||||||
}
|
}
|
||||||
|
|
||||||
exporter.export(panel.getActiveGridTab(), childs, currentRowOnly, file);
|
int indxDetailSelected = 0;
|
||||||
|
if( adTab.getSelectedDetailADTabpanel()!=null )
|
||||||
|
indxDetailSelected = adTab.getSelectedDetailADTabpanel().getGridTab().getTabNo();
|
||||||
|
|
||||||
|
exporter.export(panel.getActiveGridTab(), childs, currentRowOnly,file,indxDetailSelected);
|
||||||
|
|
||||||
onClose();
|
onClose();
|
||||||
AMedia media = null;
|
AMedia media = null;
|
||||||
|
|
|
@ -295,13 +295,13 @@ public class WCharge extends Charge implements IFormController, EventListener<Ev
|
||||||
final int valueFieldColumns = 10;
|
final int valueFieldColumns = 10;
|
||||||
|
|
||||||
// top row
|
// top row
|
||||||
m_lblValue.setValue(Msg.translate(Env.getCtx(), EColumn.VALUE.title()));
|
m_lblValue.setValue(Msg.getElement(Env.getCtx(), EColumn.VALUE.title()));
|
||||||
m_txbValueField.setCols(valueFieldColumns);
|
m_txbValueField.setCols(valueFieldColumns);
|
||||||
m_chbIsExpense.setChecked(true);
|
m_chbIsExpense.setChecked(true);
|
||||||
m_chbIsExpense.setLabel(Msg.getMsg(Env.getCtx(), EColumn.EXPENSE.title()));
|
m_chbIsExpense.setLabel(Msg.getElement(Env.getCtx(), EColumn.EXPENSE.title()));
|
||||||
|
|
||||||
// bottom row
|
// bottom row
|
||||||
m_lblName.setValue(Msg.translate(Env.getCtx(), EColumn.NAME.title()));
|
m_lblName.setValue(Msg.getElement(Env.getCtx(), EColumn.NAME.title()));
|
||||||
m_txbNameField.setCols(nameFieldColumns);
|
m_txbNameField.setCols(nameFieldColumns);
|
||||||
m_btnNew.setLabel(Msg.getMsg(Env.getCtx(), AD_MESSAGE_CREATE) + " " + Util.cleanAmp(Msg.getMsg(Env.getCtx(), "New")));
|
m_btnNew.setLabel(Msg.getMsg(Env.getCtx(), AD_MESSAGE_CREATE) + " " + Util.cleanAmp(Msg.getMsg(Env.getCtx(), "New")));
|
||||||
m_btnNew.addEventListener(Events.ON_CLICK, this);
|
m_btnNew.addEventListener(Events.ON_CLICK, this);
|
||||||
|
|
|
@ -380,6 +380,7 @@ public class DPCalendar extends DashboardPanel implements EventListener<Event>,
|
||||||
private void btnCurrentDateClicked() {
|
private void btnCurrentDateClicked() {
|
||||||
calendars.setCurrentDate(Calendar.getInstance(calendars.getDefaultTimeZone()).getTime());
|
calendars.setCurrentDate(Calendar.getInstance(calendars.getDefaultTimeZone()).getTime());
|
||||||
updateDateLabel();
|
updateDateLabel();
|
||||||
|
updateUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void divArrowClicked(boolean isNext) {
|
private void divArrowClicked(boolean isNext) {
|
||||||
|
@ -388,6 +389,7 @@ public class DPCalendar extends DashboardPanel implements EventListener<Event>,
|
||||||
else
|
else
|
||||||
calendars.previousPage();
|
calendars.previousPage();
|
||||||
updateDateLabel();
|
updateDateLabel();
|
||||||
|
updateUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -281,7 +281,7 @@ ContextMenuListener, IZoomableEditor
|
||||||
//still not in list, reset to zero
|
//still not in list, reset to zero
|
||||||
if (!getComponent().isSelected(value))
|
if (!getComponent().isSelected(value))
|
||||||
{
|
{
|
||||||
if (value instanceof Integer && gridField != null && gridField.getDisplayType() != DisplayType.ID) // for IDs is ok to be out of the list
|
if (value instanceof Integer && gridField != null && gridField.getDisplayType() != DisplayType.ID && !gridTab.getTableModel().isImporting()) // for IDs is ok to be out of the list
|
||||||
{
|
{
|
||||||
getComponent().setValue(null);
|
getComponent().setValue(null);
|
||||||
if (curValue == null)
|
if (curValue == null)
|
||||||
|
|
|
@ -205,8 +205,12 @@ public class ExportAction implements EventListener<Event>
|
||||||
tables.add(tableName);
|
tables.add(tableName);
|
||||||
childs.add(adTabPanel.getGridTab());
|
childs.add(adTabPanel.getGridTab());
|
||||||
}
|
}
|
||||||
|
|
||||||
exporter.export(panel.getActiveGridTab(), childs, currentRowOnly, file);
|
int indxDetailSelected = 0;
|
||||||
|
if( adTab.getSelectedDetailADTabpanel()!=null )
|
||||||
|
indxDetailSelected = adTab.getSelectedDetailADTabpanel().getGridTab().getTabNo();
|
||||||
|
|
||||||
|
exporter.export(panel.getActiveGridTab(), childs, currentRowOnly,file,indxDetailSelected);
|
||||||
|
|
||||||
winExportFile.onClose();
|
winExportFile.onClose();
|
||||||
winExportFile = null;
|
winExportFile = null;
|
||||||
|
|
|
@ -189,9 +189,12 @@ public class ReportAction implements EventListener<Event>
|
||||||
else if(event.getTarget() == chkExport)
|
else if(event.getTarget() == chkExport)
|
||||||
cboExportType.setVisible(chkExport.isChecked());
|
cboExportType.setVisible(chkExport.isChecked());
|
||||||
else if (event.getName().equals("onValidate")) {
|
else if (event.getName().equals("onValidate")) {
|
||||||
validate();
|
try {
|
||||||
Clients.clearBusy();
|
validate();
|
||||||
panel.getComponent().invalidate();
|
} finally {
|
||||||
|
Clients.clearBusy();
|
||||||
|
panel.getComponent().invalidate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,7 @@ public class Charge
|
||||||
MElementValue.ACCOUNTSIGN_Natural,
|
MElementValue.ACCOUNTSIGN_Natural,
|
||||||
false, false, null);
|
false, false, null);
|
||||||
ev.setAD_Org_ID(m_AD_Org_ID);
|
ev.setAD_Org_ID(m_AD_Org_ID);
|
||||||
|
ev.setC_Element_ID(m_C_Element_ID);
|
||||||
if (!ev.save())
|
if (!ev.save())
|
||||||
log.log(Level.WARNING, "C_ElementValue_ID not created");
|
log.log(Level.WARNING, "C_ElementValue_ID not created");
|
||||||
return ev.getC_ElementValue_ID();
|
return ev.getC_ElementValue_ID();
|
||||||
|
|
Loading…
Reference in New Issue