Fixed many issues in output HTML code according to HTML 4.01 Transitional format.
[fa-stable.git] / includes / ui / allocation_cart.inc
index 1be54f5ca61442256d3eedde74d47efbf7172178..c60c88fe2cffe40bc3f229e0f95388519e14b5db 100644 (file)
@@ -33,7 +33,7 @@ class allocation
        function allocation($type, $trans_no, $person_id = null, $person_type_id=null)
        {
                $this->allocs = array();
-               
+
                $this->trans_no = $trans_no;
                $this->type = $type;
                if ($person_id)
@@ -132,7 +132,8 @@ class allocation
                                $this->currency = isset($trans['bank_curr_code']) ? $trans['bank_curr_code'] : $trans['curr_code'];
                                $this->bank_amount = @$trans["bank_amount"];
                                $this->amount = $trans["Total"];
-                       }
+                       } else
+                               $this->date_ = Today();
                }
        /* Now populate the array of possible (and previous actual) allocations 
                for this customer/supplier. First get the transactions that have 
@@ -283,7 +284,7 @@ function show_allocatable($show_totals) {
        {
                if ($cart->currency != $cart->person_curr)
                        display_heading(sprintf(_("Allocated amounts in %s:"), $cart->person_curr));
-               start_table(TABLESTYLE, "width=60%");
+               start_table(TABLESTYLE, "width='60%'");
                $th = array(_("Transaction Type"), _("#"), $supp_ref ? _("Supplier Ref"): _("Ref"), _("Date"), _("Due Date"), _("Amount"),
                        _("Other Allocations"), _("Left to Allocate"), _("This Allocation"),'','');