Skip to content

Instantly share code, notes, and snippets.

@jsqu99
Created February 6, 2014 19:51
Show Gist options
  • Save jsqu99/8851339 to your computer and use it in GitHub Desktop.
Save jsqu99/8851339 to your computer and use it in GitHub Desktop.
justin44 has 123 in one warehouse and 0 in another
after creating an order (qty = 11), before hitting 'book'
justin44 = OpenbravoSyncher.get("/openbravo/org.openbravo.service.json.jsonrest/MaterialMgmtStorageDetail?_where=product%3D'72CFA7AF3A20471EAD463C41332EAA00'", {:basic_auth => {:username => 'Openbravo', :password => 'openbravo'}})
"quantityOnHand" => 123,
"onHandOrderQuanity" => nil,
"lastInventoryCountDate" => "2014-02-06",
"quantityInDraftTransactions" => 0,
I booked the order:
"quantityOnHand" => 112,
"onHandOrderQuanity" => nil,
"lastInventoryCountDate" => "2014-02-06",
"quantityInDraftTransactions" => 0,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment