[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r107 - gnue-invoice/schema
From: |
kilo |
Subject: |
r107 - gnue-invoice/schema |
Date: |
Wed, 10 Nov 2004 07:25:35 -0600 (CST) |
Author: kilo
Date: 2004-11-10 07:25:34 -0600 (Wed, 10 Nov 2004)
New Revision: 107
Modified:
gnue-invoice/schema/invoice.gcd
Log:
Re-introduced non-nullable properties,
as OnValidate can handle these now.
Modified: gnue-invoice/schema/invoice.gcd
===================================================================
--- gnue-invoice/schema/invoice.gcd 2004-11-09 13:18:11 UTC (rev 106)
+++ gnue-invoice/schema/invoice.gcd 2004-11-10 13:25:34 UTC (rev 107)
@@ -43,6 +43,7 @@
<property name="product" type="ITEM_Item" nullable="False"
comment="" />
<property name="quantity" type="number(10,2)" nullable="False"
comment="" />
<property name="note" type="string" comment="" />
+
<property name="valueNet" type="number(10,2)" >
net = self.quantity * self.product.ITEM_price
print 'INV_Item::valueNet %f' % net
@@ -90,22 +91,15 @@
<class name="Head" filter="FILTER_Seller" comment="Invoice head">
-->
<class name="Head" comment="Invoice head">
- <!--
<property name="number" type="string(20)"
nullable="False" comment="invoice number" />
<property name="buyer" type="PARTY_Party"
nullable="False" comment="who pays..." />
<property name="paymentMethod" type="INV_PaymentMethod"
nullable="False" comment="" />
<property name="dateDelivery" type="date"
nullable="False" comment="" />
<property name="dateIssued" type="date"
nullable="False" comment="Date when invoice was generated" />
<property name="dateDue" type="date"
nullable="False" comment="Date the payment is due" />
- -->
- <property name="number" type="string(20)"
comment="invoice number" />
- <property name="buyer" type="PARTY_Party" comment="who
pays..." />
- <property name="paymentMethod" type="INV_PaymentMethod" comment="" />
- <property name="dateDelivery" type="date" comment="" />
- <property name="dateIssued" type="date" comment="Date
when invoice was generated" />
- <property name="dateDue" type="date" comment="Date
the payment is due" />
<property name="note" type="string" comment="" />
<property name="printed" type="number(3)" comment="# of
printed copies" />
+
<property name="valueTotalNet" type="number(10,2)" >
items = find('INV_Item', {'INV_head':self.gnue_id}, [], ['INV_valueNet'])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r107 - gnue-invoice/schema,
kilo <=