-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Update product for The livingOS #8
Comments
Case adjusting prices or product information .
|
This means that if we have to adjust the price of every product, will we have to bind a new chart of account? |
มีวิธีการทำอยู่ 2 แบบที่เห็นคือ
สิ่งที่สงสัย คือเราไม่มีการสร้างผังบัญชี แต่ให้เราส่งข้อมูลผังบัญชี ตอน Update Product มันแปลกนะคะ และ เมื่อเราไม่ได้เปลี่ยน product code ไม่ควรที่จะ Set ค่าเป็น Defult หรือป่าวค่ะ รบกวนพิจารณาเคสนี้ให้ด้วยนะคะ เพราะราคามีการ Create Update อยู่ตลอด และเป็นการทำงานต่างทีมกัน |
Hello kab I will investigate and let u know from what I feel if u DO NOT send the field....just remove it from request payload it SHOULD work |
@Kritchasorn could u fix this issue by the advise above? i will test it out by monday evening na krab, i am moving the product endpoint for v3 { "type": 5, "name": "Service test 00", "description": "Type service", "quantity": 1, "unitName": "บริการ", "pricePerUnit": 100, "total": 100 } or { "type": 5, "name": "Service test 00", "description": "Type service", "quantity": 1, "unitName": "บริการ", "pricePerUnit": 100, "total": 100, "sellChartOfAccountCode": "", "buyChartOfAccountCode": "" } |
@wickstargazer. We folllow API Document (https://developers.flowaccount.com/#tag/Products/paths/~1products~1%7Bid%7D/put). We don't sent any field related to ChartOfAccount @Nitidomechailom. According to API Document (https://developers.flowaccount.com/#tag/Products/paths/~1products~1%7Bid%7D/put), there is no "sellChartOfAccountCode" field. Why we need to add it? |
Maybe we can have a better discussion in slack? @HeangTH ? |
I joined slack. See you there. |
Describe the bug
Found a problem in updating products API Post products When adjusting prices or product information, it will affect the chart of accounts that have already been linked. The chart of accounts always returns to default when data is Updated by API.
Please also specify affected endpoints
We will get back to you for your customer Id
In case
We cannot submit the updated chart of accounts because we do not have the chart of accounts code. and no API Spec to retrieve data Chart of accounts because we only use the chart of accounts on Flow Accounts.
The text was updated successfully, but these errors were encountered: