Author: reinhard
Date: 2009-12-07 03:35:46 -0600 (Mon, 07 Dec 2009)
New Revision: 10097
Modified:
trunk/gnue-sample/forms/invoices.gfd
Log:
Improvement to example.
Modified: trunk/gnue-sample/forms/invoices.gfd
===================================================================
--- trunk/gnue-sample/forms/invoices.gfd 2009-12-07 09:33:10 UTC (rev
10096)
+++ trunk/gnue-sample/forms/invoices.gfd 2009-12-07 09:35:46 UTC (rev
10097)
@@ -162,7 +162,7 @@
it has a valid value. If not, an exception will be raised.
-->
<trigger type="PRE-FOCUSOUT">
- if not blk_invoice_item.quantity.value:
+ if blk_invoice_item.get_record_status() != 'empty' and not
blk_invoice_item.quantity.value:
abort('Please enter a valid quantity')
</trigger>
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue