Implement toggle for read/write mode across entity pages and enhance Documents and Divers functionality

- Added a toggle for switching between read and write modes on the Articles, Documents, Journaux, Tiers, and Divers pages, allowing users to access both data retrieval and data submission endpoints.
- Updated the Documents page to cover all 9 documented endpoints, including 7 for reading and 2 for writing, with appropriate error handling.
- Created a new Divers page to handle three endpoints: getserialnumber, codes_list, and custom_geninv_updatestock (the latter being non-functional).
- Introduced new methods in LogisticsService for handling PDF generation and stock updates, with corresponding updates in the API documentation.
- Improved form field components for better visual spacing in input fields.
This commit is contained in:
2026-02-20 15:51:58 +01:00
parent 8637dcc7cb
commit 7df94b64fa
22 changed files with 1777 additions and 376 deletions

View File

@@ -153,6 +153,23 @@ class LogisticsService
return $this->post('codes_list', $params);
}
public function documentGetPdf(string $jnl, string $number, string $layout): array
{
return $this->post('Document_GetPDF', [
'JNL' => $jnl,
'NUMBER' => $number,
'LAYOUT' => $layout,
]);
}
/**
* @param array{ARTID: string, STKID: string, QTY: string, TOCHECK?: string, TOCHECKDETAIL?: string, MODE?: string} $params
*/
public function customGeninvUpdatestock(array $params): array
{
return $this->post('custom_geninv_updatestock', $params);
}
/**
* @return array{data: mixed, metadata: array, error: mixed}
*