Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 25.10 14:54:05 TRACE [MLServiceImpl] entering getMlCardNo(PurchaseEntity). The argument is: PurchaseEntity [id=162, number=5, dateCreate=Thu Oct 25 14:51:15 MSK 2018, dateCommit=null, fiscalDocNum=null, sentToServerStatus=NO_SENT]
- 25.10 14:54:05 TRACE [MLServiceImpl] leaving getMlCardNo(PurchaseEntity). The result is: null
- 25.10 14:54:08 TRACE [MLServiceImpl] entering isEnabled()
- 25.10 14:54:08 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
- 25.10 14:54:08 TRACE [MLServiceImpl] entering isMlCoupon(String). The argument is: "0000092063"
- 25.10 14:54:08 TRACE [MLServiceImpl] leaving isMlCoupon(String). The result is: false
- 25.10 14:54:08 TRACE [MLServiceImpl] entering isEnabled()
- 25.10 14:54:08 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isMlCoupon(String). The argument is: "2612341234"
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isMlCoupon(String). The result is: false
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isMlCoupon(String). The argument is: "2612341234"
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isMlCoupon(String). The result is: false
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isMlCard(String, boolean). The argument are: "2612341234"
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isMlCard(String, boolean). The result is: true
- 25.10 14:54:09 TRACE [MLServiceImpl] entering getMlCardNo(Purchase). The argument is: Purchase:[number=null;dateCreate=2018-10-25 14:54:08.636;operationType=true;checkSum=99999;discount=0]
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving getMlCardNo(Purchase). The result is: 2612341234
- 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
- 25.10 14:54:09 TRACE [MLServiceImpl] entering calcDiscount(Purchase). The argument is: Purchase:[number=null;dateCreate=2018-10-25 14:54:08.636;operationType=true;checkSum=99999;discount=50000]
- 25.10 14:54:09 TRACE [MLServiceImpl] entering getFakeCardNo()
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving getFakeCardNo(). The result is: "2612341234"
- 25.10 14:54:09 TRACE [MLServiceImpl] Send request <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ProcessRequest xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd">
- <request>
- <ChequeRequest ChequeType="Soft">
- <RequestID>1752_61_1_6</RequestID>
- <Card>
- <CardNumber>2612341234</CardNumber>
- </Card>
- <DateTime>2018-10-25T14:54:09.381+03:00</DateTime>
- <Organization>Victoria</Organization>
- <BusinessUnit>1752</BusinessUnit>
- <POS>61</POS>
- <Number>1_6</Number>
- <OperationType>Sale</OperationType>
- <Summ>999.99</Summ>
- <Discount>50.001</Discount>
- <SummDiscounted>499.99</SummDiscounted>
- <Item>
- <PositionNumber>1</PositionNumber>
- <Article>0000092063</Article>
- <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
- <Price>999.99</Price>
- <Quantity>1.000</Quantity>
- <Summ>999.99</Summ>
- <Discount>50.001</Discount>
- <SummDiscounted>499.99</SummDiscounted>
- <ExtendedAttribute>
- <Key>DISCOUNT_GOODS</Key>
- <Value>50.001</Value>
- </ExtendedAttribute>
- </Item>
- </ChequeRequest>
- </request>
- </ProcessRequest>
- 25.10 14:54:09 TRACE [MLServiceImpl] entering getServices()
- 25.10 14:54:09 TRACE [MLServiceImpl] getting services (IN MEMORY)
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving getServices(). The result size is: 1
- 25.10 14:54:09 TRACE [MLServiceImpl] class ru.crystals.pos.ml.wsclient.ProcessRequestResponse is <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ProcessRequestResponse xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd">
- <ProcessRequestResult>
- <ChequeResponse>
- <ReturnCode>0</ReturnCode>
- <Message>OK</Message>
- <Summ>999.99</Summ>
- <Discount>50.001</Discount>
- <SummDiscounted>499.9900</SummDiscounted>
- <Item>
- <PositionNumber>1</PositionNumber>
- <Article>0000092063</Article>
- <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
- <Price>999.99</Price>
- <Quantity>1.000</Quantity>
- <Summ>999.99</Summ>
- <Discount>50.00</Discount>
- <SummDiscounted>499.9900</SummDiscounted>
- <ExtendedAttribute>
- <Key>DISCOUNT_GOODS</Key>
- <Value>50.001</Value>
- </ExtendedAttribute>
- <ExtendedAttribute>
- <Key>Discountrule_11</Key>
- <Value>10.0</Value>
- </ExtendedAttribute>
- </Item>
- </ChequeResponse>
- </ProcessRequestResult>
- </ProcessRequestResponse>
- 25.10 14:54:09 TRACE [MLServiceImpl] entering getFakeCardNo()
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving getFakeCardNo(). The result is: "2612341234"
- 25.10 14:54:09 TRACE [MLServiceImpl] entering getMlCardNo(Purchase). The argument is: Purchase:[number=null;dateCreate=2018-10-25 14:54:08.636;operationType=true;checkSum=99999;discount=50000]
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving getMlCardNo(Purchase). The result is: 2612341234
- 25.10 14:54:09 TRACE [MLReceiptConvertor] applying stategy: ml-stategy-cut-down
- 25.10 14:54:09 TRACE [BaseMLDiscountsApplier] entering applyMlDiscounts(ChequeResponseBase, Purchase, long, String, Purchase). The arguments are: response [<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ns2:cheque-reponse xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd" xmlns:ns2="ru.crystals.pos.ml.wsclient">
- <ReturnCode>0</ReturnCode>
- <Message>OK</Message>
- <Summ>999.99</Summ>
- <Discount>50.001</Discount>
- <SummDiscounted>499.9900</SummDiscounted>
- <Item>
- <PositionNumber>1</PositionNumber>
- <Article>0000092063</Article>
- <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
- <Price>999.99</Price>
- <Quantity>1.000</Quantity>
- <Summ>999.99</Summ>
- <Discount>50.00</Discount>
- <SummDiscounted>499.9900</SummDiscounted>
- <ExtendedAttribute>
- <Key>DISCOUNT_GOODS</Key>
- <Value>50.001</Value>
- </ExtendedAttribute>
- <ExtendedAttribute>
- <Key>Discountrule_11</Key>
- <Value>10.0</Value>
- </ExtendedAttribute>
- </Item>
- </ns2:cheque-reponse>
- ], receipt [Purchase:[number=null;dateCreate=(NULL);operationType=null;checkSum=99999;discount=0]], actionGuid [0], cardNo [2612341234], originalReceipt [Purchase:[number=null;dateCreate=2018-10-25 14:54:08.636;operationType=true;checkSum=99999;discount=50000]]
- 25.10 14:54:09 TRACE [StrategyCutDownMLDiscountsApplier] entering getMlDiscounts(ChequeResponseBase, Purchase). The arguments are: response [<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ns2:cheque-reponse xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd" xmlns:ns2="ru.crystals.pos.ml.wsclient">
- <ReturnCode>0</ReturnCode>
- <Message>OK</Message>
- <Summ>999.99</Summ>
- <Discount>50.001</Discount>
- <SummDiscounted>499.9900</SummDiscounted>
- <Item>
- <PositionNumber>1</PositionNumber>
- <Article>0000092063</Article>
- <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
- <Price>999.99</Price>
- <Quantity>1.000</Quantity>
- <Summ>999.99</Summ>
- <Discount>50.00</Discount>
- <SummDiscounted>499.9900</SummDiscounted>
- <ExtendedAttribute>
- <Key>DISCOUNT_GOODS</Key>
- <Value>50.001</Value>
- </ExtendedAttribute>
- <ExtendedAttribute>
- <Key>Discountrule_11</Key>
- <Value>10.0</Value>
- </ExtendedAttribute>
- </Item>
- </ns2:cheque-reponse>
- ], originalReceipt [Purchase:[number=null;dateCreate=2018-10-25 14:54:08.636;operationType=true;checkSum=99999;discount=50000]]
- 25.10 14:54:09 TRACE [StrategyCutDownMLDiscountsApplier] leaving getMlDiscounts(ChequeResponseBase, Purchase). The result is: {position-key [marking: 0000092063; original-price: 99999]=9999}
- 25.10 14:54:09 TRACE [StrategyCutDownMLDiscountsApplier] entering reduceAlienDiscounts(ChequeResponseBase, Map, Purchase). The arguments are: response [<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <ns2:cheque-reponse xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd" xmlns:ns2="ru.crystals.pos.ml.wsclient">
- <ReturnCode>0</ReturnCode>
- <Message>OK</Message>
- <Summ>999.99</Summ>
- <Discount>50.001</Discount>
- <SummDiscounted>499.9900</SummDiscounted>
- <Item>
- <PositionNumber>1</PositionNumber>
- <Article>0000092063</Article>
- <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
- <Price>999.99</Price>
- <Quantity>1.000</Quantity>
- <Summ>999.99</Summ>
- <Discount>50.00</Discount>
- <SummDiscounted>499.9900</SummDiscounted>
- <ExtendedAttribute>
- <Key>DISCOUNT_GOODS</Key>
- <Value>50.001</Value>
- </ExtendedAttribute>
- <ExtendedAttribute>
- <Key>Discountrule_11</Key>
- <Value>10.0</Value>
- </ExtendedAttribute>
- </Item>
- </ns2:cheque-reponse>
- ], discountValues [{position-key [marking: 0000092063; original-price: 99999]=9999}], originalReceipt [Purchase:[number=null;dateCreate=2018-10-25 14:54:08.636;operationType=true;checkSum=99999;discount=50000]]
- 25.10 14:54:09 TRACE [StrategyCutDownMLDiscountsApplier] leaving reduceAlienDiscounts(ChequeResponseBase, Map, Purchase)
- 25.10 14:54:09 TRACE [BaseMLDiscountsApplier] leaving applyMlDiscounts(ChequeResponseBase, Purchase, long, String, Purchase)
- 25.10 14:54:09 TRACE [MLServiceImpl] leaving calcDiscount(Purchase). The result is: Purchase:[number=null;dateCreate=(NULL);operationType=null;checkSum=99999;discount=9999]; it took 124 [ms]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement