|
20.05.2019, 16:49 | #1 |
Участник
|
Из того же класса неполиткорректное:
"а полякам запиши дату дважды, чтобы уж точно дошло" X++: if (_cursor.TableId == tableNum(ProjInvoiceCost)) { tmpPSAProjInvoice.TransDate = projInvoiceCost.TransDate; // <GEEHU><GEEPL> if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoHU, #isoPL])) { tmpPSAProjInvoice.LineTaxAmount = projInvoiceCost.TaxAmount; } // </GEEPL></GEEHU> if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoHU, #isoLT])) { // There may be tax amounts that should be excluded from the invoice. Remove the excluded amounts from the line's tax amount. tmpPSAProjInvoice.LineTaxAmount -= PSAProjInvoiceRPTHelperEE::getExcludedTaxAmount(projInvoiceJour.LedgerVoucher, _cursor); } // <GEEPL> if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoPL])) { tmpPSAProjInvoice.TransDate = projInvoiceCost.TransDate; } // </GEEPL> } |
|
11.06.2019, 10:11 | #2 |
Участник
|
Не только им, для русских в одном случае дважды, а в другом ни разу (нечего баловать). DAX2012, метод priceDate таблицы salesLine.
В начале метода: X++: // <GEERU> #ISOCountryRegionCodes if (this.PriceAgreementDate_RU && SysCountryRegionCode::isLegalEntityInCountryRegion([ #isoRU ])) { return this.PriceAgreementDate_RU; } // <GEERU> X++: // <GEERU> if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoRU]) && this.PriceAgreementDate_RU) { priceDate = this.PriceAgreementDate_RU; } // </GEERU> |
|
|
За это сообщение автора поблагодарили: Logger (1). |