Copyright notes at top op every source file
[fa-stable.git] / purchasing / includes / supp_trans_class.inc
index d6e06714b2f670bf0a8e203e1ba48a348182713b..ad630bce99aac4643d8e7b0036d0aa5379ffb410 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, as published by the Free Software Foundation, either version 
+       3 of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+***********************************************************************/
 /* Definition of the Supplier Transactions class to hold all the information for an accounts payable invoice or credit note
 */
 
@@ -167,16 +176,18 @@ all the info to do the necessary entries without looking up ie additional querie
                $this->gl_code = $gl_code;
        }
        
-       function full_charge_price()
+       function full_charge_price($tax_group_id, $tax_group=null)
        {
-               return $this->chg_price;
+               return get_full_price_for_item($this->item_code, 
+                 $this->chg_price, $tax_group_id, 0, $tax_group);
        }
        
        function taxfree_charge_price($tax_group_id, $tax_group=null)
        {
-               if ($tax_group_id==null)
-                       return $this->chg_price;
-               return get_tax_free_price_for_item($this->item_code, $this->chg_price, $tax_group_id, $tax_group);
+//             if ($tax_group_id==null)
+//                     return $this->chg_price;
+               return get_tax_free_price_for_item($this->item_code, $this->chg_price, 
+                 $tax_group_id, 0, $tax_group);
        }
 }