Skip to content

Instantly share code, notes, and snippets.

@joshdcabrera
Created January 5, 2018 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdcabrera/90a4c76e9e93bac204c2d543ef18574a to your computer and use it in GitHub Desktop.
Save joshdcabrera/90a4c76e9e93bac204c2d543ef18574a to your computer and use it in GitHub Desktop.
AccountingDistributionTmp_Extension
[ExtensionOf(tableStr(AccountingDistributionTmp))]
final class AccountingDistributionTmp_Extension
{
public void applyFixedDimension()
{
next applyFixedDimension();
if(SourceDocumentLine::find(this.SourceDocumentLine).SourceRelationType == tableName2Id(tableStr(TrvExpTrans))
&& this.PostingType == LedgerPostingType::VendBalance && this.LedgerDimension)
{
this.LedgerDimension = LedgerDimensionFacade::serviceApplyFixedDimensions(this.LedgerDimension, Ledger::findByLegalEntity(this.SourceDocLineLegalEntity).RecId);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment