[ExtensionOf(tableStr(SalesOrderHeaderEntity))]
final class LSAYSalesOrderHeaderEntity_Extension
{
public void insert()
{
next insert();
if(LSParameters::find().FiscalDocumentSourceText == NoYes::Yes)
{
SalesTable SalesTableLocal;
SalesTable_BR SalesTable_BRLocal;
select firstonly SalesTableLocal
where SalesTableLocal.SalesId == this.SalesOrderNumber;
select firstonly SalesTable_BRLocal
where SalesTable_BRLocal.SalesTable == SalesTableLocal.RecId;
SalesTable_BR::getFiscalTextDocument(SalesTableLocal, SalesTable_BRLocal.SalesPurchOperationType_BR);
}
}
}