mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Withdraw selected part lots, when building
This commit is contained in:
parent
31a20d0692
commit
616533ea4a
6 changed files with 79 additions and 3 deletions
|
@ -38,6 +38,8 @@ final class ProjectBuildRequest
|
|||
*/
|
||||
private array $withdraw_amounts = [];
|
||||
|
||||
private string $comment = '';
|
||||
|
||||
/**
|
||||
* @param Project $project The project that should be build
|
||||
* @param int $number_of_builds The number of builds that should be created
|
||||
|
@ -78,6 +80,24 @@ final class ProjectBuildRequest
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the comment where the user can write additional information about the build.
|
||||
* @return string
|
||||
*/
|
||||
public function getComment(): string
|
||||
{
|
||||
return $this->comment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the comment where the user can write additional information about the build.
|
||||
* @param string $comment
|
||||
*/
|
||||
public function setComment(string $comment): void
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the amount of parts that should be withdrawn from the given lot for the corresponding BOM entry.
|
||||
* @param PartLot|int $lot The part lot (or the ID of the part lot) for which the withdraw amount should be get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue