{state: 'frozen', xSplit: 0, ySplit: 1, topLeftCell: 'A2', activeCell: 'A2'}
];
sheet.properties.defaultRowHeight = 15;
- var columnsLabels = ['Reference', 'Size Description', 'EAN13', 'Season Description', 'Rbu', 'Family', 'Article', 'Model Id', 'Color Id'];
+ var columnsLabels = ['Reference', 'Size Description', 'EAN13', 'Season Description', 'Rbu', 'Family', 'Article', 'Model Id', 'Color Id', 'Units'];
var columns = [];
$.each(columnsLabels, function (k, v) {
if (v.Reference === ref) {
var row = {};
$.each(columnsLabels, function (kk, vv) {
- if (vv === 'Reference') {
+ if (vv === 'Units') {
+ row[vv] = 1;
+ } else if (vv === 'Reference') {
row[vv] = v[vv].replace(/\s+/g, '-');
} else {
row[vv] = v[vv];