fix(test): fix create sale api test.
This commit is contained in:
parent
4f0f899c70
commit
99f2f77b78
@ -50,6 +50,7 @@ class TestAPI(APITestCase):
|
|||||||
data = {
|
data = {
|
||||||
'customer': self.customer.id,
|
'customer': self.customer.id,
|
||||||
'date': '2024-09-02',
|
'date': '2024-09-02',
|
||||||
|
'payment_method': 'CASH',
|
||||||
'saleline_set': [
|
'saleline_set': [
|
||||||
{'product': self.product.id, 'quantity': 2, 'unit_price': 3000},
|
{'product': self.product.id, 'quantity': 2, 'unit_price': 3000},
|
||||||
{'product': self.product.id, 'quantity': 3, 'unit_price': 5000}
|
{'product': self.product.id, 'quantity': 3, 'unit_price': 5000}
|
||||||
|
Loading…
Reference in New Issue
Block a user