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

[PAGOPA-2128)] feat: Add pay_stand_in column #251

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public class PaymentPosition implements Serializable {
@Column(name = "pull", columnDefinition = "boolean DEFAULT true")
private Boolean pull = true;

@Builder.Default
@Column(name = "pay_stand_in", columnDefinition = "boolean DEFAULT true")
private Boolean payStandIn = true;

// Debtor properties
@NotNull
@Enumerated(EnumType.STRING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public PaymentPosition convert(MappingContext<@NotNull PaymentPositionModel, Pay
PaymentPosition destination = context.getDestination() != null ? context.getDestination() : new PaymentPosition();

destination.setPull(source.isPull());
destination.setPayStandIn(source.isPayStandIn());
destination.setCity(source.getCity());
destination.setCivicNumber(source.getCivicNumber());
destination.setCompanyName(source.getCompanyName());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE payment_position ADD COLUMN pay_stand_in BOOLEAN NOT NULL DEFAULT FALSE;
Loading