if (workBalances.CreditQty) { calcTransIst.DebitCode = COSDebitCodeId::Credit; } else { calcTransIst.DebitCode = COSDebitCodeId::Credit; }