ledgersmb / LedgerSMB

Double-entry accounting & ERP for the web
https://ledgersmb.org
Other
419 stars 151 forks source link

General ledger Journal Entry not giving error messages #7806

Closed cricalixwood closed 2 months ago

cricalixwood commented 10 months ago

Version

1.11.5

What browsers are you seeing the problem on?

Firefox

What happened?

Select GL/Journal Entry from menu. Enter any txn , leaving date fiels blank (i.e showing yyyy-mm-dd. Hit update. No error message displayed regarding missing date. Similarly if you should enter a debit and credit for one account on the same line, you just get a refreshed screen, with only the Update button. No error message to indicate why.

What should have happened?

I think you should get an error message when the data does not pass validation.

cricalixwood commented 10 months ago

More info: the above is with Separation of Duties=NO

ehuelsmann commented 10 months ago

Not saying this is by design, but it's impossible to block on an unfilled date field: template transactions allow empty date fields.

At the moment, template transactions may be disabled though (not sure).

cricalixwood commented 10 months ago

If I do the same thing in 1.10.25, I get an error saying invalid date....(in so far as I would usually just hit Post).

ehuelsmann commented 10 months ago

Yep. On "Post" that makes sense, but because the transaction is incomplete, you're no longer being offered that button.

I'm contemplating how to proceed on this topic: because the transaction isn't complete, the "button-dealing-code" actually doesn't know there's a "Post" or a "Save" action -- the library which governs the "next steps" doesn't release that information...

With respect to dealing with 2 numbers on a single line, this is something we can provide feedback for in the transaction screen.

Do you have any ideas on what to do with the date field?

cricalixwood commented 10 months ago

Not really. It just seems to me that simply refreshing the page, with no messages, and not proceeding to the next step, is unsatisfactory.

You said that a blank date was acceptable...so why not let it pass validation, and fail on a subsequent Post if the date remains blank?

ehuelsmann commented 9 months ago

Not really. It just seems to me that simply refreshing the page, with no messages, and not proceeding to the next step, is unsatisfactory.

Hmm. From the perspective of the workflow, it is moving to the next step: it's applying the Update action and returning to the INITIAL state. While doing so, it offers all buttons allowable for the inputs that have been provided. Since the transaction date is missing, that excludes the "Post" button. But I do get the point that this may be counter-intuitive.

You said that a blank date was acceptable...so why not let it pass validation, and fail on a subsequent Post if the date remains blank?

The bizarre result of doing it this way is that when opening the transaction screen, you'd have a Post button without anything filled in. Although all the fields are there to make Post a valid operation... Needs more thinking.

ehuelsmann commented 9 months ago

What we need here is a set of criteria when to not to show a button and when to show a button, but prevent its action when the button is triggered.

cricalixwood commented 9 months ago

Agreed. But after the first post, plus New, post is available with just the date filled in...so what's so bad about that?

Roger

⁣Get BlueMail for Android ​

On 15 Dec 2023, 15:12, at 15:12, Erik Huelsmann @.***> wrote:

Not really. It just seems to me that simply refreshing the page, with no messages, and not proceeding to the next step, is unsatisfactory.

Hmm. From the perspective of the workflow, it is moving to the next step: it's applying the Update action and returning to the INITIAL state. While doing so, it offers all buttons allowable for the inputs that have been provided. Since the transaction date is missing, that excludes the "Post" button. But I do get the point that this may be counter-intuitive.

You said that a blank date was acceptable...so why not let it pass validation, and fail on a subsequent Post if the date remains blank?

The bizarre result of doing it this way is that when opening the transaction screen, you'd have a Post button without anything filled in. Although all the fields are there to make Post a valid operation... Needs more thinking.

-- Reply to this email directly or view it on GitHub: https://github.com/ledgersmb/LedgerSMB/issues/7806#issuecomment-1858367626 You are receiving this because you authored the thread.

Message ID: @.***>

ehuelsmann commented 2 months ago

Hi Roger,

The point was that template transactions "need" the date to be empty. However, I get the point: it's not the main use-case, so maybe we can clear the date for template transactions and default to "today" for the common use-case.

Regards,

Erik.

cricalixwood commented 2 months ago

Hi Erik.

That would be fine.

Regards Riger

⁣Get BlueMail for Android ​

On 1 Aug 2024, 15:02, at 15:02, Erik Huelsmann @.***> wrote:

Hi Roger,

The point was that template transactions "need" the date to be empty. However, I get the point: it's not the main use-case, so maybe we can clear the date for template transactions and default to "today" for the common use-case.

Regards,

Erik.

-- Reply to this email directly or view it on GitHub: https://github.com/ledgersmb/LedgerSMB/issues/7806#issuecomment-2263750696 You are receiving this because you authored the thread.

Message ID: @.***>