|
![]() |
#1 |
Ищущий знания...
|
Цитата:
Сообщение от Cardagant
![]() Вот код этого метода в системе:
X++: boolean mustBeBookedFinancially() { InventDim inventDimTo; InventDim inventDimFrom; ; if (CompanyInfo::features_W() == CRSEFeatures_W::RU && !InventParameters::find().EnableTransferFinancialPosting_RU) { inventDimFrom = inventJournalTrans.inventDim(); inventDimTo = inventJournalTrans.toInventDim(); if (inventDimFrom.InventProfileId_RU == inventDimTo.InventProfileId_RU) { return false; } } if (InventParameters::find().InventPosting_ZTR) { if (this.accountBalanceSheet() == this.accountOperations())/* || this.accountOperations() && this.storno_RU()*/)//!!storno_RU return false; return true; } else if (!InventParameters::find().EnableTransferFinancialPosting_RU) { return false; } if (inventJournalTrans.InventTransId == inventJournalTrans.ToInventTransId || !inventJournalTrans.ToInventTransId) return false; if (!super()) return false; inventDimFrom = inventJournalTrans.inventDim(); inventDimTo = inventJournalTrans.toInventDim(); if (CompanyInfo::features_W() == CRSEFeatures_W::RU && inventDimFrom.InventProfileId_RU != inventDimTo.InventProfileId_RU) { return true; } if (inventDimFrom.InventSiteId != inventDimTo.InventSiteId) { return true; } if (!InventDim::isInventDimEqualItemDim(this.dimGroupId(), inventDimFrom, inventDimTo)) { return true; } return false; } X++: if (InventParameters::find().InventPosting_ZTR) { if (this.accountBalanceSheet() == this.accountOperations())/* || this.accountOperations() && this.storno_RU()*/)//!!storno_RU return false; return true; } else if (!InventParameters::find().EnableTransferFinancialPosting_RU) { return false; } 2. И ещё разок на всякий случай спрошу, в параметрах галка "Журнал переноса и заказ на перемещение" (EnableTransferFinancialPosting_RU) стоит? 3. Ещё нужно разобраться, что у Вас возвращают методы this.accountBalanceSheet() и this.accountOperations(), может быть в них ещё что то дописано. В общем нужно воспользоваться дебагером и потрассировать разноску журнала переноса.
__________________
"Страх перед возможностью ошибки не должен отвращать нас от поисков истины." (с) С Уважением, Елизаров Артем |
|
![]() |
#2 |
Ищущий знания...
|
Цитата:
Сообщение от lev
![]() вот этих строк в стандарте нет:
X++: if (InventParameters::find().InventPosting_ZTR) { if (this.accountBalanceSheet() == this.accountOperations())/* || this.accountOperations() && this.storno_RU()*/)//!!storno_RU return false; return true; } else if (!InventParameters::find().EnableTransferFinancialPosting_RU) { return false; }
__________________
"Страх перед возможностью ошибки не должен отвращать нас от поисков истины." (с) С Уважением, Елизаров Артем |
|