gm-printer 10.33.8 → 10.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-printer",
3
- "version": "10.33.8",
3
+ "version": "10.34.0",
4
4
  "description": "diy printer",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -42,10 +42,14 @@ class EditorCutomizedConfig extends React.Component {
42
42
  const dataKey = tableConfig.dataKey
43
43
  const tableData = editStore.mockData._table[dataKey]
44
44
 
45
- if (dataKey === 'taxRateSales' && tableData?.length) {
45
+ if (tableData?.length) {
46
46
  const list = tableData.map(item => {
47
- if (item._origin && !Number(item._origin?.tax_rate)) {
48
- item['税率'] = value
47
+ if (item._origin && Number(item._origin?.tax_rate) === 0) {
48
+ if (String(value).length > 0) {
49
+ item['税率'] = value
50
+ } else {
51
+ item['税率'] = '0.00%'
52
+ }
49
53
  }
50
54
  return item
51
55
  })