shish 4 years ago
parent
commit
e1991a7a2e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app-ghs/controllers/PurchaseOrderController.php

+ 2 - 1
app-ghs/controllers/PurchaseOrderController.php

@@ -43,7 +43,8 @@ class PurchaseOrderController extends BaseController
 
             $smallUnit = $item->smallUnit ?? '';
             $bigUnit = $item->bigUnit ?? '';
-            $unit = $smallUnit . '/' . $bigUnit;
+            $ratio = $item->ratio ?? 0;
+            $unit = $ratio . $smallUnit . '/' . $bigUnit;
 
             $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
             $content .= '<BC128 x="260" y="30" h="80" s="1" r="90" n="5" w="12">' . $ptItemId . '</BC128>';