Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. {
  2. "id": 1,
  3. "journal_entry": {
  4. "id": 1,
  5. "date": "2019-05-09",
  6. "transaction_type": "SALES",
  7. "description": "description",
  8. "child": [
  9. {
  10. "id": 1,
  11. "journal_entry": 1,
  12. "account": "Sales",
  13. "partner": null,
  14. "debit_amount": "400.00",
  15. "credit_amount": "400.00"
  16. },
  17. {
  18. "id": 1,
  19. "journal_entry": 1,
  20. "account": "Purchase",
  21. "partner": null,
  22. "debit_amount": "800.00",
  23. "credit_amount": "400.00"
  24. }
  25. ]
  26. },
  27. "reciept_no": 1
  28. }
  29.  
  30. json data for post into api is like,
  31.  
  32. {
  33. "reciept_no": 1
  34. "journal_entry": {
  35. "date": "2019-05-09",
  36. "transaction_type": "SALES",
  37. "description": "description",
  38. "child": [
  39. {
  40. "account": "Sales",
  41. "partner": null,
  42. "debit_amount": "400.00",
  43. "credit_amount": "400.00"
  44. },
  45. {
  46. "account": "Purchase",
  47. "partner": null,
  48. "debit_amount": "800.00",
  49. "credit_amount": "400.00"
  50. }
  51. ]
  52. }
  53. }
  54.  
  55. iam using ,
  56. Django - 2.1.3,
  57. djangorestframework - 3.9.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement