Skip to content

Instantly share code, notes, and snippets.

@berick
Created November 4, 2016 14:37
Show Gist options
  • Save berick/5f791a64bf56ea5b50940761f71aee29 to your computer and use it in GitHub Desktop.
Save berick/5f791a64bf56ea5b50940761f71aee29 to your computer and use it in GitHub Desktop.
use OpenSRF::Utils::JSON;
my $j = {
select => {acqlid => ['id']},
from => {
jub => {
acqlid => {
join => {
acqcr => {
type => 'left',
}
}
}
}
},
where => {
'-or' => [
{'+acqlid' => {cancel_reason => undef}},
{'+acqcr' => {keep_debits => 't'}}
]
},
limit => 1
};
print OpenSRF::Utils::JSON->perl2JSON($j);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment