star-micronics / StarXpand-SDK-Android

StarXpand SDK for Android is a software development kit for supporting application development for Star Micronics devices.
https://star-m.jp/starxpandsdk-oml.html
Other
14 stars 2 forks source link

[REQUEST] Abillity to open cash drawer even if printer is unable to print #31

Open ilyakatz opened 2 weeks ago

ilyakatz commented 2 weeks ago

Is your feature request related to a problem? Please describe.

To open a cash drawer, the following command is used

    private fun getCommandsForOpenCashDrawer(): String {
        val builder = StarXpandCommandBuilder()
        builder.addDocument(
            DocumentBuilder()
                .addDrawer(
                    DrawerBuilder()
                        .actionOpen(
                            OpenParameter()
                                .setChannel(Channel.No1)
                        )
                )
        )
        return builder.getCommands()
    }

     starPrinter.printAsync(commands).await()

However, if the printer has an error (eg, out of paper). It throws exception

Method threw 'com.starmicronics.stario10.StarIO10UnprintableException' exception. hasError : true, coverOpen : false, drawerOpenCloseSignal : true, paperEmpty : true, paperNearEmpty : false

And does not open drawer

Describe the solution you'd like

Cash drawer should not be blocked from performing operations whether or not printer is out of paper or has other problems.

Tatsuki-Yamamoto2731 commented 6 days ago

@ilyakatz Sorry for the late response. Unfortunately, there is no way to open the drawer while the printer is offline.

However, we realized that there is a need to open the drawer even when the printer is offline. We would like to consider reflecting on your feedback in our software. So, if possible, could you please tell us specifically the situations in which you would like to open the drawer while the printer is offline?

ilyakatz commented 6 days ago

Hi @Tatsuki-Yamamoto2731 the biggest problem is that users cannot open cash register if 1) printer is on and connected 2) there is no paper.

ideally, if the printer is turned off, it would be good to still have cash register open but that's not as important is no paper scenario

Tatsuki-Yamamoto2731 commented 5 days ago

@ilyakatz Thank you for your information. Currently, when paper runs out, the only way to open the drawer is to set the paper and then execute the drawer open again. However, we understand that this is inconvenient. We would like to consider making our software more convenient.

ilyakatz commented 5 days ago

thank you, please keep me posted