[POS-commit] r5377 - stoqlib/trunk/data/sql
Johan Dahlin
jdahlin at async.com.br
Fri Nov 24 12:20:26 BRST 2006
Author: jdahlin
Date: Fri Nov 24 12:20:26 2006
New Revision: 5377
Modified:
stoqlib/trunk/data/sql/schema.sql
Log:
#2955: Do not allow negative quantities on product sellable items, patch by Grazieno Pellegrino
Modified: stoqlib/trunk/data/sql/schema.sql
==============================================================================
--- stoqlib/trunk/data/sql/schema.sql (original)
+++ stoqlib/trunk/data/sql/schema.sql Fri Nov 24 12:20:26 2006
@@ -502,7 +502,7 @@
-- service_sellable_item
-- gift_certificate_item
id bigserial NOT NULL PRIMARY KEY,
- quantity numeric(10,2),
+ quantity numeric(10,2) CONSTRAINT positive_quantity CHECK (quantity >= 0),
base_price numeric(10,2),
price numeric(10,2),
sale_id bigint REFERENCES sale(id),
More information about the POS-commit
mailing list