供應商增加,出現錯誤,請各位指教!
[table=98%][tr][td][table][tr][td][url=http://172.22.3.11/weberp/UserSettings.php?][color=#0000ff]Demonstration user[/color][/url]供应商维护[/td][td][table][tr][td][url=http://172.22.3.11/weberp/index.php?][color=#0000ff][u]1[/u] 主菜单[/color][/url][/td][td][url=http://172.22.3.11/weberp/SelectCustomer.php?][color=#0000ff][u]2[/u] 客户[/color][/url][/td][td][url=http://172.22.3.11/weberp/SelectProduct.php?][color=#0000ff][u]3[/u] 物料[/color][/url][/td][td][url=http://172.22.3.11/weberp/SelectSupplier.php?][color=#0000ff][u]4[/u] 供应商[/color][/url][/td][td][url=http://172.22.3.11/weberp/doc/Manual/ManualContents.php?][color=#0000ff][u]8[/u] 帮助[/color][/url][/td][td][url=http://172.22.3.11/weberp/Logout.php?][color=#0000ff][u]0[/u] 退出[/color][/url][/td][/tr][/table][/td][/tr][/table][/td][/tr][/table][url=http://172.22.3.11/weberp/SelectSupplier.php?][color=#0000ff]返回到供应商[/color][/url]
[color=red][b]数据库错误[/b] : 供应商 sdfsdf 未能新增,因为
Cannot add or update a child row: a foreign key constraint fails (`gwerp`.`suppliers`, CONSTRAINT `suppliers_ibfk_4` FOREIGN KEY (`factorcompanyid`) REFERENCES `factorcompanies` (`id`))[/color]
[color=red][b]数据库 SQL 失败[/b] : 用作插入供应商失败的 SQL 是
INSERT INTO suppliers (supplierid, suppname, address1, address2, address3, address4, currcode, suppliersince, paymentterms, bankpartics, bankref, bankact, remittance, taxgroupid) VALUES ('B02', 'sdfsdf', 'sdfsdf', '', '', '', 'AUD', '2008/07/11', '20', '', '0', '', 0, 1)
[/color] 根據simonz的見議把編碼改回latin確實可以正常增加,但我瀏覽數據庫內容時卻顯示亂碼。
把suppliers表中的factorcompanyid字段干掉,采用utf8編碼也可正常增加。
不知這樣對其它表是否會有影響,謝謝! 由于WEBERP的原生UTF8编码特性,在3.09版本中得到了淋离尽致的表现.从现在可以下载的3.09版本并且使用了GBK编码后,我遇到了现在在该论坛上发布的所有出错消息.
对于企业用户来说,最新的并不一定是最稳定的.当功能能满足基本框架应用的前提下,我还是建议各位先用着3.08的版本.
有时间我会把我对于一家小型出口工业制造企业的WEBERP上线流程写下来.整个实施过程大约为三个小时.包括安装\设置\初始化物料采购单订单仓库等.不包括业务流程设计.
BTW
20080906版本已经修正了.问题出在Factor Company Name的赋值上新补丁默认用了NONE.
不过仍然无法新建FCN.
继续等下一版本
页:
[1]