File: TradingData.h

package info (click to toggle)
gnustep-dl2 0.12.0%2Bgit20250112-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,092 kB
  • sloc: objc: 68,223; makefile: 60; sh: 48
file content (49 lines) | stat: -rw-r--r-- 1,355 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#import <Foundation/Foundation.h>
#include <EOAccess/EOAccess.h>
#include <EOControl/EOControl.h>

@interface TradingData : NSObject
{
  EOEditingContext *ec;
  EODatabaseDataSource *productGroupDS;
  EODatabaseDataSource *productDS;
  EODatabaseDataSource *suppliersDS;
  EODatabaseDataSource *priceListDS;
  EODatabaseDataSource *priceListPosDS;
  EODatabaseDataSource *orderDS;
  EODatabaseDataSource *orderPosDS;
  EODatabaseDataSource *customerDS;
  EODatabaseDataSource *customerGroupDS;
}
- (void) saveChanges;
- (void) fillTables;
- (id) addSupplierNamed:(NSString *)name;
- (id) addProductGroup:(NSString *)name;
- (id) addProduct:(NSString*)name price:(NSDecimalNumber *)price
	supplier:(id)supplier
	group:(id)group;
- (id) addProduct:(id)product
	 price:(NSDecimalNumber *)price 
	toPriceList:(id)priceList;
- (id) addPriceList:(NSString *)name
	 forGroup:(id)group; 
- (id) addCustomer:(NSString *)customer;
- (id) addCustomer:(NSString *)customer group:(id)group;
- (id) addCustomerGroup:(NSString *)name;
- (id) customer:(id)customer
	 order:(id)product;
- (id) customer:(id)customer
	order:(id)product
	quantity:(int)quantity;
- (id) customer:(id)customer
	order:(id)product
	quantity:(int)quantity
	posNr:(int)posNr;

- (id) createOrderForCustomer:(id)customer;
- (id) order:(id)order
 product:(id)product
 quantity:(int)quantity;
@end