FormCtrl using x++
:
void clicked()
{
ABUTallyHeader _abutallyheader;
ABUTallyLine _abutallyline;
super();
while select
_abutallyheader where
_abutallyheader.RefRecId == WMSOrderTrans.RecId
{
select count(RecId),
sum(Qty) from
_abutallyline where
_abutallyline.RefRecIdRouteLine == _abutallyheader.recid;
WMSOrderTrans.qty =
_abutallyline.Qty;
WMSOrderTrans.QtyBOX =
_abutallyline.RecId;
if (formCtrl)
{
formCtrl.fieldModified(fieldNum(WMSOrderTrans,
Qty));
formCtrl.fieldModified(fieldNum(WMSOrderTrans,
QtyBOX));
wmsOrderTrans_ds.refresh();
}
info(strFmt("Update
qty : %1 And Box : %2",_abutallyline.Qty,_abutallyline.RecId));
}
}
0 comments:
Post a Comment