Advertisement
fedorm

fedorm

Oct 25th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.69 KB | None | 0 0
  1. 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]
  2. 25.10 14:54:05 TRACE [MLServiceImpl] leaving getMlCardNo(PurchaseEntity). The result is: null
  3. 25.10 14:54:08 TRACE [MLServiceImpl] entering isEnabled()
  4. 25.10 14:54:08 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
  5. 25.10 14:54:08 TRACE [MLServiceImpl] entering isMlCoupon(String). The argument is: "0000092063"
  6. 25.10 14:54:08 TRACE [MLServiceImpl] leaving isMlCoupon(String). The result is: false
  7. 25.10 14:54:08 TRACE [MLServiceImpl] entering isEnabled()
  8. 25.10 14:54:08 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
  9. 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
  10. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
  11. 25.10 14:54:09 TRACE [MLServiceImpl] entering isMlCoupon(String). The argument is: "2612341234"
  12. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isMlCoupon(String). The result is: false
  13. 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
  14. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
  15. 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
  16. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
  17. 25.10 14:54:09 TRACE [MLServiceImpl] entering isMlCoupon(String). The argument is: "2612341234"
  18. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isMlCoupon(String). The result is: false
  19. 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
  20. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
  21. 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
  22. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
  23. 25.10 14:54:09 TRACE [MLServiceImpl] entering isMlCard(String, boolean). The argument are: "2612341234"
  24. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isMlCard(String, boolean). The result is: true
  25. 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]
  26. 25.10 14:54:09 TRACE [MLServiceImpl] leaving getMlCardNo(Purchase). The result is: 2612341234
  27. 25.10 14:54:09 TRACE [MLServiceImpl] entering isEnabled()
  28. 25.10 14:54:09 TRACE [MLServiceImpl] leaving isEnabled(). the result is: true
  29. 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]
  30. 25.10 14:54:09 TRACE [MLServiceImpl] entering getFakeCardNo()
  31. 25.10 14:54:09 TRACE [MLServiceImpl] leaving getFakeCardNo(). The result is: "2612341234"
  32. 25.10 14:54:09 TRACE [MLServiceImpl] Send request <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  33. <ProcessRequest xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd">
  34.     <request>
  35.         <ChequeRequest ChequeType="Soft">
  36.             <RequestID>1752_61_1_6</RequestID>
  37.             <Card>
  38.                 <CardNumber>2612341234</CardNumber>
  39.             </Card>
  40.             <DateTime>2018-10-25T14:54:09.381+03:00</DateTime>
  41.             <Organization>Victoria</Organization>
  42.             <BusinessUnit>1752</BusinessUnit>
  43.             <POS>61</POS>
  44.             <Number>1_6</Number>
  45.             <OperationType>Sale</OperationType>
  46.             <Summ>999.99</Summ>
  47.             <Discount>50.001</Discount>
  48.             <SummDiscounted>499.99</SummDiscounted>
  49.             <Item>
  50.                 <PositionNumber>1</PositionNumber>
  51.                 <Article>0000092063</Article>
  52.                 <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
  53.                 <Price>999.99</Price>
  54.                 <Quantity>1.000</Quantity>
  55.                 <Summ>999.99</Summ>
  56.                 <Discount>50.001</Discount>
  57.                 <SummDiscounted>499.99</SummDiscounted>
  58.                 <ExtendedAttribute>
  59.                     <Key>DISCOUNT_GOODS</Key>
  60.                     <Value>50.001</Value>
  61.                 </ExtendedAttribute>
  62.             </Item>
  63.         </ChequeRequest>
  64.     </request>
  65. </ProcessRequest>
  66.  
  67. 25.10 14:54:09 TRACE [MLServiceImpl] entering getServices()
  68. 25.10 14:54:09 TRACE [MLServiceImpl] getting services (IN MEMORY)
  69. 25.10 14:54:09 TRACE [MLServiceImpl] leaving getServices(). The result size is: 1
  70. 25.10 14:54:09 TRACE [MLServiceImpl] class ru.crystals.pos.ml.wsclient.ProcessRequestResponse is <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  71. <ProcessRequestResponse xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd">
  72.     <ProcessRequestResult>
  73.         <ChequeResponse>
  74.             <ReturnCode>0</ReturnCode>
  75.             <Message>OK</Message>
  76.             <Summ>999.99</Summ>
  77.             <Discount>50.001</Discount>
  78.             <SummDiscounted>499.9900</SummDiscounted>
  79.             <Item>
  80.                 <PositionNumber>1</PositionNumber>
  81.                 <Article>0000092063</Article>
  82.                 <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
  83.                 <Price>999.99</Price>
  84.                 <Quantity>1.000</Quantity>
  85.                 <Summ>999.99</Summ>
  86.                 <Discount>50.00</Discount>
  87.                 <SummDiscounted>499.9900</SummDiscounted>
  88.                 <ExtendedAttribute>
  89.                     <Key>DISCOUNT_GOODS</Key>
  90.                     <Value>50.001</Value>
  91.                 </ExtendedAttribute>
  92.                 <ExtendedAttribute>
  93.                     <Key>Discountrule_11</Key>
  94.                     <Value>10.0</Value>
  95.                 </ExtendedAttribute>
  96.             </Item>
  97.         </ChequeResponse>
  98.     </ProcessRequestResult>
  99. </ProcessRequestResponse>
  100.  
  101. 25.10 14:54:09 TRACE [MLServiceImpl] entering getFakeCardNo()
  102. 25.10 14:54:09 TRACE [MLServiceImpl] leaving getFakeCardNo(). The result is: "2612341234"
  103. 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]
  104. 25.10 14:54:09 TRACE [MLServiceImpl] leaving getMlCardNo(Purchase). The result is: 2612341234
  105. 25.10 14:54:09 TRACE [MLReceiptConvertor] applying stategy: ml-stategy-cut-down
  106. 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"?>
  107. <ns2:cheque-reponse xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd" xmlns:ns2="ru.crystals.pos.ml.wsclient">
  108.     <ReturnCode>0</ReturnCode>
  109.     <Message>OK</Message>
  110.     <Summ>999.99</Summ>
  111.     <Discount>50.001</Discount>
  112.     <SummDiscounted>499.9900</SummDiscounted>
  113.     <Item>
  114.         <PositionNumber>1</PositionNumber>
  115.         <Article>0000092063</Article>
  116.         <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
  117.         <Price>999.99</Price>
  118.         <Quantity>1.000</Quantity>
  119.         <Summ>999.99</Summ>
  120.         <Discount>50.00</Discount>
  121.         <SummDiscounted>499.9900</SummDiscounted>
  122.         <ExtendedAttribute>
  123.             <Key>DISCOUNT_GOODS</Key>
  124.             <Value>50.001</Value>
  125.         </ExtendedAttribute>
  126.         <ExtendedAttribute>
  127.             <Key>Discountrule_11</Key>
  128.             <Value>10.0</Value>
  129.         </ExtendedAttribute>
  130.     </Item>
  131. </ns2:cheque-reponse>
  132. ], 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]]
  133. 25.10 14:54:09 TRACE [StrategyCutDownMLDiscountsApplier] entering getMlDiscounts(ChequeResponseBase, Purchase). The arguments are: response [<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  134. <ns2:cheque-reponse xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd" xmlns:ns2="ru.crystals.pos.ml.wsclient">
  135.     <ReturnCode>0</ReturnCode>
  136.     <Message>OK</Message>
  137.     <Summ>999.99</Summ>
  138.     <Discount>50.001</Discount>
  139.     <SummDiscounted>499.9900</SummDiscounted>
  140.     <Item>
  141.         <PositionNumber>1</PositionNumber>
  142.         <Article>0000092063</Article>
  143.         <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
  144.         <Price>999.99</Price>
  145.         <Quantity>1.000</Quantity>
  146.         <Summ>999.99</Summ>
  147.         <Discount>50.00</Discount>
  148.         <SummDiscounted>499.9900</SummDiscounted>
  149.         <ExtendedAttribute>
  150.             <Key>DISCOUNT_GOODS</Key>
  151.             <Value>50.001</Value>
  152.         </ExtendedAttribute>
  153.         <ExtendedAttribute>
  154.             <Key>Discountrule_11</Key>
  155.             <Value>10.0</Value>
  156.         </ExtendedAttribute>
  157.     </Item>
  158. </ns2:cheque-reponse>
  159. ], originalReceipt [Purchase:[number=null;dateCreate=2018-10-25 14:54:08.636;operationType=true;checkSum=99999;discount=50000]]
  160. 25.10 14:54:09 TRACE [StrategyCutDownMLDiscountsApplier] leaving getMlDiscounts(ChequeResponseBase, Purchase). The result is: {position-key [marking: 0000092063; original-price: 99999]=9999}
  161. 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"?>
  162. <ns2:cheque-reponse xmlns="http://loyalty.manzanagroup.ru/loyalty.xsd" xmlns:ns2="ru.crystals.pos.ml.wsclient">
  163.     <ReturnCode>0</ReturnCode>
  164.     <Message>OK</Message>
  165.     <Summ>999.99</Summ>
  166.     <Discount>50.001</Discount>
  167.     <SummDiscounted>499.9900</SummDiscounted>
  168.     <Item>
  169.         <PositionNumber>1</PositionNumber>
  170.         <Article>0000092063</Article>
  171.         <ArticleName>Штучный со скидкой не сумм. всегда 50%</ArticleName>
  172.         <Price>999.99</Price>
  173.         <Quantity>1.000</Quantity>
  174.         <Summ>999.99</Summ>
  175.         <Discount>50.00</Discount>
  176.         <SummDiscounted>499.9900</SummDiscounted>
  177.         <ExtendedAttribute>
  178.             <Key>DISCOUNT_GOODS</Key>
  179.             <Value>50.001</Value>
  180.         </ExtendedAttribute>
  181.         <ExtendedAttribute>
  182.             <Key>Discountrule_11</Key>
  183.             <Value>10.0</Value>
  184.         </ExtendedAttribute>
  185.     </Item>
  186. </ns2:cheque-reponse>
  187. ], 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]]
  188. 25.10 14:54:09 TRACE [StrategyCutDownMLDiscountsApplier] leaving reduceAlienDiscounts(ChequeResponseBase, Map, Purchase)
  189. 25.10 14:54:09 TRACE [BaseMLDiscountsApplier] leaving applyMlDiscounts(ChequeResponseBase, Purchase, long, String, Purchase)
  190. 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