Created
May 22, 2017 02:57
-
-
Save kalvian1060/2e801e383e93f00d400f467848881522 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (int i = 0; i < data.length(); i++) { | |
JSONObject getData = data.getJSONObject(i); | |
int location_id = getData.getInt("location_id"); | |
int product_id = getData.getInt("product_id"); | |
int qty = getData.getInt("sum"); | |
stock_quant dataStok = new stock_quant(qty, product_id, location_id); | |
dataStok.save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment