Implementato DialogInputQuantity in fase di recupero materiale da produzione.
This commit is contained in:
parent
5e3f7fe251
commit
cf64ead7b1
@ -57,6 +57,7 @@ public class ProdRecuperoMaterialeHelper {
|
|||||||
"LEFT OUTER JOIN jtb_fasi ON mtb_colt.cod_jfas = jtb_fasi.cod_jfas " +
|
"LEFT OUTER JOIN jtb_fasi ON mtb_colt.cod_jfas = jtb_fasi.cod_jfas " +
|
||||||
"WHERE jtb_fasi.cod_jfas IS NOT NULL " +
|
"WHERE jtb_fasi.cod_jfas IS NOT NULL " +
|
||||||
"AND segno = -1 " +
|
"AND segno = -1 " +
|
||||||
|
"AND qta_col > 0 " +
|
||||||
"GROUP BY jtb_fasi.cod_jfas, " +
|
"GROUP BY jtb_fasi.cod_jfas, " +
|
||||||
"jtb_fasi.descrizione, " +
|
"jtb_fasi.descrizione, " +
|
||||||
"mtb_colr.gestione, " +
|
"mtb_colr.gestione, " +
|
||||||
|
|||||||
@ -132,10 +132,26 @@ public class ProdRecuperoMaterialeViewModel {
|
|||||||
qtaDaEvadere = qtaDaEvadere.add(item.getQtaCol());
|
qtaDaEvadere = qtaDaEvadere.add(item.getQtaCol());
|
||||||
|
|
||||||
|
|
||||||
InputQuantityToReturnDialog.make(mContext, item.getMtbAart(), BigDecimal.ONE, qtaDaEvadere, quantity -> {
|
DialogInputQuantity.DTO dto = new DialogInputQuantity.DTO()
|
||||||
onItemDispatched(item, quantity);
|
.setBatchLot(item.getPartitaMag())
|
||||||
|
.setQtaDaEvadere(null)
|
||||||
|
.setQtaOrd(null)
|
||||||
|
.setMtbAart(item.getMtbAart())
|
||||||
|
.setCanPartitaMagBeChanged(false)
|
||||||
|
.setQtaTot(BigDecimal.ONE)
|
||||||
|
.setMaxQta(qtaDaEvadere)
|
||||||
|
.setQtaDisponibile(qtaDaEvadere);
|
||||||
|
|
||||||
|
DialogInputQuantity.makeBase(mContext, dto, false, quantity -> {
|
||||||
|
onItemDispatched(item, quantity.qtaTot.getBigDecimal());
|
||||||
|
}, () -> {
|
||||||
|
|
||||||
}).show();
|
}).show();
|
||||||
|
|
||||||
|
// InputQuantityToReturnDialog.make(mContext, item.getMtbAart(), BigDecimal.ONE, qtaDaEvadere, quantity -> {
|
||||||
|
// onItemDispatched(item, quantity);
|
||||||
|
// }).show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onItemDispatched(HistoryVersamentoProdUL item, BigDecimal quantity) {
|
private void onItemDispatched(HistoryVersamentoProdUL item, BigDecimal quantity) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user