Finish v1.34.03(387)
This commit is contained in:
commit
dfec2f2bd3
@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 386
|
def appVersionCode = 387
|
||||||
def appVersionName = '1.34.02'
|
def appVersionName = '1.34.03'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
|||||||
@ -313,7 +313,7 @@ public class Ean128Model {
|
|||||||
public String InternalPart;
|
public String InternalPart;
|
||||||
|
|
||||||
///<summary>Informazioni interne</summary>
|
///<summary>Informazioni interne</summary>
|
||||||
public String Internal1;
|
public String Internal1; //USED FOR COD_MART
|
||||||
|
|
||||||
///<summary>Informazioni interne</summary>
|
///<summary>Informazioni interne</summary>
|
||||||
public String Internal2;
|
public String Internal2;
|
||||||
|
|||||||
@ -172,14 +172,20 @@ public class ProdDettaglioLineaViewModel {
|
|||||||
|
|
||||||
public void checkBarcodeAndStartOrdine(BarcodeScanDTO dto) {
|
public void checkBarcodeAndStartOrdine(BarcodeScanDTO dto) {
|
||||||
this.sendOnLoadingStarted();
|
this.sendOnLoadingStarted();
|
||||||
|
|
||||||
ProdLineStatusDTO prodLine = lineaProd.getValue();
|
ProdLineStatusDTO prodLine = lineaProd.getValue();
|
||||||
mBarcodeRESTConsumer.decodeEan128(dto, (ean128) -> {
|
mBarcodeRESTConsumer.decodeEan128(dto, (ean128) -> {
|
||||||
String codMart = ean128.Content;
|
String codMart = ean128.Internal1;
|
||||||
String partitaMag = ean128.BatchLot;
|
String partitaMag = ean128.BatchLot;
|
||||||
if (!prodLine.isStarted()) {
|
if(prodLine == null) {
|
||||||
|
this.sendError(new Exception("Impossibile leggere lo stato della linea"));
|
||||||
|
|
||||||
|
} else if (!prodLine.isStarted()) {
|
||||||
this.sendError(new Exception("Impossibile avviare una produzione su una linea ferma!"));
|
this.sendError(new Exception("Impossibile avviare una produzione su una linea ferma!"));
|
||||||
|
|
||||||
} else if (UtilityString.isNullOrEmpty(prodLine.getListaOrd())) {
|
} else if (UtilityString.isNullOrEmpty(prodLine.getListaOrd())) {
|
||||||
this.startProduction(codMart, partitaMag);
|
this.startProduction(codMart, partitaMag);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.mListener.confirmOrderClose(() -> {
|
this.mListener.confirmOrderClose(() -> {
|
||||||
this.startProduction(codMart, partitaMag);
|
this.startProduction(codMart, partitaMag);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user