Withdraw selected part lots, when building

This commit is contained in:
Jan Böhmer 2023-01-22 16:59:58 +01:00
parent 31a20d0692
commit 616533ea4a
6 changed files with 79 additions and 3 deletions

View file

@ -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