{"action":"created","issue":{"url":"https://api.github.com/repos/DigitalPlatform/dp2/issues/125","repository_url":"https://api.github.com/repos/DigitalPlatform/dp2","labels_url":"https://api.github.com/repos/DigitalPlatform/dp2/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/DigitalPlatform/dp2/issues/125/comments","events_url":"https://api.github.com/repos/DigitalPlatform/dp2/issues/125/events","html_url":"https://github.com/DigitalPlatform/dp2/issues/125","id":342186080,"node_id":"MDU6SXNzdWUzNDIxODYwODA=","number":125,"title":"采购功能加入“折扣”字段内容功能需求","user":{"login":"paopaofeng","id":12268196,"node_id":"MDQ6VXNlcjEyMjY4MTk2","avatar_url":"https://avatars0.githubusercontent.com/u/12268196?v=4","gravatar_id":"","url":"https://api.github.com/users/paopaofeng","html_url":"https://github.com/paopaofeng","followers_url":"https://api.github.com/users/paopaofeng/followers","following_url":"https://api.github.com/users/paopaofeng/following{/other_user}","gists_url":"https://api.github.com/users/paopaofeng/gists{/gist_id}","starred_url":"https://api.github.com/users/paopaofeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paopaofeng/subscriptions","organizations_url":"https://api.github.com/users/paopaofeng/orgs","repos_url":"https://api.github.com/users/paopaofeng/repos","events_url":"https://api.github.com/users/paopaofeng/events{/privacy}","received_events_url":"https://api.github.com/users/paopaofeng/received_events","type":"User","site_admin":false},"labels":[{"id":727066464,"node_id":"MDU6TGFiZWw3MjcwNjY0NjQ=","url":"https://api.github.com/repos/DigitalPlatform/dp2/labels/%E6%94%B9%E8%BF%9B","name":"改进","color":"a7f9a8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-07-18T05:52:49Z","updated_at":"2018-08-01T02:05:53Z","closed_at":null,"author_association":"COLLABORATOR","body":"有用户单位提出，能否在图书采购时添加录入 **折扣** 内容的功能，并且需要通过 **单价** 和 **折扣** 计算出 **实洋**。\r\n\r\n在打印订单阶段，打印的订购清单和导出 Excel 表格的订购清单内容中需要含有 **单价**、**折扣** 和 **实洋** 等字段，每项订购 **总价**（码洋）为 **实洋** 与 **复本数**（套数） 的乘积，**订单总价** 为每项订购总价的总和。"},"comment":{"url":"https://api.github.com/repos/DigitalPlatform/dp2/issues/comments/409424993","html_url":"https://github.com/DigitalPlatform/dp2/issues/125#issuecomment-409424993","issue_url":"https://api.github.com/repos/DigitalPlatform/dp2/issues/125","id":409424993,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQyNDk5Mw==","user":{"login":"DigitalPlatform","id":10781446,"node_id":"MDQ6VXNlcjEwNzgxNDQ2","avatar_url":"https://avatars1.githubusercontent.com/u/10781446?v=4","gravatar_id":"","url":"https://api.github.com/users/DigitalPlatform","html_url":"https://github.com/DigitalPlatform","followers_url":"https://api.github.com/users/DigitalPlatform/followers","following_url":"https://api.github.com/users/DigitalPlatform/following{/other_user}","gists_url":"https://api.github.com/users/DigitalPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/DigitalPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigitalPlatform/subscriptions","organizations_url":"https://api.github.com/users/DigitalPlatform/orgs","repos_url":"https://api.github.com/users/DigitalPlatform/repos","events_url":"https://api.github.com/users/DigitalPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/DigitalPlatform/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T02:05:53Z","updated_at":"2018-08-01T02:05:53Z","author_association":"OWNER","body":"@shafcat \r\n\r\n以上信息收悉。\r\n\r\n1) 二次报订时候，是复制以前的订购记录，重新进行订购。同一种图书的订购记录，在内务种册窗的界面上，是显示在一起的，界面只要提供复制功能即可。不用重新导入数据。批处理操作也可以根据这个原理进行成批复制。\r\n\r\n2) 订购记录中已经有订购时间，梳理订单的批处理进行之前，只要指定一个时间长度，软件就可以(根据订购记录状态和订购时间)计算出哪些订购记录已经超期没有到书。所以从数据结构上可以不必增加到期时间字段。\r\n\r\n3) 那目前就决定用 0.90 这样的形态。软件还可以考虑用 80% 这种形态作为补充形态，另外也争取兼容 .80 这样的形态(可以免去输入个位的 0)\r\n\r\n===\r\n\r\n此外我想到一个问题，通过码洋价格乘以折扣得到的订购价，可能是四舍五入以后的价格，因为要限制价格字符串小数点以后最多使用两位数字。这样就会产生一定误差，累计统计以后误差还会更明显。我的意思是说，这样算出的订购价在统计的时候求和，和码洋总价乘以折扣得到的订购总价，之间是有误差的，后者更精确。我不知道这个问题会不会对业务产生负面影响，还是传统业务已经考虑和接纳了这种误差？希望听到您的意见和建议。"}}
{"actor":{"display_login":"DigitalPlatform"}}