Implement CRUD functionality for Articles and Tiers with enhanced API documentation
- Introduced new endpoints for creating and modifying articles (`art_add`, `art_mod`) and tiers (`third_add`, `third_mod`), allowing users to manage these entities effectively. - Updated the Articles and Tiers pages to include forms for adding and modifying records, complete with parameter tables for clear guidance on required inputs. - Enhanced the API documentation to include detailed descriptions, examples, and metadata for the new endpoints, improving usability and understanding for developers. - Created a new rule for writing conventions with French accents to ensure consistency across the project. - Updated existing documentation to reflect structural changes and added a summary table for CRUD operations. - Added tests to verify the functionality of the new features and ensure robust error handling.
This commit is contained in:
@@ -162,6 +162,38 @@ class LogisticsService
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{ARTID: string, NAME1?: string, SALEPRICE?: string, ...} $params
|
||||
*/
|
||||
public function artAdd(array $params): array
|
||||
{
|
||||
return $this->post('art_add', $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{ARTID: string, NAME1?: string, SALEPRICE?: string, ...} $params
|
||||
*/
|
||||
public function artMod(array $params): array
|
||||
{
|
||||
return $this->post('art_mod', $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{NAME?: string, VAT?: string, EMAIL?: string, ...} $params
|
||||
*/
|
||||
public function thirdAdd(array $params): array
|
||||
{
|
||||
return $this->post('third_add', $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{CUSTID: string, NAME?: string, VAT?: string, EMAIL?: string, ...} $params
|
||||
*/
|
||||
public function thirdMod(array $params): array
|
||||
{
|
||||
return $this->post('third_mod', $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{ARTID: string, STKID: string, QTY: string, TOCHECK?: string, TOCHECKDETAIL?: string, MODE?: string} $params
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user