refs #5513 addFromBuy endpoint

This commit is contained in:
Alexandre Riera 2023-06-02 14:07:56 +02:00
parent 2b112b51e6
commit de65d14a33
3 changed files with 14 additions and 1 deletions

View File

@ -73,6 +73,14 @@ interface SalixService {
):
Call<Any>
@POST("Entries/{id}/addFromBuy")
fun addFromBuy(
@Path("id") id: Number,
@Query("item") item: Number,
@Query("printedStickers") printedStickers: Number
):
Call<Any>
@POST("tickets/{idTicket}/transferSales") //-->saleMove en Silex
fun transferSalesSalix(

View File

@ -140,4 +140,9 @@ class PackagingViewModel(val context: Context) : BaseViewModel(context) {
salix.uploadEntryPhoto(id, warehouseId, companyId, dmsTypeId, reference, description, hasFile, file)
.enqueue(object : SilexCallback<Any>(context){})
}
fun entry_addFromBuy(id: Number, item: Number, printedStickers: Number) {
salix.addFromBuy(id, item, printedStickers)
.enqueue(object : SilexCallback<Any>(context){})
}
}

View File

@ -66,7 +66,7 @@ class SupplierFragment(
false,
file = filePart
)*/
// viewModel.entry_addFromBuy(8,1,100)
super.onCreate(savedInstanceState)
}