Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "id": 1,
- "journal_entry": {
- "id": 1,
- "date": "2019-05-09",
- "transaction_type": "SALES",
- "description": "description",
- "child": [
- {
- "id": 1,
- "journal_entry": 1,
- "account": "Sales",
- "partner": null,
- "debit_amount": "400.00",
- "credit_amount": "400.00"
- },
- {
- "id": 1,
- "journal_entry": 1,
- "account": "Purchase",
- "partner": null,
- "debit_amount": "800.00",
- "credit_amount": "400.00"
- }
- ]
- },
- "reciept_no": 1
- }
- json data for post into api is like,
- {
- "reciept_no": 1
- "journal_entry": {
- "date": "2019-05-09",
- "transaction_type": "SALES",
- "description": "description",
- "child": [
- {
- "account": "Sales",
- "partner": null,
- "debit_amount": "400.00",
- "credit_amount": "400.00"
- },
- {
- "account": "Purchase",
- "partner": null,
- "debit_amount": "800.00",
- "credit_amount": "400.00"
- }
- ]
- }
- }
- iam using ,
- Django - 2.1.3,
- djangorestframework - 3.9.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement