fix(test): fix create sale api test.
This commit is contained in:
		@@ -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}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user