Показать сообщение отдельно
Старый 20.05.2019, 16:49   #377  
axm2017 is offline
axm2017
Участник
 
1,748 / 292 (13) ++++++
Регистрация: 15.05.2017
Из того же класса неполиткорректное:
"а полякам запиши дату дважды, чтобы уж точно дошло"

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>
        }