123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- #include "la_5.h"
- #include "pdfgen.h"
- extern LA MAIN;
- STRUCTURE(ERPCustomer){
- laListItem Item;
- laSafeString
- laSafeString
- laSafeString
- laSafeString
- laSafeString
- laSafeString
- laSafeString
- laSafeString
- laSafeString
- };
- STRUCTURE(ERPProduct){
- laListItem Item;
- laSafeString
- laListHandle AvailableOptions;
- laSafeString
- int Price;
- int DiscountedPrice;
- };
- STRUCTURE(ERPProductOption){
- laListItem Item;
- ERPProduct
- laSafeString
- laListHandle Values;
- };
- STRUCTURE(ERPProductOptionValue){
- laListItem Item;
- ERPProductOption
- laSafeString
- int PriceOffset;
- };
- STRUCTURE(ERPOrder){
- laListItem Item;
- ERPCustomer
- laListHandle ProductEntries;
- laListHandle Packages;
- laSafeString
- laSafeString
- int State;
- int Paid;
- int OrderDiscount;
- int OrderPrice;
- };
- STRUCTURE(ERPProductEntry){
- laListItem Item;
- ERPOrder
- ERPProduct
- laListHandle Options;
- int Amount;
- int EntryPrice;
- };
- STRUCTURE(ERPProductEntryOption){
- laListItem Item;
- ERPProductEntry
- ERPProductOption
- ERPProductOptionValue
- int OptionPriceOffset;
- };
- STRUCTURE(ERPPackage){
- laListItem Item;
- ERPOrder
- laSafeString
- laListHandle IncludedProducts;
- };
- STRUCTURE(ERPPackageProduct){
- laListItem Item;
- ERPPackage
- ERPProductEntry
- };
- #define ERP_ORDER_STATE_PENDING_PACKAGING 0
- #define ERP_ORDER_STATE_PENDING_LABEL 1
- #define ERP_ORDER_STATE_PENDING_SHIPPING 2
- #define ERP_ORDER_STATE_SHIPPED 3
- #define ERP_ORDER_STATE_ARRIVED 4
- #define ERP_ORDER_STATE_IN_PERSON 5
- #define ERP_ORDER_STATE_NEED_INFO 127
- STRUCTURE(ERPMain){
- void
- ERPOrder
- ERPOrder
- ERPOrder
- laListHandle Orders;
- laListHandle Products;
- laListHandle Customers;
- laListHandle PinnedOrders;
- };
- extern ERPMain
- void erpRegisterEverything();
- void erpInit();
|