sim-node-lib 0.0.81 → 0.0.84
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/dist/Enums/PubSubTableEnum.d.ts +1 -0
- package/dist/Enums/PubSubTableEnum.js +1 -0
- package/dist/Models/VendaItemReduzido.d.ts +8 -0
- package/dist/Models/VendaItemReduzido.js +13 -0
- package/dist/Services/CombustivelService.d.ts +2 -0
- package/dist/Services/CombustivelService.js +5 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ var PubSubTableEnum;
|
|
|
26
26
|
PubSubTableEnum["item"] = "item";
|
|
27
27
|
PubSubTableEnum["itemTag"] = "item_tag";
|
|
28
28
|
PubSubTableEnum["modeloPredicao"] = "modelo_predicao";
|
|
29
|
+
PubSubTableEnum["pessoaFrotaProduto"] = "pessoa_frota_produto";
|
|
29
30
|
PubSubTableEnum["placas"] = "placas";
|
|
30
31
|
PubSubTableEnum["premiacao"] = "premiacao";
|
|
31
32
|
PubSubTableEnum["premiacaoCombo"] = "premiacao_combo";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class VendaItemReduzido {
|
|
2
|
+
idProdutoErp: string;
|
|
3
|
+
quantidade: number;
|
|
4
|
+
valorUnitario: number;
|
|
5
|
+
uniMedida: string;
|
|
6
|
+
valorDescontoUnitario?: number | undefined;
|
|
7
|
+
constructor(idProdutoErp: string, quantidade: number, valorUnitario: number, uniMedida: string, valorDescontoUnitario?: number | undefined);
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VendaItemReduzido = void 0;
|
|
4
|
+
class VendaItemReduzido {
|
|
5
|
+
constructor(idProdutoErp, quantidade, valorUnitario, uniMedida, valorDescontoUnitario) {
|
|
6
|
+
this.idProdutoErp = idProdutoErp;
|
|
7
|
+
this.quantidade = quantidade;
|
|
8
|
+
this.valorUnitario = valorUnitario;
|
|
9
|
+
this.uniMedida = uniMedida;
|
|
10
|
+
this.valorDescontoUnitario = valorDescontoUnitario;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.VendaItemReduzido = VendaItemReduzido;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AllProdutos } from '../Models/AllProdutos';
|
|
2
2
|
import { VendaItem } from '../Models/IVendaItem';
|
|
3
|
+
import { VendaItemReduzido } from './../Models/VendaItemReduzido';
|
|
3
4
|
export declare class CombustivelService {
|
|
4
5
|
ehCombustivel(combustiveis: AllProdutos[], item: VendaItem): AllProdutos | undefined;
|
|
6
|
+
ehCombustivelV2(combustiveis: AllProdutos[], item: VendaItemReduzido): AllProdutos | undefined;
|
|
5
7
|
}
|
|
@@ -7,5 +7,10 @@ class CombustivelService {
|
|
|
7
7
|
return o.codigo_produto.toString() === item.produto.id_produto_erp.toString();
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
+
ehCombustivelV2(combustiveis, item) {
|
|
11
|
+
return combustiveis.find(function (o) {
|
|
12
|
+
return o.codigo_produto.toString() === item.idProdutoErp.toString();
|
|
13
|
+
});
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
16
|
exports.CombustivelService = CombustivelService;
|