2639450 ISINVOICED still 'Y' when delete invoiceline from invoice

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2639450&group_id=176962
This commit is contained in:
phib 2009-06-03 06:27:56 +00:00
parent a0e0d5d521
commit 79ebed7045
1 changed files with 9 additions and 0 deletions

View File

@ -867,6 +867,15 @@ public class MInvoiceLine extends X_C_InvoiceLine
{
if (!success)
return success;
// reset shipment line invoiced flag
if ( getM_InOutLine_ID() > 0 )
{
MInOutLine sLine = new MInOutLine(getCtx(), getM_InOutLine_ID(), get_TrxName());
sLine.setIsInvoiced(false);
sLine.saveEx();
}
return updateHeaderTax();
} // afterDelete