Notifications
Announcements
No record found.
public static SalesQuotationTable findProjId(ProjId _projId, boolean _forupdate = false) { SalesQuotationTable salesQuotationTable; if (isConfigurationkeyEnabled(configurationKeyNum(Project)) && _projId) { salesQuotationTable.selectForUpdate(_forupdate); select firstonly salesQuotationTable where salesQuotationTable.ProjIdRef == _projId; } return salesQuotationTable; }
[ExtensionOf(tableStr(SalesQuotationTable))] final class DT_SalesQuotationTable_Extension { public void Insert() { next Insert(); SalesQuotationTable salesQuotationTable; ProjTable projTable; if(projTable.ProjId != "") { select sum(quotationValue) from salesQuotationTable join projTable where projTable.ProjId == this.ProjIdRef; projTable.quotationValue = salesQuotationTable.quotationValue; projTable.update(); } } }
public void insert() { ttsbegin; next insert(); SalesQuotationTable::updateProjQuotationValue(this.ProjIdRef); ttscommit; } private static void updateProjQuotationValue(ProjId _projId) { if (!_projId) { return; } SalesQuotationTable quotation; select sum(QuotationValue) from quotation where quotation.ProjIdRef == _projId; ProjTable projTable = ProjTable::find(_projId, true); projTable.QuotationValue = quotation.QuotationValue; projTable.update(); }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader