BF [ 1763523 ] Translate errors from Cash Line
http://sourceforge.net/tracker/index.php?func=detail&aid=1763523&group_id=176962&atid=879332
This commit is contained in:
parent
eb051d6773
commit
bcbbc8e99f
|
@ -257,7 +257,7 @@ public class MCashLine extends X_C_CashLine
|
||||||
{
|
{
|
||||||
if (get_ValueOld("C_Invoice_ID") != null)
|
if (get_ValueOld("C_Invoice_ID") != null)
|
||||||
{
|
{
|
||||||
log.warning("Cannot delete line with generated Invoice");
|
log.saveError("Error", Msg.getMsg(getCtx(), "CannotDeleteCashGenInvoice"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -290,7 +290,7 @@ public class MCashLine extends X_C_CashLine
|
||||||
Object generated = get_ValueOld("IsGenerated");
|
Object generated = get_ValueOld("IsGenerated");
|
||||||
if (generated != null && ((Boolean)generated).booleanValue())
|
if (generated != null && ((Boolean)generated).booleanValue())
|
||||||
{
|
{
|
||||||
log.warning("Cannot change line with generated Invoice");
|
log.saveError("Error", Msg.getMsg(getCtx(), "CannotChangeCashGenInvoice"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
--
|
||||||
|
-- BF [ 1763523 ] Translate errors from Cash Line
|
||||||
|
-- http://sourceforge.net/tracker/index.php?func=detail&aid=1763523&group_id=176962&atid=879332
|
||||||
|
--
|
||||||
|
insert into AD_Message (
|
||||||
|
AD_MESSAGE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,
|
||||||
|
VALUE,MSGTEXT,MSGTIP,MSGTYPE,ENTITYTYPE)
|
||||||
|
values (
|
||||||
|
53003,0,0,'Y',to_date('30-07-2007','DD-MM-RRRR'),0,to_date('30-07-2007','DD-MM-RRRR'),0,
|
||||||
|
'CannotDeleteCashGenInvoice','Cannot delete line with generated Invoice',null,'E','D'
|
||||||
|
);
|
||||||
|
--
|
||||||
|
insert into AD_Message (
|
||||||
|
AD_MESSAGE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,
|
||||||
|
VALUE,MSGTEXT,MSGTIP,MSGTYPE,ENTITYTYPE)
|
||||||
|
values (
|
||||||
|
53004,0,0,'Y',to_date('30-07-2007','DD-MM-RRRR'),0,to_date('30-07-2007','DD-MM-RRRR'),0,
|
||||||
|
'CannotChangeCashGenInvoice','Cannot change line with generated Invoice',null,'E','D'
|
||||||
|
);
|
||||||
|
--
|
||||||
|
commit;
|
||||||
|
--
|
||||||
|
-- NOTE: don't forget to run add missing translations and sequence check
|
|
@ -0,0 +1,23 @@
|
||||||
|
--
|
||||||
|
-- BF [ 1763523 ] Translate errors from Cash Line
|
||||||
|
-- http://sourceforge.net/tracker/index.php?func=detail&aid=1763523&group_id=176962&atid=879332
|
||||||
|
--
|
||||||
|
insert into AD_Message (
|
||||||
|
AD_MESSAGE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,
|
||||||
|
VALUE,MSGTEXT,MSGTIP,MSGTYPE,ENTITYTYPE)
|
||||||
|
values (
|
||||||
|
53003,0,0,'Y',to_date('30-07-2007','DD-MM-RRRR'),0,to_date('30-07-2007','DD-MM-RRRR'),0,
|
||||||
|
'CannotDeleteCashGenInvoice','Cannot delete line with generated Invoice',null,'E','D'
|
||||||
|
);
|
||||||
|
--
|
||||||
|
insert into AD_Message (
|
||||||
|
AD_MESSAGE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,
|
||||||
|
VALUE,MSGTEXT,MSGTIP,MSGTYPE,ENTITYTYPE)
|
||||||
|
values (
|
||||||
|
53004,0,0,'Y',to_date('30-07-2007','DD-MM-RRRR'),0,to_date('30-07-2007','DD-MM-RRRR'),0,
|
||||||
|
'CannotChangeCashGenInvoice','Cannot change line with generated Invoice',null,'E','D'
|
||||||
|
);
|
||||||
|
--
|
||||||
|
commit;
|
||||||
|
--
|
||||||
|
-- NOTE: don't forget to run add missing translations and sequence check
|
Loading…
Reference in New Issue