// Code is added to InventJournalTable methods
void removeAllJournalLinesReservation()
{
InventUpd_Reservation res;
InventMovement inventmovement;
Inventtrans inventtrans;
InventJournalTrans inventJournalTrans
;
if(this.Posted)
return;
while select inventJournalTrans
index hint LineIdx
where inventJournalTrans.JournalId == this.JournalId
{
while select inventTrans
index hint TransIdIdx
where inventTrans.InventTransId == inventJournalTrans.InventTransId
&& (inventTrans.StatusIssue == statusIssue::ReservOrdered ||
inventTrans.StatusIssue == statusIssue::ReservPhysical)
{
inventmovement = inventTrans.inventmovement(true);
res = InventUpd_Reservation::newInventDim(inventmovement,inventTrans.inventDim(),abs(inventTrans.Qty),true);
res.updatenow();
}
}
}
void removeAllJournalLinesReservation()
{
InventUpd_Reservation res;
InventMovement inventmovement;
Inventtrans inventtrans;
InventJournalTrans inventJournalTrans
;
if(this.Posted)
return;
while select inventJournalTrans
index hint LineIdx
where inventJournalTrans.JournalId == this.JournalId
{
while select inventTrans
index hint TransIdIdx
where inventTrans.InventTransId == inventJournalTrans.InventTransId
&& (inventTrans.StatusIssue == statusIssue::ReservOrdered ||
inventTrans.StatusIssue == statusIssue::ReservPhysical)
{
inventmovement = inventTrans.inventmovement(true);
res = InventUpd_Reservation::newInventDim(inventmovement,inventTrans.inventDim(),abs(inventTrans.Qty),true);
res.updatenow();
}
}
}