<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Direct Invoice fixed for sales order return nothing - 0]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=814&amp;type=atom" />
	<updated>2009-08-30T16:27:30Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=814</id>
		<entry>
			<title type="html"><![CDATA[Re: Direct Invoice fixed for sales order return nothing - 0]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=3373#p3373" />
			<content type="html"><![CDATA[<p>Can&#039;t reproduce this issue. There should be no situation, when sales order is issued but location is not set at all. </p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2009-08-30T16:27:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=3373#p3373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Direct Invoice fixed for sales order return nothing - 0]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=3369#p3369" />
			<content type="html"><![CDATA[<p>I am using FrontAccounting 2.1.5<br />It throws the error below when i view the sale details after perform direct invoice.</p><p>The cause is it tried to look for an inventory location with empty string code of the location.</p><p>The solution, create new location with empty string as the code.</p><br /><br /><p>Error Details<br />DATABASE ERROR : FATAL : sales order return nothing - 0<br />sql that failed was : SELECT 1_sales_orders.*, 1_debtors_master.name, 1_debtors_master.curr_code, 1_debtors_master.email AS master_email, 1_locations.location_name, 1_debtors_master.payment_terms, 1_debtors_master.discount, 1_sales_types.sales_type, 1_sales_types.id AS sales_type_id, 1_sales_types.tax_included, 1_shippers.shipper_name, 1_tax_groups.name AS tax_group_name , 1_tax_groups.id AS tax_group_id FROM 1_sales_orders, 1_debtors_master, 1_sales_types, 1_tax_groups, 1_cust_branch, 1_locations, 1_shippers WHERE 1_sales_orders.order_type=1_sales_types.id AND 1_cust_branch.branch_code = 1_sales_orders.branch_code AND 1_cust_branch.tax_group_id = 1_tax_groups.id AND 1_sales_orders.debtor_no = 1_debtors_master.debtor_no AND 1_locations.loc_code = 1_sales_orders.from_stk_loc AND 1_shippers.shipper_id = 1_sales_orders.ship_via AND 1_sales_orders.order_no = 1</p>]]></content>
			<author>
				<name><![CDATA[codemeit]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=454</uri>
			</author>
			<updated>2009-08-29T15:31:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=3369#p3369</id>
		</entry>
</feed>
