[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1370] trunk



Revision: 1370
          http://svn.sourceforge.net/ledger-smb/?rev=1370&view=rev
Author:   einhverfr
Date:     2007-07-10 12:27:48 -0700 (Tue, 10 Jul 2007)

Log Message:
-----------
Removing old menu.ini

Modified Paths:
--------------
    trunk/LedgerSMB/IR.pm

Removed Paths:
-------------
    trunk/menu.ini

Modified: trunk/LedgerSMB/IR.pm
===================================================================
--- trunk/LedgerSMB/IR.pm	2007-07-10 18:34:47 UTC (rev 1369)
+++ trunk/LedgerSMB/IR.pm	2007-07-10 19:27:48 UTC (rev 1370)
@@ -406,8 +406,6 @@
                     $form->update_balance( $dbh, "invoice", "allocated",
                         qq|id = $ref->{id}|,
                         $qty * -1 );
-                    $form->update_balance( $dbh, "invoice", "allocated",
-				qq|id =$invoice_id|,$qty);
 
                     $allocated += $qty;
 
@@ -432,6 +430,33 @@
                   };
 
             }
+            $query = qq|
+				UPDATE invoice 
+				   SET trans_id = ?,
+				       parts_id = ?,
+				       description = ?,
+				       qty = ?,
+				       sellprice = ?,
+				       fxsellprice = ?,
+				       discount = ?,
+				       allocated = ?,
+				       unit = ?,
+				       deliverydate = ?,
+				       project_id = ?,
+				       serialnumber = ?,
+				       notes = ?
+				 WHERE id = ?|;
+            $sth = $dbh->prepare($query);
+            $sth->execute(
+                $form->{id},               $form->{"id_$i"},
+                $form->{"description_$i"}, $form->{"qty_$i"} * -1,
+                $form->{"sellprice_$i"},   $fxsellprice,
+                $form->{"discount_$i"},    $allocated,
+                $form->{"unit_$i"},        $form->{"deliverydate_$i"},
+                $project_id,               $form->{"serialnumber_$i"},
+                $form->{"notes_$i"},       $invoice_id
+            ) || $form->dberror($query);
+
         }
     }
 

Deleted: trunk/menu.ini
===================================================================
--- trunk/menu.ini	2007-07-10 18:34:47 UTC (rev 1369)
+++ trunk/menu.ini	2007-07-10 19:27:48 UTC (rev 1370)
@@ -1,936 +0,0 @@
-[AR]
-
-[AR--Add Transaction]
-module=ar.pl
-action=add
-
-[AR--Sales Invoice]
-module=is.pl
-action=add
-type=invoice
-
-[AR--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[AR--Reports--Transactions]
-module=ar.pl
-action=search
-nextsub=transactions
-
-[AR--Reports--Outstanding]
-module=ar.pl
-action=search
-outstanding=1
-nextsub=transactions
-
-[AR--Reports--AR Aging]
-module=rp.pl
-action=report
-report=ar_aging
-
-[AR--Reports--Tax collected]
-module=rp.pl
-action=report
-report=tax_collected
-
-[AR--Reports--Non-taxable]
-module=rp.pl
-action=report
-report=nontaxable_sales
-
-[AR--Customers]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[AR--Customers--Add Customer]
-module=ct.pl
-action=add
-db=customer
-
-[AR--Customers--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[AR--Customers--Reports--Search]
-module=ct.pl
-action=search
-db=customer
-
-[AR--Customers--Reports--History]
-module=ct.pl
-action=history
-db=customer
-
-[POS]
-
-[POS--Sale]
-module=ps.pl 
-action=add
-nextsub=openinvoices
-
-[POS--Open]
-module=ps.pl   
-action=openinvoices
-
-[POS--Receipts]
-module=ps.pl
-action=receipts
-
-[POS--Close Till]
-module=rc.pl
-action=till_closing
-pos=true
-
-[AP]
-
-[AP--Add Transaction]
-module=ap.pl
-action=add
-
-[AP--Vendor Invoice]
-module=ir.pl
-action=add
-type=invoice
-
-[AP--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[AP--Reports--Transactions]
-module=ap.pl
-action=search
-nextsub=transactions
-
-[AP--Reports--Outstanding]
-module=ap.pl
-action=search
-outstanding=1
-nextsub=transactions
-
-[AP--Reports--AP Aging]
-module=rp.pl
-action=report
-report=ap_aging
-
-[AP--Reports--Tax paid]
-module=rp.pl
-action=report
-report=tax_paid
-
-[AP--Reports--Non-taxable]
-module=rp.pl
-action=report
-report=nontaxable_purchases
-
-[AP--Vendors]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[AP--Vendors--Add Vendor]
-module=ct.pl
-action=add
-db=vendor
-
-[AP--Vendors--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[AP--Vendors--Reports--Search]
-module=ct.pl
-action=search
-db=vendor
-
-[AP--Vendors--Reports--History]
-module=ct.pl
-action=history
-db=vendor
-
-[Cash]
-
-[Cash--Receipt]
-module=cp.pl
-action=payment
-type=receipt
-
-[Cash--Receipts]
-module=cp.pl
-action=payments
-type=receipt
-
-[Cash--Payment]
-module=cp.pl
-action=payment
-type=check
-
-[Cash--Payments]
-module=cp.pl
-action=payments
-type=check
-
-[Cash--Transfer]
-module=gl.pl
-action=add
-transfer=1
-
-[Cash--Reconciliation]
-module=rc.pl
-action=reconciliation
-
-[Cash--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Cash--Reports--Receipts]
-module=rp.pl
-action=report
-report=receipts
-
-[Cash--Reports--Payments]
-module=rp.pl
-action=report
-report=payments
-
-[Cash--Reports--Reconciliation]
-module=rc.pl
-action=reconciliation
-report=1
-
-[HR]
-
-[HR--Employees]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[HR--Employees--Add Employee]
-module=hr.pl
-action=add
-db=employee
-
-[HR--Employees--Reports]
-module=hr.pl
-action=search
-db=employee
-
-[Order Entry]
-
-[Order Entry--Sales Order]
-module=oe.pl
-action=add
-type=sales_order
-
-[Order Entry--Purchase Order]
-module=oe.pl
-action=add
-type=purchase_order
-
-[Order Entry--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Order Entry--Reports--Sales Orders]
-module=oe.pl
-action=search
-type=sales_order
-
-[Order Entry--Reports--Purchase Orders]
-module=oe.pl
-action=search
-type=purchase_order
-
-[Order Entry--Generate]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Order Entry--Generate--Purchase Orders]
-module=oe.pl
-action=search
-type=generate_purchase_order
-
-[Order Entry--Consolidate]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
- 
-[Order Entry--Consolidate--Sales Orders]
-module=oe.pl
-action=search
-type=consolidate_sales_order
-
-[Order Entry--Consolidate--Purchase Orders]
-module=oe.pl
-action=search
-type=consolidate_purchase_order
-
-[Shipping]
-
-[Shipping--Ship]
-module=oe.pl
-action=search
-type=ship_order
-
-[Shipping--Receive]
-module=oe.pl
-action=search
-type=receive_order
-
-[Shipping--Transfer Inventory]
-module=oe.pl
-action=search_transfer
-
-[Quotations]
-
-[Quotations--Quotation]
-module=oe.pl 
-action=add 
-type=sales_quotation
-
-[Quotations--RFQ]
-module=oe.pl 
-action=add 
-type=request_quotation
-
-[Quotations--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Quotations--Reports--Quotations]
-module=oe.pl
-action=search
-type=sales_quotation
-
-[Quotations--Reports--RFQs]
-module=oe.pl
-action=search
-type=request_quotation
-
-[General Ledger]
-
-[General Ledger--Add Transaction]
-module=gl.pl
-action=add
-
-[General Ledger--Reports]
-module=gl.pl
-action=search
-
-[General Ledger--Adjust Till]
-module=gl.pl
-action=add_pos_adjust
-reference=Adjusting Till: (till) Source: (source)
-rowcount=3
-pos_adjust=1
-description=Adjusting till due to data entry error.
-
-[Goods & Services]
-
-[Goods & Services--Add Part]
-module=ic.pl
-action=add
-item=part
-
-[Goods & Services--Add Service]
-module=ic.pl
-action=add
-item=service
-
-[Goods & Services--Add Assembly]
-module=ic.pl
-action=add
-item=assembly
-
-[Goods & Services--Add Labor/Overhead]
-module=ic.pl
-action=add
-item=labor
-
-[Goods & Services--Add Group]
-module=pe.pl
-action=add
-type=partsgroup
-
-[Goods & Services--Add Pricegroup]
-module=pe.pl
-action=add
-type=pricegroup
-
-[Goods & Services--Stock Assembly]
-module=ic.pl
-action=stock_assembly
-
-[Goods & Services--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Goods & Services--Reports--All Items]
-module=ic.pl
-action=search
-searchitems=all
-
-[Goods & Services--Reports--Parts]
-module=ic.pl
-action=search
-searchitems=part
-
-[Goods & Services--Reports--Requirements]
-module=ic.pl
-action=requirements
-
-[Goods & Services--Reports--Services]
-module=ic.pl
-action=search
-searchitems=service
-
-[Goods & Services--Reports--Labor/Overhead]
-module=ic.pl
-action=search
-searchitems=labor
-
-[Goods & Services--Reports--Groups]
-module=pe.pl
-action=search
-type=partsgroup
-
-[Goods & Services--Reports--Pricegroups]
-module=pe.pl
-action=search
-type=pricegroup
-
-[Goods & Services--Reports--Assemblies]
-module=ic.pl
-action=search
-searchitems=assembly
-
-[Goods & Services--Reports--Components]
-module=ic.pl
-action=search
-searchitems=component
-
-[Goods & Services--Translations]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Goods & Services--Translations--Description]
-module=pe.pl
-action=translation
-translation=description
-
-[Goods & Services--Translations--Groups]
-module=pe.pl
-action=translation
-translation=partsgroup
-
-[Projects]
-
-[Projects--Add Project]
-module=pe.pl
-action=add
-type=project
-
-[Projects--Add Time Card]
-module=jc.pl
-action=add
-type=timecard
-project=project
-
-[Projects--Generate]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Projects--Generate--Sales Orders]
-module=pe.pl
-action=project_sales_order
-
-[Projects--Reports]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Projects--Reports--List Projects]
-module=pe.pl
-action=search
-type=project
-
-[Projects--Reports--Transactions]
-module=rp.pl
-action=report
-report=projects
-
-[Projects--Reports--Time Cards]
-module=jc.pl 
-action=search
-type=timecard
-project=project
-
-[Projects--Translations]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Projects--Translations--Description]
-module=pe.pl
-action=translation
-translation=project
-
-[Reports]
-
-[Reports--Chart of Accounts]
-module=ca.pl
-action=chart_of_accounts
-
-[Reports--Trial Balance]
-module=rp.pl
-action=report
-report=trial_balance
-
-[Reports--Income Statement]
-module=rp.pl
-action=report
-report=income_statement
-
-[Reports--Balance Sheet]
-module=rp.pl
-action=report
-report=balance_sheet
-
-[Reports--Inventory Activity]
-module=rp.pl
-action=report
-report=inv_activity
-
-[Recurring Transactions]
-module=am.pl
-action=recurring_transactions
-
-[Batch Printing]
-
-[Batch Printing--Print]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[Batch Printing--Print--Checks]
-module=bp.pl
-action=search
-type=check
-vc=vendor
-
-
-[Batch Printing--Print--Sales Invoices]
-module=bp.pl
-action=search
-vc=customer
-type=invoice
-
-[Batch Printing--Print--Sales Orders]
-module=bp.pl
-action=search
-vc=customer
-type=sales_order
-
-[Batch Printing--Print--Work Orders]
-module=bp.pl
-action=search
-vc=customer
-type=work_order
-
-[Batch Printing--Print--Quotations]
-module=bp.pl
-action=search
-vc=customer
-type=sales_quotation
-
-[Batch Printing--Print--Packing Lists]
-module=bp.pl
-action=search
-vc=customer
-type=packing_list
-
-[Batch Printing--Print--Pick Lists]
-module=bp.pl
-action=search
-vc=customer
-type=pick_list
-
-[Batch Printing--Print--Purchase Orders]
-module=bp.pl
-action=search
-vc=vendor
-type=purchase_order
-
-[Batch Printing--Print--Bin Lists]
-module=bp.pl
-action=search
-vc=vendor
-type=bin_list
-
-[Batch Printing--Print--RFQs]
-module=bp.pl
-action=search
-vc=vendor
-type=request_quotation
-
-[Batch Printing--Print--Time Cards]
-module=bp.pl
-action=search
-type=timecard
-vc=employee
-
-[System]
-
-[System--Audit Control]
-module=am.pl
-action=audit_control
-
-[System--Defaults]
-module=am.pl
-action=defaults
-
-[System--Taxes]
-module=am.pl
-action=taxes
-
-[System--Yearend]
-module=am.pl
-action=yearend
-
-[System--Backup]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--Backup--Send by E-Mail]
-module=am.pl
-action=backup
-media=email
-
-[System--Backup--Save to File]
-module=am.pl
-action=backup
-media=file
-
-[System--Chart of Accounts]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--Chart of Accounts--Add Account]
-module=am.pl
-action=add_account
-
-[System--Chart of Accounts--List Accounts]
-module=am.pl
-action=list_account
-
-[System--Chart of Accounts--Add GIFI]
-module=am.pl
-action=add_gifi
-
-[System--Chart of Accounts--List GIFI]
-module=am.pl
-action=list_gifi
-
-[System--Warehouses]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--Warehouses--Add Warehouse]
-module=am.pl
-action=add_warehouse
-
-[System--Warehouses--List Warehouses]
-module=am.pl
-action=list_warehouse
-
-[System--Departments]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--Departments--Add Department]
-module=am.pl
-action=add_department
-
-[System--Departments--List Departments]
-module=am.pl
-action=list_department
-
-[System--Type of Business]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--Type of Business--Add Business]
-module=am.pl
-action=add_business
-
-[System--Type of Business--List Businesses]
-module=am.pl
-action=list_business
-
-[System--Language]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--Language--Add Language]
-module=am.pl
-action=add_language
-
-[System--Language--List Languages]
-module=am.pl
-action=list_language
-
-[System--SIC]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--SIC--Add SIC]
-module=am.pl
-action=add_sic
-
-[System--SIC--List SIC]
-module=am.pl
-action=list_sic
-
-[System--HTML Templates]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--HTML Templates--Income Statement]
-module=am.pl
-action=list_templates
-file=templates=/income_statement.html
-
-[System--HTML Templates--Balance Sheet]
-module=am.pl
-action=list_templates
-file=templates=/balance_sheet.html
-
-[System--HTML Templates--Invoice]
-module=am.pl
-action=list_templates
-file=templates=/invoice.html
-
-[System--HTML Templates--AR Transaction]
-module=am.pl
-action=list_templates
-file=templates=/ar_transaction.html
-
-[System--HTML Templates--AP Transaction]
-module=am.pl
-action=list_templates
-file=templates=/ap_transaction.html
-
-[System--HTML Templates--Packing List]
-module=am.pl
-action=list_templates
-file=templates=/packing_list.html
-
-[System--HTML Templates--Pick List]
-module=am.pl
-action=list_templates
-file=templates=/pick_list.html
-
-[System--HTML Templates--Sales Order]
-module=am.pl
-action=list_templates
-file=templates=/sales_order.html
-
-[System--HTML Templates--Work Order]
-module=am.pl
-action=list_templates
-file=templates=/work_order.html
-
-[System--HTML Templates--Purchase Order]
-module=am.pl
-action=list_templates
-file=templates=/purchase_order.html
-
-[System--HTML Templates--Bin List]
-module=am.pl
-action=list_templates
-file=templates=/bin_list.html
-
-[System--HTML Templates--Statement]
-module=am.pl
-action=list_templates
-file=templates=/statement.html
-
-[System--HTML Templates--Quotation]
-module=am.pl
-action=list_templates
-file=templates=/sales_quotation.html
-
-[System--HTML Templates--RFQ]
-module=am.pl
-action=list_templates
-file=templates=/request_quotation.html
-
-[System--HTML Templates--Time Card]
-module=am.pl
-action=list_templates
-file=templates=/timecard.html
-
-[System--LaTeX Templates]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--LaTeX Templates--Invoice]
-module=am.pl
-action=list_templates
-file=templates=/invoice.tex
-
-[System--LaTeX Templates--AR Transaction]
-module=am.pl
-action=list_templates
-file=templates=/ar_transaction.tex
-
-[System--LaTeX Templates--AP Transaction]
-module=am.pl
-action=list_templates
-file=templates=/ap_transaction.tex
-
-[System--LaTeX Templates--Packing List]
-module=am.pl
-action=list_templates
-file=templates=/packing_list.tex
-
-[System--LaTeX Templates--Pick List]
-module=am.pl
-action=list_templates
-file=templates=/pick_list.tex
-
-[System--LaTeX Templates--Sales Order]
-module=am.pl
-action=list_templates
-file=templates=/sales_order.tex
-
-[System--LaTeX Templates--Work Order]
-module=am.pl
-action=list_templates
-file=templates=/work_order.tex
-
-[System--LaTeX Templates--Purchase Order]
-module=am.pl
-action=list_templates
-file=templates=/purchase_order.tex
-
-[System--LaTeX Templates--Bin List]
-module=am.pl
-action=list_templates
-file=templates=/bin_list.tex
-
-[System--LaTeX Templates--Statement]
-module=am.pl
-action=list_templates
-file=templates=/statement.tex
-
-[System--LaTeX Templates--Check]
-module=am.pl
-action=list_templates
-file=templates=/check.tex
-
-[System--LaTeX Templates--Receipt]
-module=am.pl
-action=list_templates
-file=templates=/receipt.tex
-
-[System--LaTeX Templates--Quotation]
-module=am.pl
-action=list_templates
-file=templates=/sales_quotation.tex
-
-[System--LaTeX Templates--RFQ]
-module=am.pl
-action=list_templates
-file=templates=/request_quotation.tex
-
-[System--LaTeX Templates--Time Card]
-module=am.pl
-action=list_templates
-file=templates=/timecard.tex
-
-[System--Text Templates]
-module=menu.pl
-action=acc_menu
-target=acc_menu
-submenu=1
-
-[System--Text Templates--POS Invoice]
-module=am.pl
-action=list_templates
-file=templates=/pos_invoice.txt
-
-[Stylesheet]
-module=am.pl
-action=display_stylesheet
-
-[Preferences]
-module=am.pl
-action=config
-
-[Help]
-module=doc/LedgerSMB-manual.pdf
-
-[Version]
-module=am.pl
-action=company_logo
-
-[New Window]
-module=menu.pl
-action=display
-main=company_logo
-duplicate=1
-target=_blank
-
-[Logout]
-module=login.pl
-action=logout
-target=_top
-


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.