[ 1807947 ] creating invoice with copy record doesnt reset document type
This commit is contained in:
parent
9b89d06951
commit
2a14e6d2d0
|
@ -2121,6 +2121,7 @@ public class GridTable extends AbstractTableModel
|
||||||
// fill data
|
// fill data
|
||||||
if (copyCurrent)
|
if (copyCurrent)
|
||||||
{
|
{
|
||||||
|
boolean hasDocTypeTargetField = (getField("C_DocTypeTarget_ID") != null);
|
||||||
MSort sort = (MSort) m_sort.get(currentRow);
|
MSort sort = (MSort) m_sort.get(currentRow);
|
||||||
Object[] origData = (Object[])m_buffer.get(sort.index);
|
Object[] origData = (Object[])m_buffer.get(sort.index);
|
||||||
for (int i = 0; i < size; i++)
|
for (int i = 0; i < size; i++)
|
||||||
|
@ -2142,6 +2143,8 @@ public class GridTable extends AbstractTableModel
|
||||||
|| columnName.equals("GrandTotal") || columnName.equals("TotalLines")
|
|| columnName.equals("GrandTotal") || columnName.equals("TotalLines")
|
||||||
|| columnName.equals("C_CashLine_ID") || columnName.equals("C_Payment_ID")
|
|| columnName.equals("C_CashLine_ID") || columnName.equals("C_Payment_ID")
|
||||||
|| columnName.equals("IsPaid") || columnName.equals("IsAllocated")
|
|| columnName.equals("IsPaid") || columnName.equals("IsAllocated")
|
||||||
|
// Bug [ 1807947 ]
|
||||||
|
|| ( columnName.equals("C_DocType_ID") && hasDocTypeTargetField )
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rowData[i] = field.getDefault();
|
rowData[i] = field.getDefault();
|
||||||
|
|
Loading…
Reference in New Issue