[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r156 - in gnue-invoice: . schema
From: |
kilo |
Subject: |
r156 - in gnue-invoice: . schema |
Date: |
Mon, 6 Dec 2004 04:29:50 -0600 (CST) |
Author: kilo
Date: 2004-12-06 04:29:50 -0600 (Mon, 06 Dec 2004)
New Revision: 156
Modified:
gnue-invoice/news
gnue-invoice/schema/invoice.gcd
Log:
GNUe Invoice.
Added seller field to invoice head.
Modified: gnue-invoice/news
===================================================================
--- gnue-invoice/news 2004-12-06 10:26:04 UTC (rev 155)
+++ gnue-invoice/news 2004-12-06 10:29:50 UTC (rev 156)
@@ -2,6 +2,9 @@
*************************
GNUe Invoice - Project CV
*************************
+New features / changes by 2004.12.06
+* Added 'seller' field to the invoice. Report also contains this.
+
New features / changes by 2004.12.01
* Make use of importing triggers.
Modified: gnue-invoice/schema/invoice.gcd
===================================================================
--- gnue-invoice/schema/invoice.gcd 2004-12-06 10:26:04 UTC (rev 155)
+++ gnue-invoice/schema/invoice.gcd 2004-12-06 10:29:50 UTC (rev 156)
@@ -66,6 +66,7 @@
-->
<class name="Head" comment="Invoice head">
<property name="number" type="string(20)"
nullable="False" comment="invoice number" />
+ <property name="seller" type="PARTY_Party"
nullable="False" comment="who wants money..." />
<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="" />
@@ -178,6 +179,11 @@
#NULL does not behave well on the form, so better set it to '0'.
self.printed = 0
+
+ sellerList = find('PARTY_Party', {'PARTY_name': 'GNU Enterprise'}, [],
[])
+ if len(sellerList):
+ self.seller = sellerList[0]
+ print 'INV_Head::OnInit - Seller is %s' % self.seller.PARTY_name
</procedure>
</class>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r156 - in gnue-invoice: . schema,
kilo <=