contract icon indicating copy to clipboard operation
contract copied to clipboard

Sales Order to Agreement - Section lines are messing up with agreement lines

Open 5B-MAVERICKS opened this issue 4 years ago • 1 comments

Agreement_sale_legal installed (v14)

I'm creating a sales order w/ agreement template. Sales order lines contain products + section lines.

When confirming the sales order, 'agreement app' is generating an agreement and I get the following error: "Agreement line - Unit of measure..."

It means that it tries to turn the "section" line from the Sales Order into an agreement line. but because not a classic Sales order, plenty of information are missing including UoM.

5B-MAVERICKS avatar Jun 23 '21 06:06 5B-MAVERICKS

Same problem here.

INSERT INTO "agreement_line" ("id", "create_uid", "create_date", "write_uid", "write_date", "agreement_id", "name", "product_id", "qty", "sale_line_id", "uom_id") VALUES (nextval('agreement_line_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), 2, 'SECTION LABEL', NULL, 0.0, 30, NULL) RETURNING id

ERROR: null value in column "uom_id" violates not-null constraint

DETAIL: Failing row contains (1, null, SECTION LABEL, 2, 0, null, 1, 2022-05-03 09:29:48.93576, 1, 2022-05-03 09:29:48.93576, 30).

vix-db avatar May 02 '22 16:05 vix-db

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Oct 30 '22 12:10 github-actions[bot]