Skip to content

скидка на чек#23

Merged
thenixan merged 7 commits intoevotor:developfrom
rMozg:discounts
May 31, 2017
Merged

скидка на чек#23
thenixan merged 7 commits intoevotor:developfrom
rMozg:discounts

Conversation

@rMozg
Copy link
Contributor

@rMozg rMozg commented May 31, 2017

No description provided.

private static final String KEY_DISCOUNT = "discount";

public static ReceiptDiscountEvent create(Bundle bundle) {
BigDecimal discount = new BigDecimal(bundle.getLong(KEY_DISCOUNT, 0)).setScale(MONEY_PRECISION).divide(HUNDRED, BigDecimal.ROUND_FLOOR);
Copy link
Collaborator

Choose a reason for hiding this comment

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

нужно сериализовать в строку


public static ReceiptDiscountEventResult create(Bundle bundle) {
String resultName = bundle.getString(KEY_RESULT);
BigDecimal discount = new BigDecimal(bundle.getLong(KEY_DISCOUNT, 0)).setScale(MONEY_PRECISION).divide(HUNDRED, BigDecimal.ROUND_FLOOR);
Copy link
Collaborator

Choose a reason for hiding this comment

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

здесь тоже нужна сериализация в строку

@thenixan thenixan merged commit 70cf2bb into evotor:develop May 31, 2017
@rMozg rMozg deleted the discounts branch June 1, 2017 07:42
xcam pushed a commit that referenced this pull request Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants