public void initValue()
{
DTDMCHeaderLines.InvoiceDate = DTDMCHeader.InvoiceDate;
DTDMCHeaderLines.inventLocationId = DTDMCHeader.inventLocationId;
super();
}
public void initValue()
{
super();
DTDMCHeaderLines dTDMCHeaderLines;
//Info(strFmt("InvoiceDate:%1,inventLocationId:%2",this.inventLocationId,this.InvoiceDate));
if(this.InvoiceDate != dateNull() && this.inventLocationId != '')
{
select firstonly Seqnum from dTDMCHeaderLines
order by DTDMCHeaderLines.Seqnum desc
where dTDMCHeaderLines.InvoiceDate == this.InvoiceDate
&& dTDMCHeaderLines.inventLocationId == this.inventLocationId;
// this.CustomerName = CustTable::find(this.InvoiceAccount).name();
this.Seqnum = dTDMCHeaderLines.Seqnum + 1 ;
}
}
public void initValue()
{
DTDMCHeaderLines dTDMCHeaderLinesloc;
Info(strFmt("InvoiceDate:%1,inventLocationId:%2",DTDMCHeaderLines.InvoiceDate,DTDMCHeaderLines.inventLocationId));
//get any datasource from the base form
DTDMCHeader dTDMCHeaderloc = DTDMCHeader_ds.Cursor();
if(dTDMCHeaderloc.InvoiceDate != dateNull() && dTDMCHeaderloc.inventLocationId != '')
{
select firstonly Seqnum from dTDMCHeaderLinesloc
order by DTDMCHeaderLinesloc.Seqnum desc
where dTDMCHeaderLinesloc.InvoiceDate == dTDMCHeaderloc.InvoiceDate
&& dTDMCHeaderLinesloc.inventLocationId == dTDMCHeaderloc.inventLocationId;
DTDMCHeaderLines.Seqnum = dTDMCHeaderLinesloc.Seqnum + 1 ;
}
super();
}
public void initValue()
{
DTDMCHeaderLines dTDMCHeaderLinesloc;
Info(strFmt("InvoiceDate:%1,inventLocationId:%2",DTDMCHeaderLines_inventLocationId,DTDMCHeaderLines_InvoiceDate));
if(DTDMCHeaderLines.InvoiceDate != dateNull() && DTDMCHeaderLines.inventLocationId != '')
{
select firstonly Seqnum from dTDMCHeaderLinesloc
order by DTDMCHeaderLinesloc.Seqnum desc
where dTDMCHeaderLinesloc.InvoiceDate == DTDMCHeaderLines.InvoiceDate
&& dTDMCHeaderLinesloc.inventLocationId == DTDMCHeaderLines.inventLocationId;
DTDMCHeaderLines.Seqnum = dTDMCHeaderLinesloc.Seqnum + 1 ;
}
super();
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156