Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -37,7 +37,7 @@ function parseFlexibleNumber (value) {
|
||||
}
|
||||
|
||||
function mapRow (raw, index, baseIndex = 0) {
|
||||
return {
|
||||
const row = {
|
||||
id: baseIndex + index + 1,
|
||||
productCode: toText(raw?.ProductCode),
|
||||
stockQty: toNumber(raw?.StockQty),
|
||||
@@ -76,6 +76,18 @@ function mapRow (raw, index, baseIndex = 0) {
|
||||
try5: toNumber(raw?.TRY5),
|
||||
try6: toNumber(raw?.TRY6)
|
||||
}
|
||||
const originalFields = [
|
||||
'costPrice',
|
||||
'basePriceUsd',
|
||||
'basePriceTry',
|
||||
'usd1', 'usd2', 'usd3', 'usd4', 'usd5', 'usd6',
|
||||
'eur1', 'eur2', 'eur3', 'eur4', 'eur5', 'eur6',
|
||||
'try1', 'try2', 'try3', 'try4', 'try5', 'try6'
|
||||
]
|
||||
originalFields.forEach((field) => {
|
||||
row[`__orig_${field}`] = row[field]
|
||||
})
|
||||
return row
|
||||
}
|
||||
|
||||
function cloneRows (rows = []) {
|
||||
|
||||
Reference in New Issue
Block a user