[Vtigercrm-commits] [vtiger-commits] r7132 - in /vtigercrm/trunk/modules: Invoice/Save.php PurchaseOrder/Save.php SalesOrder/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 10:43:39 EDT 2006
Author: saraj
Date: Thu Jun 15 08:43:30 2006
New Revision: 7132
Log:
* Removed the vtiger prefix which have been added for the table's columnnames
Modified:
vtigercrm/trunk/modules/Invoice/Save.php
vtigercrm/trunk/modules/PurchaseOrder/Save.php
vtigercrm/trunk/modules/SalesOrder/Save.php
Modified: vtigercrm/trunk/modules/Invoice/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/Save.php (original)
+++ vtigercrm/trunk/modules/Invoice/Save.php Thu Jun 15 08:43:30 2006
@@ -38,7 +38,7 @@
if($focus->column_fields["salesorder_id"] != '')
{
$so_id = $focus->column_fields["salesorder_id"];
- $query1 = "update vtiger_salesorder set vtiger_sostatus='Approved' where vtiger_salesorderid=".$so_id;
+ $query1 = "update vtiger_salesorder set sostatus='Approved' where salesorderid=".$so_id;
$adb->query($query1);
}
@@ -46,7 +46,7 @@
$ext_prod_arr = Array();
if($focus->mode == 'edit')
{
- $query2 = "select * from vtiger_invoiceproductrel where vtiger_invoiceid=".$focus->id;
+ $query2 = "select * from vtiger_invoiceproductrel where invoiceid=".$focus->id;
$result2 = $adb->query($query2);
$num_rows = $adb->num_rows($result2);
for($i=0; $i<$num_rows;$i++)
@@ -56,7 +56,7 @@
$ext_prod_arr[$pro_id] = $pro_qty;
}
- $query1 = "delete from vtiger_invoiceproductrel where vtiger_invoiceid=".$focus->id;
+ $query1 = "delete from vtiger_invoiceproductrel where invoiceid=".$focus->id;
$adb->query($query1);
}
Modified: vtigercrm/trunk/modules/PurchaseOrder/Save.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/Save.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/Save.php Thu Jun 15 08:43:30 2006
@@ -46,7 +46,7 @@
$focus->save("PurchaseOrder");
if($focus->mode == 'edit')
{
- $query1 = "delete from vtiger_poproductrel where vtiger_purchaseorderid=".$focus->id;
+ $query1 = "delete from vtiger_poproductrel where purchaseorderid=".$focus->id;
$adb->query($query1);
}
Modified: vtigercrm/trunk/modules/SalesOrder/Save.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/Save.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/Save.php Thu Jun 15 08:43:30 2006
@@ -38,14 +38,14 @@
if($focus->column_fields["quote_id"] != '')
{
$qt_id = $focus->column_fields["quote_id"];
- $query1 = "update vtiger_quotes set vtiger_quotestage='Accepted' where quoteid=".$qt_id;
+ $query1 = "update vtiger_quotes set quotestage='Accepted' where quoteid=".$qt_id;
$adb->query($query1);
}
$ext_prod_arr = Array();
if($focus->mode == 'edit')
{
- $query2 = "select * from vtiger_soproductrel where vtiger_salesorderid=".$focus->id;
+ $query2 = "select * from vtiger_soproductrel where salesorderid=".$focus->id;
$result2 = $adb->query($query2);
$num_rows = $adb->num_rows($result2);
for($i=0; $i<$num_rows;$i++)
@@ -56,7 +56,7 @@
}
- $query1 = "delete from vtiger_soproductrel where vtiger_salesorderid=".$focus->id;
+ $query1 = "delete from vtiger_soproductrel where salesorderid=".$focus->id;
$adb->query($query1);
}
More information about the vtigercrm-commits
mailing list