From f19cf2052df9762c7655a0b0766de8051efda12e Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Wed, 14 Feb 2024 12:44:01 +0100 Subject: [PATCH] gnu: Add trytond-purchase-product-quantity. * gnu/packages/tryton.scm (trytond-purchase-product-quantity): New variable. --- gnu/packages/tryton.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 2ea61ecd3a18c7609872ab7a580848a232715aa3..d62d8214134286d5a044c774be873f2554bda49d 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -3548,6 +3548,33 @@ makes purchase to generate invoice lines instead of invoices.") lists to be defined for suppliers.") (license license:gpl3+))) +(define-public trytond-purchase-product-quantity + (package + (name "trytond-purchase-product-quantity") + (version "7.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_purchase_product_quantity" version)) + (sha256 + (base32 "0q1paxi1ppdc1qim389nixl483hd8whrgv6ck554f4008v4dpj8r")))) + (build-system pyproject-build-system) + (arguments (tryton-arguments "purchase_product_quantity")) + (native-inputs + (cons* trytond-stock-supply + %standard-trytond-native-inputs)) + (propagated-inputs + (list trytond + trytond-product + trytond-purchase + trytond-purchase-request)) + (home-page "https://docs.tryton.org/projects/modules-purchase-product-quantity") + (synopsis "Tryton module to add quantity constraints on purchase lines") + (description "The @emph{Purchase Product Quantity} Tryton module permits +to enforce the minimal and the rounding of quantity purchased per supplier +from purchase request.") + (license license:gpl3+))) + (define-public trytond-purchase-request (package (name "trytond-purchase-request")