Skip to content

EACQAPW-5778 Изменен класс Receipt.kt на основе выборки между версиями фискализации#307

Open
decemd1 wants to merge 1 commit into
3.0.1from
EACQAPW-5778-params-for-fiscalization
Open

EACQAPW-5778 Изменен класс Receipt.kt на основе выборки между версиями фискализации#307
decemd1 wants to merge 1 commit into
3.0.1from
EACQAPW-5778-params-for-fiscalization

Conversation

@decemd1

@decemd1 decemd1 commented Aug 8, 2023

Copy link
Copy Markdown
Collaborator

No description provided.

data class ReceiptFfd12(

/**
* Общие проперти

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Свойства

}

receipt.apply(initializer)
return receipt

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дублирование этой функции в InitRequest и в ConfirmRequest - зачем?
Вынеси ее куда нибудь и используй где нужно.
Так же я не увидел чтобы она где-то использовалась.
Для чего она нужна, если она ни где не используется?

when (receipt) {
is ReceiptFfd105 -> (receipt as ReceiptFfd105).email = email
is ReceiptFfd12 -> (receipt as ReceiptFfd12).base.email = email
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

То же самое. Дублируются функции.
Выноси куда-то в отдельное место, зачем писать одинаковый код в разных местах?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants