#===================================================================== # LedgerSMB # Small Medium Business Accounting software # # See COPYRIGHT file for copyright information #====================================================================== # # This file has NOT undergone whitespace cleanup. # #====================================================================== # # customer/vendor module # #====================================================================== use LedgerSMB::CT; 1; # end of main sub add { $form->{title} = "Add"; # $locale->text('Add Customer') # $locale->text('Add Vendor') $form->{callback} = "$form->{script}?action=add&db=$form->{db}&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}" unless $form->{callback}; CT->create_links(\%myconfig, \%$form); &form_header; &form_footer; } sub history { # $locale->text('Customer History') # $locale->text('Vendor History') $history = 1; $label = ucfirst $form->{db}; $label .= " History"; if ($form->{db} eq 'customer') { $invlabel = $locale->text('Sales Invoices'); $ordlabel = $locale->text('Sales Orders'); $quolabel = $locale->text('Quotations'); } else { $invlabel = $locale->text('Vendor Invoices'); $ordlabel = $locale->text('Purchase Orders'); $quolabel = $locale->text('Request for Quotations'); } $form->{title} = $locale->text($label); $form->{nextsub} = "list_history"; $transactions = qq|
|
|
|.$locale->text('Summary').qq| | |.$locale->text('Detail').qq| | ||
|.$locale->text('Part Number').qq| | |.$locale->text('Description').qq| | |.$locale->text('Sell Price').qq| | |.$locale->text('Currency').qq| |
|.$locale->text('Qty').qq| | |.$locale->text('Unit').qq| | |.$locale->text('Discount').qq| | |
|.$locale->text('Delivery Date').qq| | |.$locale->text('Project Number').qq| | |.$locale->text('Serial Number').qq| |