agritheory / beam

General Purpose 2D barcode scanning for ERPNext
https://agritheory.com/documentation/beam/
Other
23 stars 11 forks source link

Restructure decision matrix #9

Closed agritheory closed 1 year ago

agritheory commented 1 year ago

Instead of the confusing tuple-keyed dictionary, let's use another layer of nesting:

"Item" : {
    "Purchase Receipt": [
    ("add_or_increment", "Purchase Receipt Item", "item_code", target.item_code, target),
    ]

This will allow for clearer access of the correct function(s) and to make it hookable in the future.

Alchez commented 1 year ago

Fixed in 44e15df (#3)