|
![]() |
#1 |
Модератор
|
Цитата:
PartyId = '' при вызове super() в \Data Dictionary\Tables\CustTable\Methods\Insert
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. Последний раз редактировалось Poleax; 10.08.2010 в 16:12. |
|
![]() |
#2 |
Axapta
|
|
|
![]() |
#3 |
Модератор
|
Цитата:
X++: void insert() { SyncAppCompany syncAppCompany; DirPartyId localDirPartyId; ; ttsbegin; this.setNameAlias(); // <GEEU> this.setInventProfileId_RU(); // </GEEU> // Check if not associated to Party if (!this.PartyId) { // Create a Party entry for customer localDirPartyId = DirParty::createPartyFromCommon(this).PartyId; } else { DirParty::updatePartyFromCommonInsert(this.PartyId,this); } super(); //When some field of a new customer is invalid and fails to be inserted, the PartId should be null. if(localDirPartyId) { this.PartyId = localDirPartyId; this.doUpdate(); } SalesJournalAutoSummary::initAllFromCustTable(this); smmTransLog::initTrans(this, smmLogAction::insert); // Integrate this new customer with the integrated Project Server app associated with the current company syncAppCompany = SyncAppCompany::find(curext(), SyncAppType::ProjectServer); if (syncAppCompany) { SyncCustTableLookup::insertLookupNodes(syncAppCompany.AppId, curext(), this.AccountNum, this.Name); } // Add links to contact person ContactPerson::addCustVendLink(this.TableId, this.PartyId, this.AccountNum); ttscommit; } this.PartyId = localDirPartyId; но после super() У меня до этого места не доходит. Валится с ошибкой.
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. |
|
|
|