Subversion Repositories SmartDukaan

Rev

Hide changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
37831 15 d 4 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/migrations/ feat(cron): movement billing takes only units at the order's price; PO dry run names each PO's vendor warehouse  
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/migrations/MovementBiller.java
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/migrations/MovementPoTask.java
37828 15 d 5 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ fix(cron): movement billing looks POs up inside a transaction (driver has none - 'Could not obtain transaction-synchronized Session'); failure message no longer claims nothing was raised  
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/Application.java
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/migrations/MovementBiller.java
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/migrations/MovementBillingTask.java
37825 15 d 6 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ feat(cron): --autoBillMovement bills internal movement POs (dry run by default)

Bills the orders a movement PO raised the way the order management screen does:
orders parked on the Dummy (brand without a source mapping) are re-pointed to the
source vendor warehouse holding the stock (split when it spans several), serialized
units take IMEIs oldest first at qty 1 with a good last scan, then acceptOrders ->
addBillingDetailsForGrouppedOrders -> checkOrderDispatchEligibility, one invoice per
transaction, all-or-nothing. IRN / e-way bill follow from the existing cron job.

Usage: --autoBillMovement --pos=PO1,PO2 --email=<operator> --provider=<id> [--live]
Dry run (default) plans and validates only - billing opens its own REQUIRES_NEW
transaction (createLoanForBilling) that a rollback would not undo. Refuses a
transaction over 900 invoice lines (NIC caps an IRN at 1000). Prints the invoice
list for --autoGrnInternal.
 
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/migrations/MovementBiller.java
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/migrations/MovementBillingTask.java
/trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/Application.java