Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

202405 feat part printing #332

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

wernerhahn
Copy link
Contributor

No description provided.

Copy link
Member

@bblessmann bblessmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sieht ziemlich gut aus.

Noch ein changelog-Eintrag wäre schön.
Und evtl. einen Hinweis darauf, dass xetex oder luatex und das LaTeX-Paket pst-barcode benötigt wird für den Label-Druck mit den marai-Druckvorlagen. Oder mache ich was falsch?

Kleinigkeiten habe ich an entsprechenden den Stellen kommentiert.

$self->send_file(
$pdf,
type => 'application/pdf',
name => $file_name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An anderen Stellen haben wir eine Überstzung der Dateinamen. Geht das hier evtl. auch?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wird jetzt gemacht. Auch die Artikelnummer wird angehangen.

&& $::form->{part}{partnumber}
&& SL::DB::Manager::Part->find_by(partnumber => $::form->{part}{partnumber})
) {
return $self->js->error(t8('The partnumber is already being used'))->render;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das sieht irgendwie falsch aus, da save ja eigentlich ein array ref zurück liefern soll. Funktioniert, da die benutzte partnumber schon vorher abgefangen wird (in check_form). War vermutlich schon vorher so,, finde ich aber nicht richtig.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Habe ich entfernt, war überflüssig.

t8('Save and print'),
call => [ 'kivi.Part.show_print_options' ],
disabled => !$may_edit ? t8('You do not have the permissions to access this function.') : undef,
checks => [ 'kivi.validate_form' ],
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das "Speichern und Drucken" sollte nur angeboten werden, wenn man nicht inline einen neuen Artikel anlegt.

only_if => !$::form->{inline_create}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Habe ich ergänzt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants