---
title: "物料单位折算API"
author: "ronaldoLY"
date: "2015-12-15T10:41:28Z"
tags: []
categories: ["编程语言"]
slug: "api"
draft: true
lastmod: "2015-12-15T10:41:28Z"
id: 2264148
url: "https://ronaldoly.iteye.com/blog/2264148"
---

inv\_convert.inv\_um\_convert(item\_id       =&gt; msib.inventory\_item\_id,

                                                 PRECISION     =&gt; NULL,

                                                 from\_quantity =&gt; SUM(ool.ordered\_quantity),   --原数量

                                                 from\_unit     =&gt; mu.uom\_code,     --英文名(关联mtl\_units\_of\_measure表)

                                                 to\_unit       =&gt; '件',

                                                 from\_name     =&gt; mu.unit\_of\_measure,  --中文名

                                                 to\_name       =&gt; '件')