Presentation is loading. Please wait.

Presentation is loading. Please wait.

Similar presentations


Presentation on theme: ""— Presentation transcript:

1

2

3

4

5

6

7 Reason codes for transaction processing Commission reference dataCommon setup dataTravel destinations Groups that can be used for reporting and analysis Customer records Groups for accounting, filtering, and reporting Merchants Payment elements for transaction processing and payment management Vendor recordsDelivery reference data Profiles for transaction postingContact person recordsTime calendars Parameters for handling transaction data Prospects Aging periodsLeads Asset depreciation profilesOpportunities Tax reference entries

8

9 DataArea in AX2012

10 CompanyInfo in AX2012

11 SelectableDataArea when the value can be selected as current company context (defined by framework) CompanyId when the value can only be a Company DataAreaId

12 changeCompany only accepts selectableDataArea values. changeCompany(vendTable.DataAreaId) { … } changeCompany(vendTable.company()) { … }

13 changecompany(sharedTable.CustAccountDataAreaId) { … } changecompany(sharedTable.legalEntity().DataArea) { … }

14 select crossCompany custTable where custTable.AccountNum == accountNum && custTable.DataAreaId == companyInfo.DataArea; select crossCompany custTable where custTable.AccountNum == accountNum && custTable.DataAreaId == getCompany( tableNum(CustTable), companyInfo.DataArea);

15 select custTable where custTable.AccountNum == accountNum && custTable.DataAreaId == curext(); select custTable where custTable.AccountNum == accountNum;

16 select firstonly vendTable where vendTable.AccountNum == vendorInvoiceAccount && vendTable.DataAreaId == vendorInvoiceDataAreaId select firstonly crossCompany vendTable where vendTable.AccountNum == vendorInvoiceAccount && vendTable.DataAreaId == vendorInvoiceDataAreaId

17

18 this.VendDataAreaId = CompanyInfo::findRecId(this.BuyingLegalEntity). DataArea; this.VendDataAreaId = getCompany(tableNum(VendTable), CompanyInfo::findRecId(this.BuyingLegalEntity). DataArea);

19 CompanyInfo::findDataArea(vendTable.DataAreaId).RecId CompanyInfo::findDataArea(vendTable.company()).RecId

20 addressOwner = CompanyInfo::findDataArea( purchAgreementHeader.VendorDataAreaId); addressOwner = CompanyInfo::findRecId( purchAgreementHeader.BuyingLegalEntity);

21 public static CompanyInfo findDataArea( DataAreaId _dataArea, boolean _forUpdate = false) {... if (_dataArea) { select firstonly companyInfo where companyInfo.DataArea == _dataArea; }... } public static CompanyInfo findDataArea( SelectableDataArea _dataArea, boolean _forUpdate = false) {... if (_dataArea) { select firstonly companyInfo where companyInfo.DataArea == _dataArea; }... }

22 public static VendTable findByCompany( DataAreaId _company, VendAccount _vendAccount, boolean _forUpdate = false) { VendTable vend; if (_company) { changecompany(_company) { vend = VendTable::find( _vendAccount, _forUpdate); } return vend; } public static VendTable findByCompany( CompanyId _company, VendAccount _vendAccount, boolean _forUpdate = false) { VendTable vend; if (_company) { changecompany(_company) { vend = VendTable::find( _vendAccount, _forUpdate); } return vend; }

23 public static InventLocation findInLegalEntity( InventLocationId _inventLocationId, DataAreaId _dataAreaId) { InventLocation inventLocation; if (_inventLocationId && _dataAreaId) { select firstonly crosscompany inventLocation where inventLocation.InventLocationId == _inventLocationId && inventLocation.DataAreaId == _dataAreaId; } return inventLocation; } public static InventLocation findInDataArea( InventLocationId _inventLocationId, DataAreaId _dataAreaId) { InventLocation inventLocation; if (_inventLocationId && _dataAreaId) { select firstonly crosscompany inventLocation where inventLocation.InventLocationId == _inventLocationId && inventLocation.DataAreaId == _dataAreaId; } return inventLocation; }

24

25

26


Download ppt ""

Similar presentations


Ads by Google