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

202411 feat print part labels for stock #406

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

Conversation

z4m1n0
Copy link
Contributor

@z4m1n0 z4m1n0 commented Nov 16, 2024

@z4m1n0 z4m1n0 force-pushed the 202411-feat-print_part_labels_for_stock branch from 8ab5366 to d13114c Compare November 16, 2024 16:40
@z4m1n0 z4m1n0 requested review from bblessmann and jbueren November 16, 2024 16:50
Artikelklassifizierung: & $( KiviLatex.filter(LxERP.t8(part.classification.description)) )$ \\
%$(END)$
%$(IF part.customm_tariff_number )$
Zolltarifnummer: & $( KiviLatex.filter(LxERP.t8(part.customm_tariff_number)) )$ \\
Copy link
Member

Choose a reason for hiding this comment

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

customm_

Das sieht nach einem Typo aus.

Copy link
Member

@sschoeling sschoeling left a comment

Choose a reason for hiding this comment

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

Moin Tamino, erster Block Review von diesem Monster.

Vorweg: Ich hab mir hier nur die Sachen angeschaut, die nach dem 202410-feat-part_printing reingekommen sind, und selbst das ist recht schwer zu lesen. Ich würde auf jeden Fall zusehen, dass der vorher noch gemergt wird.

Das was ich gefunden habe bisher sieht zumindest kaputt aus und muss noch gefixt werden, ich habe aber auch das filter query im Part Manager noch nicht verstanden, da kommt nochmal eine zweite Runde.


$self->models->finalize; # for filter laundering

$::form->{filter}->{price_change_printed} = ${$::form->{filter}->{price_change_printed}};
Copy link
Member

Choose a reason for hiding this comment

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

Das hier verstehe ich nicht ganz. Soll das price_change_printed vor dem laundering retten?

return
[\qq{(
SELECT DISTINCT CASE WHEN count(*) $comp 1 THEN FALSE ELSE TRUE END
FROM (
Copy link
Member

Choose a reason for hiding this comment

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

Das geht zumindest auf meiner postgres 12 kaputt, weil subqueries in FROM clauses einen alias brauchen. Ich hab nachgeschaut, das ist erst ab postgres 16 optional. Die UPGRADE nennt immernoch Postgres 12 als minimum.

Copy link
Member

Choose a reason for hiding this comment

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

Die beiden templates fehlen in den alten templates, oder?

Copy link
Member

Choose a reason for hiding this comment

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

Die beiden templates fehlen in den alten templates, oder?

@@ -43,7 +43,7 @@ __PACKAGE__->run_before('set_layout');
sub action_stock_in {
my ($self) = @_;

$::form->{title} = t8('Stock');
$::form->{title} = t8('Store');
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, ich bin kein Freund von der Umbenennung. Üblicherweise haben wir für "Einlagern" dann "Stock In" benutzt. Auch nicht schön, aber zumindest eindeutig. "Store" kann ausserdem noch Geschäft, Filiale oder Speicher heißen, finde ich hier sehr verwirrend.

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