Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. diff --git a/pgm/StoreItem.bbj b/pgm/StoreItem.bbj
  2. index 1823d92..f4de88a 100644
  3. --- a/pgm/StoreItem.bbj
  4. +++ b/pgm/StoreItem.bbj
  5. @@ -1337,6 +1337,16 @@ rem brand$=sqlfetch(ch, end=*next)
  6.  
  7. methodend
  8.  
  9. + method public BBjNumber sendSourcingInfo()
  10. + ::HttpRequest.bbj::HttpRequest.debug("BOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO")
  11. + ::HttpRequest.bbj::HttpRequest.debug("IN HAND" + str(#inHandStock))
  12. + ::HttpRequest.bbj::HttpRequest.debug("FACTORY STOCK" + str(#factoryStock))
  13. + if #factoryStock > 0 and #inHandStock = 0 then
  14. + methodret 1
  15. + endif
  16. + methodret 0
  17. + methodend
  18. +
  19. method public void addPromoCode(Promotion promotion!)
  20. ::HttpRequest.bbj::HttpRequest.debug("ADDING PROMO CODE" + promotion!.getPromoCode())
  21. it! = #promoCodes!.iterator()
  22. diff --git a/pgm/summary.bbj b/pgm/summary.bbj
  23. index 5bf112d..88e78e1 100644
  24. --- a/pgm/summary.bbj
  25. +++ b/pgm/summary.bbj
  26. @@ -253,7 +253,7 @@ REM *********************
  27. item! = cast(StoreItem,itm!.next())
  28. ::HttpRequest.bbj::HttpRequest.debug("TESTING LOOP")
  29. ::HttpRequest.bbj::HttpRequest.debug(str(item!.getSelectedPriceSchema()))
  30. - if item!.getSelectedPriceSchema()=4 then
  31. + if item!.sendSourcingInfo()=1 then
  32. PRECISION 5
  33. keyValuePairList! = new BBjVector()
  34. itemId$ = item!.getItemId()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement