Bank Payment, Bank Deposit: all parameters now passed to write_bank_transaction(...
[fa-stable.git] / includes / ui / items_cart.inc
index a9bcc5798c1c8141084e1b61025487ac9bdc3207..fd8c735735bdfd4d71c015c8bc76f424582f7d14 100644 (file)
 include_once($path_to_root . "/includes/prefs/sysprefs.inc");
 include_once($path_to_root . "/inventory/includes/inventory_db.inc");
 
+/*
+       FIXME: This class currently handles three different types of transactions:
+       . simple inventory transactions working on quantities:
+               ST_INVADJUST, ST_LOCTRANSFER, ST_MANUISSUE
+       . balanced low level GL transactions, working on amounts:
+               ST_JOURNAL, ST_COSTUPDATE, used also in purchase invoice costing 
+       . unbalanced bank transaction:
+               ST_BANKPAYMENT, ST_BANK_DEPOSIT
+
+       No reason to keep all this in the same class.
+*/
+
 class items_cart
 {
        var $trans_type;
@@ -37,9 +49,17 @@ class items_cart
        var $vat_category;
 
        var $tax_info;  // tax info for the GL transaction
+       var $reconcile_date;
 
        var $fixed_asset;
 
+       // bank transaction related
+       var $bank_act;
+       var $person_type_id;
+       var $person_id;
+       var $person_detail_id;
+       var $settled_amount;
+
        function __construct($type, $trans_no=0)
        {
                $this->trans_type = $type;