Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
StanBarrows committed Dec 11, 2023
1 parent 7a16a10 commit 009c254
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,26 @@ $document = $connector->send(new PostDocumentRequest(
$indexes,
))->dto();


/**
* Upload new data entry with index values.
*/
use CodebarAg\DocuWare\DTO\DocumentIndex\PrepareDTO;

$indexes = collect([
PrepareDTO::make('FIELD_TEXT', 'Indexed Text'),
PrepareDTO::make('FIELD_NUMERIC', 1),
PrepareDTO::make('FIELD_DECIMAL', 1.00),
PrepareDTO::make('FIELD_DATE', now()),
]);

$document = $connector->send(new PostDocumentRequest(
$fileCabinetId,
null,
null,
$indexes,
))->dto();

/**
* Delete document.
*/
Expand Down

0 comments on commit 009c254

Please sign in to comment.