|
|
#13 |
|
Участник
|
Цитата:
Цитата:
2. В классе InventMov_Jour_Transfer создать метод, возвращающий расход это или приход с учетом сторно: X++: private boolean isIssue(boolean _checkStorno = true) { boolean issue = (this.transQty() <= 0); ; if (_checkStorno&&inventJournalTrans.Storno_RU) { issue = !issue; } return issue; } X++: LedgerAccount accountOperations()
{
if (! cacheAccountOperations)
{
if (this.isIssue())
cacheAccountOperations = InventPosting::item(InventAccountType::InventReceipt,this.itemId(),this.inventTable().ItemGroupId, this.inventDim());
else
cacheAccountOperations = InventPosting::item(this.assetId() ? InventAccountType::InventIssueFixedAsset : InventAccountType::InventIssue,
this.itemId(), this.inventTable().ItemGroupId, this.inventDim()) ;
}
return cacheAccountOperations;
}X++: LedgerPostingType postingOperations()
{
if (this.isIssue())
return LedgerPostingType::InventReceipt;
else
return (this.assetId()) ? LedgerPostingType::InventIssueFixedAsset :
LedgerPostingType::InventIssue;
} |
|
|
|
| За это сообщение автора поблагодарили: EVGL (10), CDR (3), Pustik (3), lev (10), gl00mie (3), S.Kuskov (10), Kabardian (5). | |
| Теги |
| ax2009, профиль учета |
|
|
|