Source for file shoporderclass.php

Documentation is available at shoporderclass.php


1 <?php
2 /**
3 * @author Jan H. Andersen <jha@ipwsystems.dk>
4 * @author Martin R. Larsen <mrl@ipwsystems.dk>
5 * @copyright {@link http://www.ipwsystems.dk/ IPW Systems a.s}
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
7 * @package METAjour
8 * @subpackage core
9 * $Id: shoporderclass.php,v 1.4 2005/01/07 03:52:51 jan Exp $
10 */
11
12 require_once('basicclass.php');
13
14 class shoporder extends basic {
15
16 function shoporder() {
17 $this->basic();
18 $this->addcolumn('name');
19 $this->addcolumn('shippingid',0,UI_RELATION,'freight');
20 $this->addcolumn('paymentid',0,UI_RELATION,'payment');
21 $this->addcolumn('customerid',0,UI_RELATION,'customer');
22 $this->addcolumn('userid',0,UI_RELATION,'user');
23 $this->addcolumn('totalsum');
24 $this->addcolumn('totaldiscsum');
25 $this->addcolumn('totalactsum');
26 $this->addcolumn('totalsumvat');
27 $this->addcolumn('totaldiscsumvat');
28 $this->addcolumn('totalactsumvat');
29 $this->addcolumn('total');
30 $this->addcolumn('totalvat');
31 $this->addcolumn('shippingprice');
32 $this->addcolumn('shippingpricevat');
33 $this->addcolumn('paymentprice');
34 $this->addcolumn('paymentpricevat');
35 $this->addcolumn('totalsumcur');
36 $this->addcolumn('totaldiscsumcur');
37 $this->addcolumn('totalactsumcur');
38 $this->addcolumn('totalsumcurvat');
39 $this->addcolumn('totaldiscsumcurvat');
40 $this->addcolumn('totalactsumcurvat');
41 $this->addcolumn('totalcur');
42 $this->addcolumn('totalcurvat');
43 $this->addcolumn('shippingpricecur');
44 $this->addcolumn('shippingpricecurvat');
45 $this->addcolumn('paymentpricecur');
46 $this->addcolumn('paymentpricecurvat');
47
48 $this->removeview('createvariant');
49 $this->removeview('createfuture');
50 $this->removeview('approvepublish');
51 $this->removeview('requestapproval');
52 }
53
54 function initLayout() {
55 basic::initLayout();
56 $this->addChildDatatype('shoporderline');
57 }
58
59 function stdListCol() {
60 $arr[] = 'customerid';
61 $arr[] = 'shippingid';
62 $arr[] = 'paymentid';
63 $arr[] = 'totalactsum';
64 $arr[] = 'totalactsumvat';
65 $arr[] = 'changed';
66 return $arr;
67 }
68
69 }

Documentation generated on Thu, 9 Jun 2005 06:53:10 +0200 by phpDocumentor 1.2.3